My personal guess on this issue...

I think Material colors, atleast as far as Java 3D goes,
have no effect on LineArray UNLESS lighting is enabled
and *line vertex normals* are explicitly specified.
It is unlikely that vertex normals will usually be
specified for LineArray, so enabling lighting and expecting
diffuse and specular colors to have any effect is probably
not appropriate. However, ambient color (which I have checked)
and emissive color (which I haven't properly) also do not seem
to have any effect which to me is a little bit of a surprise.

Now, there are times when a Material does seem to affect
color and shading of "lines". But these "lines" are not
lines per se specified thru' a LineArray but *edges* of polygons
specified thru' a Triangle/QuadArray and with the polygon mode
set to polygon_line. This works with Java 3D.

Interestingly, there are times when LineArrays are lighted
using dynamically calculated line vertex normals as a function of
light and view directions using hardware texture transform.
Typically, this technique is used for hair rendering (I think there
is an example at the nVidia site), streamline rendering etc.

Raj Vaidya

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to