Hi Robert,
On Sunday 18 February 2007 13:50, Robert Osfield wrote:
> I haven't compiled and run your app, but browsing through it looks
> like you arn't setting the clip plane number for each of the planes so
> they arn't distinct, for you two planes you'll need to use 0 and 1, as
> if they both use 0 (which is the default) then they will be set the
> same OpenGL clip plane, the last one to apply will be the one that
> takes affect.
The clip plane number is by intention allways set to 0.
The testcase is just a coocked down version of what is required in principle.
The real application (flightgear) has an unkown number of subtrees where each
of it has 4 clip planes that are different for each subtree. That is just
like the attached example but with 4 planes attache to each ClipNode and with
an unknown number of direct child ClipPlanes just below that topleve Group in
the example.
In theory is must be possible to have a full set of those 6 guaranteed OpenGL
clip planes that are just active for a specific subtree - just like the other
StateAttributes too ?
Greetings
Mathias
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/