Updating TransformGroup

Hi,
I like to use a JSlider to change a TransformGroup at runtime.
What I do is simply

tg.getTransform().setTranslation(new Vector3f(0,0,value));

Although the Transform3D seems to be updated immediately, I see the result only after moving the viewpoint.
I remember that somebody had a similar question a while ago, but I couldn’t find it. What am I doing wrong?

PS: The new Logo is +1 and the new build fixed a lot of Texture problems… Xith3D simply rules!!! :o

Well, this is because of TransformGroup does not get informed about the change you made, so it does not update direct cached transforms (such as VworldTransform) used to speed up rendering.

What you can do to work around this is to add a line

[quote]tg.setTransform(tg.getTransform());
[/quote]
just after the line from your example.

Yuri

Yeap, :slight_smile:
Thanks Yuri!