Hello Jens,

Jens Grubert wrote:
> is it somehow possible to get acces to the 
> osg::RenderOptions::setBackfaceCulling method? If so how?
> I set up my scene with a SimpleSceneManager.

? it's public, you just call it? I think I'm not really understanding 
what you are asking for here, sorry.

> I have the problem, that a loaded vrml file is messed up and that i do 
> not have the possibility to readjust the vertex order of the given file.
> If I render the vrml, some faces get drawn, others not. So I would like 
> to disable backfaceculling (and enable it again as i like).

In OpenSG backface culling is not enabled by default (just as in 
OpenGL), and normally enabled by adding a PolygonChunk with the desired 
settings to the materials in the scene.
Creating and a RenderOptions object and calling 
activateOptions(RenderAction *ract) with the RenderAction as argument is 
a more global way to activate it - but I'm not sure if it interacts well 
with individual PolygonChunks that have different settings.

        Cheers,
                Carsten

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to