Hi!

I have a problem scaling objects on a live graph. In creategraph() I
have:
t3d = new Transform3D();
  objScale.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
  objScale.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
  t3d.setScale(0.005);
  objScale.setTransform(t3d);
  branchGroup.addChild(objScale);

This works fine. Then I compile the graph and add it to the Universe:
SimpleUniverse u = new SimpleUniverse(canvas);
u.addBranchGraph(scene);

Then I compute te object's bounds and get a center and a radius.
I want to scale the object according to the radius and I don't know how.

This:
t3d.setScale(1/radius);
works fine but when I add it to objScale I get nothing on the screen but
no exception. I have almost all capabilities set.

thanks,

Jure
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to