I dont think its a bug, I must have missed something : P ... but still, whats
the point of
having colors in the geometry if we cant use them when lighting is enabled ?
Here is a small example I included in a jar file called Lighting.jar.
Launch the example with "Java HelloUniverse"...
Press SPACE to swith between a default material (uniform color and Lighting)
and a null material (Colors defined in geometry and no Lighting) ...
Thanks a lot
Frederic Gillet
Xbind, Inc.
Doug Gehringer wrote:
> > From: Frederic Gillet <[EMAIL PROTECTED]>
> >
> > I create a Shape3D thru a GeometryArray and specify the normals and the
> > colors at each vertex:
> > for example a pyramid with a red, yellow, blue and white faces.
> > How can I enable lighting on such a shape3D (Im using a directional
> > light)?
> > If I specify an appearance for the Shape3D, the lighting is enabled, but
> > then the colors
> > of the verices are overwritten, the color of the shape3D is the same for
> > all the faces.
>
> This also sounds like a bug. Again, can you give us a test case?
>
> Thanks
>
> Doug
lighting.jar