On 9/15/2012 12:53 PM, Peterakos wrote:
Hello.

I have managed to solve the problem with the 2 warnigs (by removing materials
and shades from cessna.osg.

Great!

Still cant solve the invalid enumerant. I use osgsimplegl3 as it is but with
more simple shaders and seting version to 3.2

What can possibly cause this problem ?
Has anyone run osgsimplegl3 example using opengl 3.2 ?

I can run it with a 3.2 context as long as I also request the compatibility 
profile:
    traits->glContextProfileMask = 2;

If you don't specify glContextProfileMask, OSG currently does not pass profile bits to WGL for context creation, and according to the WGL create context extension spec, a core profile is created in this case.

(You might argue this is a bug. Perhaps glContextProfileMask should default to 1 / core profile, or 2 / compatibility profile, so that profile bits are always passed to WGL context creation. If you feel strongly about this, please post a submission.)

This issue was discussed a while ago by someone trying to run OSG built for GL3 on OSX 10.7, which supports only OpenGL 3.2 forward compatible / core profile. He discovered that current OSG does not support this. In particular, the OSG Geometry object does not use a vertex array object, which is required in core profile. This is the source of one of your GL_INVALID_ENUM errors, and is likely the one that causes no rendering to occur.
   -Paul


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to