We are working on an application that lets you draw traces using Java 2D,
then switch to a 3D view, where the Z axis is the time the trace was drawn
on the canvas. It's more complicated than that, but that's it in a nutshell
(thanks to folks on j2d and j3d for their help thus far!).
The problem is that right now we get a "canvas corridor"--just a small part
of the total universe is populated by traces, the X-Y rectangle of the
canvas by the time since you started drawing. What we'd like to do is bound
it. Specially, every time the canvas timeline extends past a certain
distance in Z, we'd like to have it change directions, so it seems like the
timelines are bouncing around inside a big box.
What we have: traces as segments of lines, with (x,y,z); currently being
converted into LineArray sets for rendering.
The question is: what's the best way to get a bounding box behavior? These
traces aren't moving, so collisions don't make sense (or do they?), but
that's kind of what we want: reflected rays randomly tracing around the
inside of a big box. I thought about generating a random rotation and
applying it as a Transform3D to the arms, but this doesn't give you a clean
bound.
Any ideas? We're under a tight deadline, and I'm out of good ones....
regards,
kd
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/