Hi,

I've got a problem with J3D and I don't understand why I get it...
It goes like that:
I've got a couple of Shape/Primitive on which I set the capability bits 
as follow:
o.setCapability(javax.media.j3d.Appearance.ALLOW_COLORING_ATTRIBUTES_WRITE);
o.setCapability(javax.media.j3d.Appearance.ALLOW_COLORING_ATTRIBUTES_READ);
and the same on its parent...

In my Behavior class, I try to change the object color but fails with the 
following message:
javax.media.j3d.CapabilityNotSetException: Appearance: no capability to 
set coloringAttributes

When I check in the processStimulus method by doing 
o.getCapability(javax.media.j3d.Appearance.ALLOW_COLORING_ATTRIBUTES_WRITE);

It returns 'true' which is what I would expect. But when I do 
shapeAppearance.setColoringAttributes(highlight); 
it fails and throws the above exception.

Did anyone experience the same problem? Or can someone tell me what I'm 
doing wrong?

Thanks,

Chris.
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to