On Tue, 4 May 1999, Frederic Gillet wrote:
> > Your example works fine, just turn the ambient light down to nothing
> > (0.0,0.0,0.0) and then set the directional light to point straight into
> > the scene - I tried (0.0,0.0,-1.0).
> >
> > I think part of the problem is that the tetrahedron is tilted at an odd
> > angle and so your light wasn't hitting much of each face - plus the fact
> > that the ambient light was making things look a murky gray.
> >
>
> My problem is to have lighting enabled AND to see the colors defined in the
> geometry array at the same time ...
> When the tetrahedron's faces are blue, yellow and red (colors defined in the
> geometry),
> the lighting is NOT enabled ...
> When I set an appearance with material, I loose the colors (red, yellow, blue)
> defined in the geometry ...
I understand that - but have you actually tried the changes I suggested?
because when I ran the program you attached it worked fine and I could see
flat colours with no lighting and shaded colours with lighting. The
problem was that when lighting was enabled the ambient light coupled with
the unhelpful direction of the directional light made the faces look
greyish at best. Try the suggestions - if they don't work then something
is wrong with your install of Java3D.
Tim.
,----------------------------------------------------------------------.
| Tim Needham. |
| OU Computer Society Ex-President. |\ ___,,--,_ __ |
| [EMAIL PROTECTED] /,`--'' \`,,__,',-'|
| http://ox.compsoc.net/~timothy |,4 ) )_ ) /~-----' |
`------------------------------------------'---^~(_/-_)--(_/_)---------'
Q: Why did the mathematician name his dog "Cauchy"?
A: Because he left a residue at every pole.
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/