Tim Bray wrote:
> So... I conclude that you effectively can't use Materials with LineArrays,
> and the COLOR_3 I provide in the LineArray is some undocumented mixture of
> emissive and diffuse color?
You can light any GeometryArray primitive in Java 3D. All will
accept normals. It may not be intuitive, but is sometimes useful.
I'm not sure about the utility classes (I don't use them). In
addition, you can create polygonal primitives and render them as
lit points or lines by modifying their Appearance's PolygonAttributes
object (POLYGON_LINE, POLYGON_POINT).
As far as COLOR_3 componenents (from an earlier post of mine):
If you've set per-vertex colors, have a Material attached, and
lighting is enabled...
your per-vertex colors will override the diffuse component
of the material object.
If you've set per-vertex colors and don't have a Material
attached (null Material in Appearance)...
your geometry will be unlit and colored solely by
the per-vertex colors.
Java 3D v1.2 includes a new RenderingAttributes component
that let's you defeat this override behavior
(setIgnoreVertexColors). It's not implemented in the
current alpha release.
--
Allen L. McPherson Member Holstein Aerobatic Club
Los Alamos National Laboratory Scientific Viz / Advanced Computing Lab
Box 1663 Group:CIC-ACL MS:B287 [EMAIL PROTECTED]
Los Alamos, NM 87545 Voice: (505) 665-6548 Fax: (505) 665-4939
[Personal mail to: [EMAIL PROTECTED]]
===========================================================================
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".