Hi Michael,

[EMAIL PROTECTED] wrote:
> Hello again
> 
>>> how do I use this ClipPlaneChunk to put a user defined Clip Plane into
>>> my scene? Especially: to what do I have to add this ClipPlaneChunk to
>>> make it work. As far as I guessed I use setEquation to define the plane,
>>> right? But what then?
>> The ClipPlaneChunk (like all other chunks) needs to be added to a
>> Material in order to have any effect. Everything derived from
>> ChunkMaterial can be used for that, which includes most Materials.
> 
> I got the ClipPlane attached to a material, that belongs to an object. 
> But only that object is clipped now, while I want the whole scene to be 
> clipped against the ClipPlane :-/

well, unless all your objects use the same material anyway, you'll
probably have to add the ClipPlaneChunk to all objects materials you
want clipped (hint: in OSGAction.h there are functions called traverse
which will call a functor for each node in a subtree, they could be
usefull). If everything uses the same material anyway a MaterialGroup
could help you as well.

        Hope it helps,
                Carsten

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to