Hi Gopal,

00:02.0 VGA compatible controller: Intel Corporation 945G/GZ Express Integrated 
Graphics Controller (rev 02)  graphics card.................

Yeah, that isn't going to work with osgOcean in its current form. We could possibly check for a set of extensions we know we need (EXT_FRAMEBUFFER_OBJECT, the various shader extensions, etc.) or a given OpenGL version, and then disable most shaders and effects if these are not found. That would give you a straight ocean surface that would animate but which wouldn't have reflections, refractions, underwater depth of field and so on.

You could possibly modify the oceanExample's application.cpp to disable all effects (reflection, refraction, depth of field, god rays, glare, distortion, silt), then recompile it and try to run that. It might work, but the ocean surface might look weird because the shaders will try to compile and probably fail. osgOcean really needs to detect this kind of card and set itself up correctly to run in "reduced mode" in that case.

I'll be working on this in the next few weeks (our own clients need to run an app that uses osgOcean on various graphics cards, some of which are similar to what you mention above) so if you can wait a bit, I'll send a word to the mailing list once it's done so you'll be able to test again.

I would really like to get the list of extensions your card supports. The easiest way to get that is to do this on the command line, as Kim mentioned:

  export OSG_NOTIFY_LEVEL=DEBUG
  osgviewer cow.osg > output.txt 2>&1

and then press Escape as soon as the cow shows up, and send us the resulting output.txt file on this thread. That will contain valuable information that will help me design the tests needed to detect situations similar to yours correctly in the osgOcean code.


About your backtrace:

(gdb) bt
#0  0x00f23f84 in _mesa_test_os_sse_exception_support () from 
/usr/X11R6/lib/modules/dri/i915_dri.so
#1  0x00f23e81 in _mesa_init_all_x86_transform_asm () from 
/usr/X11R6/lib/modules/dri/i915_dri.so
#2  0x00e9cbc9 in _math_init () from /usr/X11R6/lib/modules/dri/i915_dri.so
#3  0x00e1efee in _mesa_initialize_context () from 
/usr/X11R6/lib/modules/dri/i915_dri.so
#4  0x00f415b5 in intelInitContext () from 
/usr/X11R6/lib/modules/dri/i915_dri.so
#5  0x00f34e56 in i915CreateContext () from 
/usr/X11R6/lib/modules/dri/i915_dri.so
#6  0x00f45742 in intelCreateContext () from 
/usr/X11R6/lib/modules/dri/i915_dri.so
#7  0x00f2d00f in driCreateNewContext () from 
/usr/X11R6/lib/modules/dri/i915_dri.so
#8  0x002b83d2 in __indirect_glCompressedTexSubImage3D () from 
/usr/X11R6/lib/libGL.so.1
#9  0x002b8817 in glXCreateContext () from /usr/X11R6/lib/libGL.so.1
#10 0x00b4161f in osgViewer::GraphicsWindowX11::init () from 
/usr/local/OpenSceneGraph-2.8.0/lib/libosgViewer.so.55
#11 0x00b43c56 in X11WindowingSystemInterface::createGraphicsContext ()
   from /usr/local/OpenSceneGraph-2.8.0/lib/libosgViewer.so.55
#12 0x008bc156 in osg::GraphicsContext::createGraphicsContext () from 
/usr/local/OpenSceneGraph-2.8.0/lib/libosg.so.55
#13 0x00b088c5 in osgViewer::View::setUpViewInWindow () from 
/usr/local/OpenSceneGraph-2.8.0/lib/libosgViewer.so.55
#14 0x08060387 in main ()
(gdb)

Weird that it's crashing in the create context... Do other OSG examples run well? For example just run

  osgviewer cow.osg

Does that run well? If not then try to update your graphics driver, because creating a graphics context is a basic operation that all graphics apps will need to do and if it's failing, then you have a bigger problem than osgOcean not running...

But in any case, this is not related to what I said above about your card probably not being able to run osgOcean at all in its current form because it does not support the features osgOcean was designed for.

Hope this helps,

J-S
--
______________________________________________________
Jean-Sebastien Guay    jean-sebastien.g...@cm-labs.com
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to