From the Java3D API:
public class Billboard
extends Behavior
The Billboard behavior node operates on the TransformGroup node to
cause the local +z axis of the TransformGroup to point at the viewer's
eye position. This is done regardless of the transforms above the
specified TransformGroup node in the scene graph.
If the alignment mode is ROTATE_ABOUT_AXIS, the rotation will be
around the specified axis. If the alignment mode is
ROTATE_ABOUT_POINT, the rotation will be about the specified point,
with an additional rotation to align the +y axis of the TransformGroup
with the +y axis in the View.
Note that in a multiple View system, the alignment is done to the
primary View only.
Billboard nodes are ideal for drawing screen aligned-text or for
drawing roughly-symmetrical objects. A typical use might consist of a
quadrilateral that contains a texture of a tree.
~Todd
On Sep 16, 2004, at 2:58 PM, T Nygren wrote:
How do I do this? I'm trying to build a particles engine in J3D with
capability
to project the positions of particles onto 3 axes etc .. Obviously, it
would be
nice to have axis labels for this.
I've managed to create 2d-looking text by feeding a null FontExtrusion
in the
constructor of Font3D, I can create some shapes for these axis labels
and
position them along the axes - so far so good.
Now, I'd like the text always to face the camera. I've added an
OrbitBehavior
to my canvas, so obviously my axis labels rotate as I rotate the view
around,
sometimes disappearing from view altogether...
Any ideas?
Thanks
Tuomas
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
=======================================================================
====
To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
of the message "signoff JAVA3D-INTEREST". For general help, send
email to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".