You need to set the influencing bounds for the light. For example:
 
light.setInfluencingBounds(new BoundingSphere(new Point3d(0,0,0), 100));
 
 
-----Original Message-----
From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED]On Behalf Of Γιάννης
Sent: Tuesday, June 17, 2003 1:12 PM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Light Everywhere!!!

Here is my attempt
 
 Color3f light1Color = new Color3f(0.3f, 1.0f, 0.3f);
    AmbientLight light=new AmbientLight(light1Color);
 
group.addChild(light);
 
But i can see nothing :(
----- Original Message -----
Sent: Tuesday, June 17, 2003 8:51 PM
Subject: Re: [JAVA3D] Light Everywhere!!!

Isn't that what AmbientLight does?

Kev

Γιάννης wrote:
Could i have light everywhere within the Universe? I would like to rotate the shape and see all its faces

Reply via email to