How to create a .mesh file with OGRE?

99封情书 提交于 2019-12-05 10:31:44

I think you're a bit confused: OGRE mesh file is a file that stores only geometric data of a given 3D model like positions, normals, texture coordinates, tangents, binormals, bone index, bone weights and so on. It also can store a subdivision of a single mesh in submeshes (generally based on the material), and each of them can have a reference to the proper material. In essence a mesh file only contains data on the models you would like to load on your game, nothing about the scene structure.

If you want to save (serialize) your scene, you have two choice:

  1. Write your own scene serializer.
  2. Using some library already provided by the OGRE community: for example DotScene format.

There are Ogre .mesh exporters for programs like Blender. A quick google for Ogre .mesh exporters should help you.

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