Re: [osg-users] getting userData or accumulated Uniform in nodevisitor

2021-01-31 Thread Robert Osfield
Hi Werner,

You'll need to override the Cull traversal behavior and get the StateSet
stack from the CullVisitor.  I don't recall the details off the top of my
head so you'll need to look at the osgUtil::CullVisitor and it's parent
class osg::CullStack for the tracking of state.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] getting userData or accumulated Uniform in nodevisitor

2021-01-31 Thread Werner Modenbach
I created my own derived LOD node class and implemented the traverse(...) 
method.

I want to control the detail level decision from a StateSet some node further 
up in the nodePath.

So my traverse(...) method needs to read some userData or read the value of an 
accumulated Uniform (with respect to override etc.)
Unfortunately I got lost when studying the code. Where should I place user 
values and are they propagated down the node path?
Where can I find the accumulated value of a Uniform?

Thanks for any hint.

- Werner -
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org