如何使用OpenGL(GLUT)加载md2文件 [英] How to load md2 file with OpenGL(GLUT)

查看:174
本文介绍了如何使用OpenGL(GLUT)加载md2文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Blender中创建了一个带有纹理且没有动画的实心球.我已将其导出为md2文件格式.现在,我想使用c ++将其加载到OpenGL中.我是编程新手,我了解了md2文件格式,但无法编写代码以加载该代码,因此请向我提供代码或我将在其中获得代码的任何网站链接.谢谢您

I have created a solid sphere with texture and without animation in Blender.I have exported it in md2 file format.Now I want to load it with OpenGL using c++.Iam new in programming,I have learned about md2 file formate but can''t write code to load it so please provide me code or any site link where I will get code. Thanks you

推荐答案

好,您可以查看
Well you can check this out http://content.gpwiki.org/index.php/OpenGL:Tutorials:Tutorial_Framework:MD2Animation[^]. Might I suggest that you use a graphics engine (at least until you get better at programming) some engines I know of are Irrlicht (fairly easy to get started with) and Ogre (more difficult to get started with but a better engine IMO). There are more engines out there as well both free/open source and commercial just google for c++ graphics engine, game engine, or similar.


这篇关于如何使用OpenGL(GLUT)加载md2文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆