Hey,
I am trying to change the Diffuse Color of a Shape 3D at Run Time. I have set the following Capabilities …
Appearance.ALLOW_MATERIAL_READ);
Appearance.ALLOW_MATERIAL_WRITE);
Appearance.ALLOW_COLORING_ATTRIBUTES_WRITE);
Appearance.ALLOW_COLORING_ATTRIBUTES_READ);
Material.ALLOW_COMPONENT_WRITE);
Material.ALLOW_COMPONENT_READ);
I am able to succesfully set the diffuse color (setDiffuseColor(color)) and then add the material back into the apperiance and then add the appearance to the shape3d. However, the object’s color in the 3D world doesn’t reflect its new Material/appearance.
Is there anything else I should be doing?
Oh yea, I can see the Color of the object at startup (meaning there are several lights pointing at the object)…
Thanks