I'm not sure where you're going wrong...
Attached is a crude example which was posted to the list some while back. I
hope it helps...
Andy Phelps
-----Original Message-----
From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED]]
On Behalf Of Bob Gray
Sent: 13 September 1999 15:40
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Changing Sphere Color
I just tried this and it didn't work....
In my appearance code, I have
Material theMaterial = new Material();
theMaterial.setCapability(Material.ALLOW_COMPONENT_READ);
theMaterial.setCapability(Material.ALLOW_COMPONENT_WRITE);
:
A.setMaterial(theMaterial);
and I still get the "no capability to get appearance" exception.
Any other thoughts on how to change a Sphere's color?
Bob Gray
-----Original Message-----
From: David Halle [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 13, 1999 10:01 AM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Changing Sphere Color
By setting the capability bit ALLOW_COMPONENT_READ/WRITE of your Material
component
it should works.
regards
David HALLE.
--------------------------
E-Mail:[EMAIL PROTECTED]
______________________________________________________________________
Message envoye depuis iFrance >> http://www.ifrance.com
Gratuit >> Hebergement (50 Mo)/Vos emails (POP&HTML)/Vos P.A.
NOUVEAU : votre agenda online gratuit !
===========================================================================
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".
===========================================================================
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".
test39.java