It is Possible to create an Oriented TransformGroup ????

an Idea
-----Message d'origine-----
De : Martin Traverso <[EMAIL PROTECTED]>
� : [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date : vendredi 4 avril 2003 20:04
Objet : Re: [JAVA3D] OrientedShape3D behaving abnormally


>Thanks Alessandro! That fixed it!
>
>Now, I have another question, if you don't mind: if I want to use several
>OrientedShapes, do I need to place each one under it's own TransformGroup?
>
>Regards,
>Martin
>
>-----Original Message-----
>From: Discussion list for Java 3D API
>[mailto:[EMAIL PROTECTED] Behalf Of Alessandro Borges
>Sent: Thursday, April 03, 2003 10:12 PM
>To: [EMAIL PROTECTED]
>Subject: Re: [JAVA3D] OrientedShape3D behaving abnormally
>
>
>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
>
>    file://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".
>
>===========================================================================
>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