Hi Paul,

On 12 September 2012 13:16, Paul Griffiths <[email protected]> wrote:
> Hi,
> Is it possible to have a clipped scene within a clipped scene?
>
> Say, i have a clipped cube, can i add this object within another scene which 
> is also clipped(using 4 clipplanes?)

The simple answer has to be no as fixed function pipeline in OpenGL
drivers and hence the OSG are typically limited to 6 clipping planes.

However, you could implement your own shaders that overcome this
limitation, using uniform to pass in the position of the clipping
planes.

The alternative would be to a multi-pass approach, but whether this is
possible in your case will depend a great deal on exactly how you
clipping things, i.e. object space vs viewport space.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to