开发者

3D Lighting (OpenGl)

开发者 https://www.devze.com 2023-03-02 17:00 出处:网络
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 v

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消