Re: [JAVA3D] I want to move loaded shapes!!

2003-07-20 Thread Alessandro Borges
Hi I guess the nodes of a loaded .obj are Shapes3D. And the nodes of a loaded vrml are TGs... I think you can get  all nodes BEFORE inserting it in the scene graph, and set your capabilities: something like: Hashtable hash = scene.getNamedObjects(); for (Enumeration e = hash.keys() ; e.hasMore

Re: [JAVA3D] I want to move loaded shapes!!

2003-07-20 Thread Ewan Borland
Whenever you laod a model using a loader you didn't create it can be useful to find all the nodes of a certain type and perform some action on them.   Here's some code that traverses the full graph from any Scene and recovers all of the Shape3D nodes. Obviouslly it's very easy to modify this

[JAVA3D] Move a Shape3D

2003-07-20 Thread Kurt Kirkham
I am wanting to move an Shape3D through a 3D universe. I have not seen any good information on how to do that or code examples (the code examples that I pulled from the web didn't work). Does anyone know a good reference webpage or have some code. Thanks, kurt... ==

Re: [JAVA3D] Move a Shape3D

2003-07-20 Thread Jeremy Booth
Kurt Kirkham wrote: I am wanting to move an Shape3D through a 3D universe. I have not seen any good information on how to do that or code examples (the code examples that I pulled from the web didn't work). Does anyone know a good reference webpage or have some code. Thanks, place a TransformGroup

Re: [JAVA3D] Move a Shape3D

2003-07-20 Thread Kurt Kirkham
Jeremy, To move an object, I am reading about PositionInterpolars. I also saw that I can use a set method on the Transform3D. Which would you recommend to move an object in an eliptical path? To use the set method do I have to create a behavior with a wakeup? I am new to Java 3D... Thanks, k

Re: [JAVA3D] Move a Shape3D

2003-07-20 Thread Jeremy Booth
Kurt Kirkham wrote: Jeremy, To move an object, I am reading about PositionInterpolars. I also saw that I can use a set method on the Transform3D. Which would you recommend to move an object in an eliptical path? i've never used PositionInterpolators, i've only looked at java3d for games, and my A

Re: [JAVA3D] I want to move loaded shapes!!

2003-07-20 Thread hterrolle
Set the pickable attribut for the objet. -Message d'origine- De : nagehan pala <[EMAIL PROTECTED]> À : [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date : samedi 19 juillet 2003 14:36 Objet : [JAVA3D] I want to move loaded shapes!! >Hi all > >My program loads two .obj files and they are added to