(Sorry for the Subject
mis-label in previous note)
The problem turned out
to be the direction of the DirectionalLight I added to track with my
ViewPlatform. I move the light to the view platform location and
then set the light's direction. I was setting the direction to (vp.x,
vp.y, vp.z). This made all the spheres black. By setting the light
direction to (-vp.x, -vp.y, -vp.z) they show up as red (as they
should.)
Bob
Gray
-----Original Message-----
From: Bob Gray [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 08, 2000 2:21 PM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] program installation - Step by step instructions
I am using the Sphere util. class to create spheres.
Sphere S1 = new Sphere(sphereRadius);
S1.setCapability(Sphere.ENABLE_APPEARANCE_MODIFY);
S1.setAppearance(sphereAppearance);
TG1.addChild(S1);
BG.addChild(TG1);The spheres do show up but they are black even though I set the color in the appearance to be red.
Could it be the surface normals are pointing in the wrong direction?
Is there a way to invert the surface normals on a Sphere object?I've used Spheres before with no problem. I didn't have to invert any normals. So I don't really think this is the problem. But I can't think of anything else that it could be.
Any suggestions?
Bob Gray
