Loading an .obj with JOGL

喜你入骨 提交于 2019-11-28 12:22:39

The closest that I could find were:

Keep in mind that JOGL is a very low-level API. Some of the higher-level APIs (JMonkeyEngine, and Java3D) have sophisticated APIs built in for handling this sort of thing. With JOGL, you will be doing much of the work yourself. Obviously, there are advantages and disadvantages to each approach.

Not a tutorial, but how about some sample code? Unfortunately it uses the "Fixed Function Pipeline" rather than using the new "do everything with shaders" approach, but I like to think the code is clear.

http://darksleep.com/oObjLoader/

Also, I should note that it does use VBOs and not direct rendering or display lists, so it is fairly efficient.

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