Hi,

I got a strange thing on a double sided model...

Under Windows (XP), a line like:
    stateSet->setAttributeAndModes(new 
osg::CullFace(osg::CullFace::FRONT_AND_BACK), osg::StateAttribute::OFF);
disables the face culling and my model is okay.

Under Linux (Ubuntu 9.04), the *exact* same code makes all (front AND back) 
faces to be culled! Thus my model is invisible.
Splitting this into 2 lines:
    stateSet->setAttributeAndModes(new osg::CullFace(osg::CullFace::FRONT), 
osg::StateAttribute::OFF);
    stateSet->setAttributeAndModes(new osg::CullFace(osg::CullFace::BACK), 
osg::StateAttribute::OFF);
makes the model visible, with the expected behaviour.

Am I wrong somewhere?
May this be a driver issue?
Is this *really* different from calling "stateset->setMode(GL_CULL_FACE, 
osg::StateAttribute::OFF)" for what I want?
Any idea?

Thanks!

--
Sukender
PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to