OpenGL的3ds Max对象 [英] 3ds max object to opengl

查看:72
本文介绍了OpenGL的3ds Max对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用已制成的对象在opengl中组装场景.问题在于该对象为.max格式,并且没有外部纹理.我如何在不重新构造对象的情况下将对象导入到opengl中.我正在考虑将它们导出到3ds并使用3ds文件加载器.您能推荐一个吗,当然它只能用于3ds文件本身,而不能用于外部纹理文件.

I am trying to assemble a scene in opengl, using already made objects. The problem is that the object are in .max format and have no external textures. How could I import my objects in opengl, without retexturing them. I am thinking about exporting them to 3ds and using a 3ds file loader. Could you recommend one, and of course it has to work only with the 3ds file itself, no external texture files.

3ds max已经允许我将文件导出到obj.我有一个没有外部纹理文件的对象,但它已被完全着色为3ds文件.有什么方法可以在opengl中导入并且具有相同的颜色(对于树干,叶子)?

3ds max already allows me to export the file to obj. I have an object that has no external texture file, but it is already fully colored as a 3ds file. Is there any way to import in opengl and have the same colors, for the trunk, leaves?

推荐答案

您可能想查看 lib3ds 它将为您解析3ds二进制格式,并允许您访问所有对象属性.我认为Autodesk也有自己的工具包.

You might want to check out lib3ds which will parse the 3ds binary format for you and give you access to all of the objects properties. I think Autodesk also has their own toolkit for doing this.

这篇关于OpenGL的3ds Max对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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