|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Possibility of no-render zones?Hi,
I just started in java 3D and I am wondering if it is possible to set up 3D zones where all objects are invisible? For instance, any part of any object with a positive Y-coordinate would be invisible. I tried this with a BoundingBox but all that happens is that the objects in the 'invisible zone' are black but you can still see them when they pass in front of other objects. My intention is to show cutaway type views of 3D scenes. Many thanks Dave [Message sent by forum member 'dwsubc' (dave@...)] http://forums.java.net/jive/thread.jspa?messageID=370489 --------------------------------------------------------------------- To unsubscribe, e-mail: interest-unsubscribe@... For additional commands, e-mail: interest-help@... |
|
|
Re: Possibility of no-render zones?Have you seen the ModelClip node? Sounds like that could do something like what you're asking.
Bill [Message sent by forum member 'weiland' (weiland@...)] http://forums.java.net/jive/thread.jspa?messageID=370499 --------------------------------------------------------------------- To unsubscribe, e-mail: interest-unsubscribe@... For additional commands, e-mail: interest-help@... |
|
|
Re: Possibility of no-render zones?Many thanks Bill. It looks like this will do exactly what I want.
Thanks again for the quick reply. Dave [Message sent by forum member 'dwsubc' (dave@...)] http://forums.java.net/jive/thread.jspa?messageID=370502 --------------------------------------------------------------------- To unsubscribe, e-mail: interest-unsubscribe@... For additional commands, e-mail: interest-help@... |
|
|
Re: Possibility of no-render zones?Below is how I used Bill's idea to allow me to turn various parts of my scene invisible. For instance, to make the positive X half of the universe invisible, call mc.setEnable(0, true); You can combine these calls to show quarters or eigths as well.
I can now show cross sections, cutaways and segments of my scene. Very cool. Dave //Create Model Clip ModelClip mc = new ModelClip(); mc.setCapability(ModelClip.ALLOW_ENABLE_WRITE); boolean enables[] = { false, false, false, false, false, false }; mc.setEnables(enables); Vector4d vector4d = new Vector4d(1.0, 0.0, 0.0, 0.0);// +X mc.setPlane(0, vector4d); mc.setEnable(0, false); vector4d = new Vector4d(-1.0, 0.0, 0.0, 0.0);// -X mc.setPlane(1, vector4d); mc.setEnable(1, false); vector4d = new Vector4d(0.0, 1.0, 0.0, 0.0);// +Y mc.setPlane(2, vector4d); mc.setEnable(2, false); vector4d = new Vector4d(0.0, -1.0, 0.0, 0.0);// -Y mc.setPlane(3, vector4d); mc.setEnable(3, false); vector4d = new Vector4d(0.0, 0.0, 1.0, 0.0);// +Z mc.setPlane(4, vector4d); mc.setEnable(4, false); vector4d = new Vector4d(0.0, 0.0, -1.0, 0.0);// -Z mc.setPlane(5, vector4d); mc.setEnable(5, false); mc.setInfluencingBounds(bounds); objRoot.addChild(mc); [Message sent by forum member 'dwsubc' (dave@...)] http://forums.java.net/jive/thread.jspa?messageID=370684 --------------------------------------------------------------------- To unsubscribe, e-mail: interest-unsubscribe@... For additional commands, e-mail: interest-help@... |
| Free embeddable forum powered by Nabble | Forum Help |