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