Hello there again, Thanks J.P for answering, but no, there is no protected stateattribute.
Max wrote: > Hi, > > I discovered something I find really strange. > I exported my scene from .ive to .osg. > I opened it with a text editor and I replaced all GL_BLEND ON statements by > GL_BLEND OFF. > > When I load my project with this .osg here's what the camera see (placed at > the projective camera place): > [Image: http://img7.hostingpics.net/pics/270676Dot_OSG_GL_BLEND_OFF.png ] > (http://www.hostingpics.net/viewer.php?id=270676Dot_OSG_GL_BLEND_OFF.png) > > And if I open the .ive file and execute: > > Code: > > _root_stateset->setMode(GL_BLEND, StateAttribute::OFF | > StateAttribute::OVERRIDE); > > > > [Image: http://img7.hostingpics.net/pics/690702Z_buffer_pourri.png ] > (http://www.hostingpics.net/viewer.php?id=690702Z_buffer_pourri.png) > > > I am very surprised it doesn't give the sam results. > What's happening ? > Is there a bug? > > Thank you! > > Cheers, > Maxime I made another test. I converted the .ive to .osg and I made no change to the file. I executed the same code on both and for the .osg I had the same results than the manual modif I told in the previous post. This means, for the same code (and called _root_stateset->setMode(GL_BLEND, StateAttribute::OFF | StateAttribute::OVERRIDE);), the same model, one in .ive, the other in .osg the results are differents. Well, am I doing something wrong, or is there a bug? Thank you Cheers, Max ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=16135#16135 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

