appearance management for loaded objects

Is it a way to manage the appearance for a loaded object (color, texture)?
I have a example with a vrml loaded scene that i woul dlike to modify.
But it is present in my scene as a branchgroup :

BranchGroup b1 = new vrmlLoad(“7.wrl”);

How is it possible to assign an appearance to this ?
how to link this branchgroup with a shape3D (if shape3D is the solution) ?.
After that, i imagine that to create an appearance for this shape
and modify the capability bits.

Any idea ?
thanks.

Appearances are assigned to Shape3Ds in the tree. To change the appearance of the entire tree you would need to traverse it and set new appearances for all the Shape3D leaves. (Note that the Shape3D must have been created with permissions to change appearances. Hopefully your loader will let you do that. If not you will have to change that too as you traverse the graph. Such changes may NOT be done on live trees.)

There is a utility in the utils package that will help you traverse the graph. I cant remember its name but if you poke through the docs you shouldl find it. If you get stuck, ask back here again and ill go ask Paul…

Thanks Jeff,
I ve taken the documentation for my loader : vrmlLoader(). It has 75 pages and it is a bit tricky.
So if you remember the name of the utility to traverse the graph …

many thanks

According to Paul its in utils.scenegraph.Traverser in the J3D utils package :slight_smile: