This message is really from Kevin Rushforth <[EMAIL PROTECTED]> who
can't post right now due to a mailer error:
One point of clarification. When lighting is enabled, per-vertex
colors in Java 3D override the diffuse color in the Material only. The
ambient color is left alone. Sorry for any confusion that this may
have caused (I gave Doug some bad information).
--
Kevin Rushforth
Java 3D Team
Sun Microsystems
[EMAIL PROTECTED]
>Date: Tue, 30 Jan 2001 11:59:40 -0800
>From: Doug Gehringer <[EMAIL PROTECTED]>
>Subject: Re: [JAVA3D] HELP! Shading Geometry with color by
> vertex?
>To: [EMAIL PROTECTED]
>
>> 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".
>
------------- End Forwarded Message -------------
===========================================================================
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".