Mike Gorchak
|
Something wrong with default Materials settings in QNX's OpenGL ES
|
Mike Gorchak
03/30/2009 1:17 AM
post25504
|
Something wrong with default Materials settings in QNX's OpenGL ES
When FLAT or SMOOTH shading is enabled, there are no any shading performed if lighting is enabled via
glEnable(GL_LIGHTING). Looks like QNX's OpenGL ES implementation have wrong initial values for materials. GL ES specs
says:
GL_AMBIENT must be set to (0.2, 0.2, 0.2, 1.0).
GL DIFFUSE must be set to (0.8, 0.8, 0.8, 1.0).
GL_SPECULAR must be set to (0, 0, 0, 1).
GL EMISSION must be set to (0, 0, 0, 1).
GL SHININESS must be set to 0.
Or if no any of material parameters are set QNX's OpenGL ES implementation switches off materials or they are not used
in the lighting equation if they are not set.
|
|
|