Hi Issam,

i have deleted all the OSG Folder and tried with a new one, disable the GL3 
fonctionallity and it worked

btw HOW GL3 extensions make OSG Better, and should i use it ?

Ah, I didn't remember you mentioning you had built OSG with GL3 enabled... That explains it.

OpenGL 3.0 deprecated the whole fixed-function pipeline, and so most regular models you have won't render correctly. When using OpenGL 3 (with or without OSG) you need to create shaders that implement the effects you want to use, and most of the existing StateAttributes OSG implemented were for the fixed pipeline, so they will give the errors you mentioned (unable to apply state, like your Material state).

I encourage you to read up on OpenGL 3, but in the mean time, just don't use that flag for OSG and you'll be fine, you'll have access to the fixed pipeline and your existing models will work.

It may be that OSG will someday offer shader generation in order to make OpenGL 3 easier to use with OSG, but for now that's the state of things, if you use OpenGL 3 you have to do a lot of things yourself to make things work, and if you don't use OpenGL 3 then things generally just work from the start.

Hope this explains it,

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                    http://whitestar02.dyndns-web.com/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to