Hello.
Thank you for the "hint".
    I say this a possible bug because the Sun�s j3d tutorial says that when vertex color is specified the material color is not used.
    When you say that without specifying a material the vertex color is mapped correctly, that is true, but that only happens because (and this is according to the tutorial) without specifying a material j3d doesn�t consider the object as lit (under the influence of the light).
   Thank you very much.
----- Original Message -----
Sent: Wednesday, March 22, 2000 9:30 PM
Subject: Re: [JAVA3D] Possible bug

Bruno Sousa Caiado wrote:
Hello.    I have an object which is built using the IndexedQuadArray class. I am specifying per-verxtex color for this object using the "setColors" method.    The problem ocurred when i added an ambient light to the scene:    The object was rendered with the Material default color and not with the per-vertex color that i had specified.     Is this a bug or am i doing something wrong? Can someone help me with this problem?    Thank you very much.     Bruno Caiado  [EMAIL PROTECTED]
This probably is not a bug, but due to the lighting you have set up.
In my experience, vertex colors need direct light, i.e. DirectionalLight to display if the geometry's Appearance had a material.  If you do not use materials (and that means no shading) then the vertex colors will display fine, but unshaded.
-- 
__________________________________________________________

Shawn Kendall               Full Sail Real World Education
Course Director             3300 University BLVD
Real Time 3D for Gaming     Winter Park FL 32792
[EMAIL PROTECTED]       http://www.fullsail.com
__________________________________________________________
 

Reply via email to