Jason Cheatham wrote:

>Hello,
>
>I am using the vrml97 loader to create a scene and I want to be able to indicate to 
>the user selectable objects by creating a wireframe outline on them.  I really 
>appreciate any help.
>
>
>
I'd suggest walking the J3D scenegraph looking for Shape3D nodes(or go directly from 
getNamedObjects) of the objects in question.  set the associated Appearance's 
setAppearanceOverrideEnable.  Then I'd add an AlternateAppearance to the SceneGraph 
scoped to the objects in question.

To get this working with the latest Xj3D loader you will need to call 
setCapabilityRequiredMap to indicate that appearance nodes need to have 
ALLOW_APPEARANCE_OVERRIDE_WRITE on them.  And you will need to call 
setAppearanceOverrideEnable(true) on the appearances you want affected by the 
AlternateAppearance.

Unfortunately we don't have an example of this in Xj3D currently, we just implemented 
the j3d capability bit override in M5.  If you get a small demo working I'd be happy 
to check it in as an example to others.
--
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