Hi Martin

You must put you orientedShape in a TG, then add this TG to your BG.
So it will work fine.

// set up a fresh new TG
 TransformGroup tg1 = new TransformGroup();
 tg1.addChild(orientedShape); // add you orientedShape
 content.addChild(tg1);      // add your tg1  to BG

//content.addChild(orientedShape); /* comment out this buggy line */


Alessandro


Martin Traverso escreveu:

Hi,

I was playing around with OrientedShape3Ds, and I set up a very simple
program to see how they worked. The program creates a scene graph with two
squares, one is a regular Shape3D and the other an OrientedShape3D. I'm
using OrbitBehavior to orbit around the squares.

Well, it doesn't seem to be working as I expected. Both squares behave as
regular Shape3Ds. What puzzles me even more is that if I remove the regular
Shape3D from the graph, the OrientedShape3D starts behaving as it should.

What am I doing wrong? Is there any constraint in where/how an
OrientedShape3D is placed in the scene graph?

Any help is appreciated!

Thanks,
Martin




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