Hi Sukender,

If you can try your app out on different hardware as well as different
OS's as it's pretty likely that this issue is driver specific.

Robert.

On Thu, Jul 9, 2009 at 12:10 AM, Sukender<[email protected]> wrote:
> 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
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to