Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Something wrong with default Materials settings in QNX's OpenGL ES: Page 1 of 8 (8 Items)
   
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.