Hi Brian,
I am not some of theses geniuses but thinking about Text2D for some days
now.
Basically I had the problem that I needed to enlarge my labels, thats why
I ended up scaling the Text2D anyway. Today I was thinking about adding a
scale for my hole scene, except for my labels.
I have
BG root
|
TG (scaling)
|
TG (move to place in world)
|
TG(scale labels bigger)
| |
| Text2D
|
Shape3D (to be labelled)
Knowing the scale factor of the overall Scaling TG , I think it is
possible to rescale the Text2D in changing the TG(scale labels
bigger) with something like:
Transform3D scalebigger = new Transform3D();
scalebigger.setScale(new
Vector3d(scalebigger*1/scaling,scalebigger*1/scaling,scalebigger*1/scaling));
scaleTG.setTransform(scalebigger);
This should only affect the Text2D in the above sceneGraph.
Desiree
o------------------------------------------------------------------------o
| Desiree Hilbring Institut fuer Photogrammetrie und Fernerkundung |
| Universitaet Karlsruhe, Germany |
| |
| email: [EMAIL PROTECTED] |
| # 0721 6083676 |
o------------------------------------------------------------------------o
On Thu, 5 Apr 2001, Brian Eppert wrote:
> Could one of you geniuses (good or evil, I don't mind), please take a
> second out of your development of that insanely good looking RPG with
> the overlays and the 7 layer textured landscape, or that molecule
> simulator that appears to be one step away from actually creating
> matter, or that desperate need to send the same virus in 20 messages
> to this list each time pretending to be someone more worthwhile than
> yourself, to answer this simple question:
>
> How can I negate the scaling of a node by it's TransformGroup
> parents? I'd like to add a Text2D at the bottom of a tree that should
> be positioned and rotated along with it's parents, but not scaled as
> they are. I know the scale Vector of the parent, can I somehow invert
> this vector and scale the Text2D to return it to normal?
>
> Thanks for your time,
> -Brian
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
>
> ===========================================================================
> 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".