> From: Axel Groß <[EMAIL PROTECTED]>

>
> -------------------
> > I guess I've had this trouble for a long time, it's just now getting
> > annoying enough to force me to ask about it.
> >
>
>  :) sounds familiar
>
> > When I create IndexedGeometryArray's with per-vertex coloring and
> try to use
> > a Material in the Appearance node, the lighting/coloring gets all
> screwed
> > up. The coloring is fine if I don't use a Material, but there is no
> shading.
> > ---snip,snip---
> >
> as far as I remember Java3D doesn't use the given Colors if you use a
> material and have some Lights on.

Not exactly.  Here is how it works:  if you specify per-vertex color with your
geometry, Java3D will use that coloring over the colors specified in the
Appearance.  Specifically, if lighting is disabled, the per-vertex color will
override the color specified by the ColoringAttributes.  If lighting is enabled,
the per-vertex color will override the ambient and diffuse colors in the
Material.

If the effect you are seeing isn't what you expect, you may have found a bug.
As an experiment, try setting your vertex colors to the same color you specify
in your Material.  The result should be the same picture as without vertex
colors.

If you continue to see unexpected colors, isolate your problem into a small test
case and send it in as a bug.

Doug Gehringer
Sun Microsystems

===========================================================================
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