Don Casteel wrote:
> If I've got a QuadArray (and I assume TriangleArray as well) with
> per-vertex-colors, how do I set up the Material so I get shading with the
> colors I've put in?
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".