Appearance and BranchGroup

Hi !

I'm new to Java3D and I want to change the Appearance of an object. The

problem is, the object is loaded with an ObjectFile and I don't find a

method which allowed to change the Appearance. I get the BranchGroup with

the Scene so I can visualize my object but it's black (the object file don't

set color attribute so I think Java3D set it to default : black). The

methods setAppearance() could be applied only on Primitive object or Shape3D

but how get it with a BranchGroup ?

Thanks

[561 byte] By [splotto] at [2007-9-26 2:06:21]
# 1
You can trace a BranchGroup object and extract Primitive or Shape3D objects. Then you can set Appearance.Masa
TakatsukaM at 2007-6-29 8:52:26 > top of Java-index,Security,Cryptography...
# 2
And my question is "How can I do this ?"
splotto at 2007-6-29 8:52:26 > top of Java-index,Security,Cryptography...
# 3
You can get child nodes of a Group object using "getChild" or "getAllChildren" method.Masa
TakatsukaM at 2007-6-29 8:52:26 > top of Java-index,Security,Cryptography...
# 4
Many thanks !!!
splotto at 2007-6-29 8:52:26 > top of Java-index,Security,Cryptography...