ZACZEK, MARIUSZ P. (MARIO) (JSC-DM) (NASA) wrote:
Once you load a VRML file (using vrml97.jar) into a scene, can you change
it's color?

Can you (maybe) get an appearance and change it? Anything like that?

Mario
Depends, are you running the VRML event model, or just using the loader
as a geometry loader?  If you have the event model then their are well
defined mechanisms in VRML to do that.  Otherwise you will need to
modify Java3D nodes.  You can DEF the VRML node and then use the
Scene.getNamedObjects() to get the Java3D node representing the
Appearance...  then walk the subgraph and find the Appearance node to
change.

--
Alan Hudson
President: Yumetech, Inc.                      http://www.yumetech.com/
Web3D Open Source Chair        http://www.web3d.org/TaskGroups/source/

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