Re: Can't Get Lighting to Work in Ardor3D
Posted by
gouessej on
Mar 21, 2014; 12:24pm
URL: https://forum.jogamp.org/Can-t-Get-Lighting-to-Work-in-Ardor3D-tp4031971p4032020.html
There is nothing magic. If you just want to enable lights but keep exactly the same colors, use GL_COLOR_MATERIAL as you did above. If you want to enable some lights but keep the colors without using GL_COLOR_MATERIAL, just use a single ambient light. If the color buffer wasn't filled, I don't really know which color would be picked to fill your polygons but you have to understand that the resulting color you see is a combination of the color of your object and the influences of all lights. Why not drawing a red triangle in Blender, adding some lights and tweaking their parameters until you get the "expected" behavior?