Try a simple thing: put a Text3D at some x,y,z, attach a point-defined billboard at
the shape with the point of rotation been set at the middle of the shape ( you might
need to do some calculations here), and then attach the group of mouse behaviors to
the parent transform group and start playing with the mouse. You will see then if it's
OK or not for your purposes.

Clara Dinh wrote:

> Thanks Dan. But, correct me if I'm wrong, doesn't Billboard only solve the problem
> of the label being backwards? After reading the API and other docs, I didn't think
> that Billboards had the capability to make sure an object was always right side up
> as well as facing the viewer.
>
> Thanks to Doug G. too. I'll look into OrientedShape3D. Thanks to everyone else for
> your help as well.
>
> -Clara
>
> Dan Todor wrote:
>
> > Clara,
> > I had the same problem, but a Bilboard behavior attached at every label with
> > point as center of rotation ( wich was the center of the label ) solved my
> > problem.
> >
> > Clara Dinh wrote:
> >
> > > I've looked through the archives for Java3D and have read the
> > > messages dealing with obtaining rotation angles and quaternions and
> > > matrices, etc. However, from all of that information, I still
> > > haven't been able to fix my problem.
> > >
> > > I have a 3D graph, with the standard x,y,z axes and labels.
> > > When I rotate the graph, the labels rotate with it, as they should.
> > > However, depending on the direction of rotation, sometimes the labels
> > > will appear upside down. And I'm trying to resolve this by having
> > > "moving" labels that will always appear in the front and left sides
> > > of the graph (labels will flip accordingly as the graph/cube is
> > > rotated). To do this, I have used various methods to read the rotation
> > > angles to determine which location to move a label to. I can get the
> > > x and y angles of rotation fine but am having difficulty getting the
> > > z rotation angle. For example, if I start off with the standard orientations
> > > of Y being positive in the up direction, X being positive in the right
> > > direction, and Z being positive coming out of the screen towards the viewer,
> > > rotating Y by 90 degrees will have me looking at the Z axis on the
> > > horizontal. Now, if I try to rotate in the + or - z directions, it
> > > is the X rotation angle that changes. I got it to work as long as the
> > > X axis remains horizontal but when X goes vertical, it can't tell
> > > the difference between X and Z.
> > >
> > > Any suggestions would be greatly appreciated.
> > > Thank you in advance.
> > > -Clara
> > >
> > > ===========================================================================
> > > 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".
> >
> > --
> > Best regards,
> > Dan Todor
> > ---
> > You can have it done FAST   | \
> > You can have it done RIGHT  |  | --- Pick any two.
> > You can have it done CHEAP  | /
> >
> > ===========================================================================
> > 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".
>
> --
>
> * Clara Dinh
> * Argon Engineering Associates
> * 12701 Fair Lakes Circle, Suite 650
> * Fairfax, VA  22033
> * (703)995-4281
> * (703)322-0885 (fax)
>
> ===========================================================================
> 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".

--
Best regards,
Dan Todor
---
You can have it done FAST   | \
You can have it done RIGHT  |  | --- Pick any two.
You can have it done CHEAP  | /

===========================================================================
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".

Reply via email to