3D Lighting (OpenGl)

强颜欢笑 提交于 2019-12-12 17:09:24

问题


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 from 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?


回答1:


To get a good shading you should also supply normals for the triangles.



来源:https://stackoverflow.com/questions/5867442/3d-lighting-opengl

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!