加载3D模型到OpenGL场景 [英] Loading 3d model into OpenGL scene
问题描述
我需要加载和3D模型保存在我的项目,使它们在OpenGL场景。我可以选择的型号类型出口。 DWG,MAX,步骤和一些其他的格式都可以。刚刚发现,OpenGL是低级的API,并且不包含任何设施,以解析3D模型文件。我在找一些库/ API翻译3D文件结构转换成OpenGL的原语(或其他原始数据)和回存放在具有特定格式的文件。
I need to load and store 3d models in my project and render them in an OpenGL scene. I can choose type of models to be exported. dwg, max, step and some other formats are available. Just found that OpenGL is low-level API and does not contain any facilities to parse 3d model files. I'm looking for some library/API to translate a 3d file structure into OpenGL primitives (or some other raw data) and store them back in a file with specified format.
例如我想加载一步文件,旋转和缩放一些对象,然后保存修改后的文件。
For example I would like to load a step file, rotate and scale some objects, and then save modified file.
推荐答案
我觉得Assimp可能是你在找什么:的http:// assimp.sourceforge.net/
I think that Assimp could be what you are looking for: http://assimp.sourceforge.net/
这篇关于加载3D模型到OpenGL场景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!