Hi Erland,

Disabling the mode should be sufficient.  Make sure that you are
decorating the subgraph you want to disable face culling for as state
is inherited downwards.

Robert.

On Thu, Apr 24, 2008 at 5:41 PM,  <[EMAIL PROTECTED]> wrote:
>
>
>
>
> I cant seem to turn off cullface on the geometry.
>
>
>
> I am doing the following:
>
>
>
> _stateSet = new osg::StateSet;
>
> _cullFaceState = new osg::CullFace;
>
> _stateSet->setAttributeAndModes(_cullFaceState.get(),
> osg::StateAttribute::OFF | osg::StateAttribute::OVERRIDE);
>
> _someGeometry->setStateSet(_stateSet);
>
>
>
> still only renders when i'm on one side of the geometry
>
>
>
> ps. i do this in a class which inherits from osg::Group, also tried to just
> set:
>
>
>
> getOrCreateStateSet()->setMode(GL_CULL_FACE, osg::StateAttribute::OFF |
> osg::StateAttribute::OVERRIDE);
>
>
>
> in my class..
>
>
>
> using: osg2.3.7, SceneView
>
>
>
> Erlend
> _______________________________________________
>  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