the one that works for me is:
1) move to origin
2) scale
3) move back to position

hope it works out...
Jay

----- Original Message -----
From: Ole Vilmann <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 16, 2000 5:26 AM
Subject: [JAVA3D] Scaling moves object


> When I scale an object (through a TransformGroup's Transform3D) my
> object moves, thus the placement is also scaled.
>
> When I load a vrml file with the vrml loader, I get a branchgroup
> from the loaded scene. This branchgroup I place as child to a transform
> group. My problem is when the vrml object loaded from the vrml file
> is not centered in (0,0,0) then the placement of the object in the scene
> is also scaled.
>
> How can I work-around this problem ? Can I for instance reposition the
> object before I scale it and move it back afterwards ?
>
> Ole Vilmann
> Danish Maritime Institute
>
>
===========================================================================
> 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".

Reply via email to