首页 > 未分类 > (转)OgreMax Merging Meshes
2019
11-29

(转)OgreMax Merging Meshes

There are two ways to merge meshes during export:

  1. Export the scene as a mesh file – When selecting the .mesh extension during an export all meshes in the scene will be merged into a single mesh centered around the world origin.
  2. Export the scene as a scene file, with individual meshes configured to be merged – This tutorial covers this method.

Any number of meshes of varying complexity can be merged. In this tutorial, we’ll create create two boxes:

(转)OgreMax Merging Meshes - 第1张  | 逗分享开发经验

The blue box will be considered the main mesh, and the red box will be considered the one that needs to be merged into the main mesh.

To achieve this, the red box needs to be a child of the blue box. Select the red box and link it to the blue box using the Select and Link tool in 3DS Max:

(转)OgreMax Merging Meshes - 第2张  | 逗分享开发经验

Next, select the red box, and choose the Object Settings item in the OgreMax menu. Choose Submesh as the object type:

(转)OgreMax Merging Meshes - 第3张  | 逗分享开发经验

Now, when the scene is exported, the red box will be merged into the blue box as a single mesh. This can be seen by loading the exported mesh into the OgreMax WinViewer and selecting it – there’s one bounding box that encompasses the entire object:

(转)OgreMax Merging Meshes - 第4张  | 逗分享开发经验

最后编辑:
作者:游戏创作者大陆