3D Lighting (OpenGl)
I already asked this question but I didn't get my answer. Btw I found some thing new.I want to show a 3D model f开发者_如何转开发rom a wrl file exported by solid works.The file contains triangle's vertices and I am drawing them with glBegin(GL_TRIANGLES), But it doesn't looks nice and doesn't seems quite 3D! I tried gluSphere to draw an sphere in that scene with same lighting setting and it seems very nice and 3D!!!!
Is there some thing about Glu ? Should I use Glu for draw triangles?To get a good shading you should also supply normals for the triangles.
精彩评论