Re: [osg-users] reuse of clipping planes?

2010-12-03 Thread Yuri Vanzine
Hi,

Robert,

You outlined how to use a custom osg::ClipPlane to enable multiple ClipNodes 
per scene:

“You can create you own equivilant by subclassing from osg::ClipPlane and 
overriding the apply() then setting the modelview matrix you want and applying 
the clipplanes and then restoring it afterwards before the end of the apply()”

What goes into the apply method? Simply pushing the modelview
matrix and calling the osg::ClipNode::apply method and then popping it does not 
work. The ModelViewMatrix appears to be correctly set.

You also mention in other responses to other engineers about using  RenderStage 
per ClipNode.


Since it has been a few years since some of these conversations, what would be 
your recommendation to best extend osg to allow multiple ClipNodes be active in 
one scene?

Thank you,

Yuri

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=34490#34490





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


Re: [osg-users] reuse of clipping planes?

2010-12-03 Thread Yuri Vanzine
Hi,

My Apologies. The sentence in the middle should read:


What goes into the apply method? Simply pushing the modelview 
matrix and calling the osg::ClipPlane::apply method and then popping it does 
not work. The ModelViewMatrix appears to be correctly set.

Cheers,
Yuri

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=34500#34500





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