> Date: Tue, 20 Mar 2001 13:37:04 +0100
> From: Daniel Moscoso <[EMAIL PROTECTED]>
> Subject: [JAVA3D] Changing attributes from a loaded OBJ / 3DS model
> To: [EMAIL PROTECTED]
>
> Hi all !!
>
> I'm working with 3DS and OBJ models, and I want to know if exists a
> quick way to change the attributes (PolygonAttributes,
> TransparencyAttributes, etc) from a model.
> I understand it has to be done from the Appearance nodes.
> Is there a quick way to get Appearance nodes from the model
> root BG, or only navigating through all the scene graph tree ?

There's no quick way.

The ObjectFile loader will return a Scene object.  This object has
a method called getNamedObjects() that you can use to get to the
individual Shape3Ds that make up the model.  You can then
use setAppearance() on a Shape3D to change the appearance of that
part to whatever you want.

-Paul

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