将模型导入OpenGL项目 [英] Importing Models Into A OpenGL Project

查看:102
本文介绍了将模型导入OpenGL项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在上OpenGL课程,我们可以选择创建模型以在3D建模应用程序(例如Maya或Blender)中的作业中使用.

I am taking an OpenGL course and we have the option to create models to use in our assignments with a 3D modeling application, like Maya or Blender.

不希望手动输入坐标,所以我很好奇应该为编写OpenGL代码和导入模型寻找哪些资源. (纹理将在以后发布).我也很担心我要导入的规模,但是现在担心这很愚蠢.

I am not looking forward to typing in coordinates manually so I was curious what resources I should be looking into for writing OpenGL code and importing models. (Textures are coming later). I am also concerned by the scale I'm importing at but maybe that's silly to worry about at this point.

感谢任何资源建议. OpenGL太多了,我在谷歌搜索所需内容时有时会不知所措.

Thanks for any resource suggestions. OpenGL has so much out there I get overwhelmed sometimes when Googling for what I need.

这就是我最终使用的. http://www.spacesimulator.net/tut4_3dsloader.html 我下载了"Windows"版本,并对其包含的内容进行了一些更改,然后启动并运行它.它不处理OBJ文件,而是处理3DS.猎豹3D也会导出到这种类型.

This is what I ended up using. http://www.spacesimulator.net/tut4_3dsloader.html I downloaded the "Windows" version and with a few path changes to the includes, got up and running. It doesn't handle OBJ files but rather 3DS. Cheetah 3D exports to this type as well.

推荐答案

Blender可以将文件保存为.obj格式,并且通过简单的Google搜索即可找到几个库,以将其加载到OpenGL中. 此处是一个.

Blender can save files in .obj format, and a simple google search turns up several libraries for loading this into OpenGL. Here is one.

这篇关于将模型导入OpenGL项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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