|
You'v wrote:
"for ex. a sphere with white
appearance".
If the "white appearance" mean that
Ambient=Diffuse=Emissive=Specular=new Color3f(1.0f, 1.0f, 1.0f), you will not
see light effect. If you change color to blue you may be see light effect, but
reflection white because of default material Specular color is
white.
To understand how light model work in Java3D read
this:
Vladimir A.
Vernikovski Programmer ------------------------------------------- JPROOF
Technologies Ltd.
----- Original Message -----
Sent: Saturday, June 14, 2003 3:49
PM
Subject: [JAVA3D] Lights problem
Hi everybody:
I have a problem with lights and the material of
the object.
The first thing I do is to set the Appearance of
an object. I create a new Appearance, then I create a new Material and set the
color of the material with setAmbientColor, setDifusseColor and
setEmissiveColor to the color I have chosen.
When I add a light to the scene, for example a
red light, the effect over the object (for ex. a sphere with white appearance)
is that nothing is seen. If I set the sphere's color to another one (blue)
then the light appears, but the reflection is always white...
What am I doing bad?
Thanks and cheers.
Dani.
|