[osg-users] set cullface mode in osg file
Voerman, L.
l.voerman at rug.nl
Fri Mar 2 03:59:26 PST 2018
Hi Sebastian,
Geode {...
Geometry { ...
StateSet { ...
GL_CULL_FACE ON
Material { .... }
CullFace {
mode BACK
}
For no culling use GL_CULL_FACE OVERRIDE|OFF
To cull front faces use mode FRONT.
To cull all faces use mode FRONT_AND_BACK
Regards, Laurens.
On Fri, Mar 2, 2018 at 11:07 AM, Sebastian Schmidt <herrdersuppen at gmail.com>
wrote:
> Hi,
>
> What is the correct syntax to enable front or backface culling in an osg
> file?
>
> For example:
>
> Geode {...
> Geometry { ...
> StateSet { ...
> GL_CULL_FACE ON
> ...
> Material {
>
> ------------------------
> OSG Version: 3.4.1
> OS: OpenSuse Leap 42.1
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=72995#72995
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20180302/c566251e/attachment.html>
More information about the osg-users
mailing list