需要有关使用SDL lib的opengl的帮助... [英] need help on opengl with SDL lib...
本文介绍了需要有关使用SDL lib的opengl的帮助...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我执行代码( http://pastebin.com/6Q7zS7tC [
i execute code (http://pastebin.com/6Q7zS7tC[^] created for import .obj 3d model file. but in my execution, (output) object is very zoomed in. how can i display the object little bit smaller?? thanks.
推荐答案
没有看到实际的顶点数据,我只建议你:
将传递给gluPerspective的第一个值更改.
这是以度为单位的视场.目前,这是非常狭窄的45°.指的是视场 [ ^ ]可以看到典型的人类垂直FOV约为100°.
Without seeing actual vertex data, I an only suggest that you:
Change the first value that you pass to gluPerspective.
This is the Field Of View in degrees. At the moment, it''s a very narrow 45°. Referring to Field Of View[^] one can see that the typical human vertical FOV is about 100°.
这篇关于需要有关使用SDL lib的opengl的帮助...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文