Hi everyone!

i wonder if i found a bug....

i am trying to set the Shininess-value of a Material-Component
allthough the ALLOW_COMPONENT_READ and WRITE Capabilities are set

getShininess() yields the value that was assigned to the Materialnode at
construction time...

float shininess = 1f;
Material mat = new Material(diffcol, ..., shininess);
mat.setCapability(Material.ALLOW_COMPONENT_READ);
mat.setCapability(Material.ALLOW_COMPONENT_WRITE);

...

shininess = .4f;
setShininess(shininess);

System.out.println(mat.getShininess());

yields : 1.0

has this bug been fixed already or am i doing something wrong?

michy

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

Reply via email to