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 -- Re

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 aft

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

2010-06-17 Thread Robert Osfield
g] On Behalf Of Robert > Osfield > Sent: Tuesday, May 18, 2010 12:58 AM > To: OpenSceneGraph Users > Subject: Re: [osg-users] reuse of clipping planes? > > Hi Jason, > > RenderBin's don't have any positional state setup so you can't use > them directly to ena

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

2010-06-16 Thread Jason Jerald
12:58 AM To: OpenSceneGraph Users Subject: Re: [osg-users] reuse of clipping planes? Hi Jason, RenderBin's don't have any positional state setup so you can't use them directly to enable more clipping planes. Only RenderStage's set up the positional state. The FlightGear&

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

2010-05-18 Thread Robert Osfield
graph.org > [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert > Osfield > Sent: Thursday, May 13, 2010 1:21 AM > To: OpenSceneGraph Users > Subject: Re: [osg-users] reuse of clipping planes? > > Hi Jason, > > Clip planes are an example of positional state, other

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

2010-05-17 Thread Jason Jerald
ks! Jason -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield Sent: Thursday, May 13, 2010 1:21 AM To: OpenSceneGraph Users Subject: Re: [osg-users] reuse of clipping planes? Hi Jason, Clip

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

2010-05-13 Thread Robert Osfield
Hi Jason, Clip planes are an example of positional state, other examples are lights and eye linear texgen. All positional state requires a specific modelview matrix to be bound to them to position them correctly in space, so unlike other OpenGL/OSG state you can't just push/pop and state sort the

[osg-users] reuse of clipping planes?

2010-05-12 Thread Jason Jerald
Evidently most graphics hardware only supports 6-8 clipping planes and our application requires more than that so I need to somehow reuse clipping planes. I searched the archives and saw there was some discussion of this back in 2007 (something about possibly using the render bin instead of th