From: "Carl Smotricz" <[EMAIL PROTECTED]>
Sent: Thursday, November 09, 2000 2:00 AM


> Hello Chu,
> ...
> If you want to change the position of something, removing it and
> re-inserting it is a slow and difficult way to do it. Instead, you should
> attach the object to a Transform3D node (between the Locale and the

He said Transform3D node, but he really meant TransformGroup.

> BranchGraph or between the BranchGroup and the object), then to change the
> position of the object you need only change the characteristics of the
> transform. This will allow you to move the object more or less
continuously
> as the user moves the slider.
> ...

Whenever your mother gives you a recipe, she leaves out certain essential
information, so that you'll be sure to fail and you'll have to call again.

In this case, Chu, Carl is setting you up for a return call by failing to
mention that when you set up a TransformGroup, TG1, say, that will cause the
attached scene graph segment to move, you have to remember to set its
capability bit.

TG1.setCapabiity(ALLOW_TRANSFORM_WRITE);

Then, once you identify TG1 as the target of your interpolator, Java takes
care of everything else.  Ain't object orientation grand?

Good cookin'  :-)
Fred Klingener

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