Shubin Huang wrote:

> I try to use a loader and get reference of objects in .wrl file so I can
> change the property of the objects in the case to move or rotate them.
> Does someone  know which methods to use to do this.

If you have used the Java Loader interface, then the getNamedObject()
call will return you a reference to any VRML nodes that you have
declared with a DEF. However, you have to be careful with what you do as
there are issues with the VRML scene graph changing things on you, and
also that the main scene graph is generally does not have capability
bits set up to allow you to make modifications at runtime.

--
Justin Couch                         http://www.vlc.com.au/~justin/
Freelance Java Consultant                  http://www.yumetech.com/
Author, Java 3D FAQ Maintainer                  http://www.j3d.org/
-------------------------------------------------------------------
"Humanism is dead. Animals think, feel; so do machines now.
Neither man nor woman is the measure of all things. Every organism
processes data according to its domain, its environment; you, with
all your brains, would be useless in a mouse's universe..."
                                              - Greg Bear, Slant
-------------------------------------------------------------------

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