The Assignment:
In Assignment 7, we added a new tool project which builds a plugin for Maya 2019. The plugin is used to export .mmesh format file in Maya.
The Results:
A Windows application that renders several simple meshes in a window where both the camera and the mesh object are movable.
Control of the game: Hold W/A/S/D to move the camera up/left/down/right. Hold Q/E to move the camera forward/backward. Hold arrow keys to move the cube up/left/down/right.
References and Dependencies for the MayaMeshExporter Project:
No reference is needed to be added to the MayaMeshExporter project since the project does not depend on any other project, and it does not call any function from the other projects.
No other project depends on the MayaMeshExporter project for the same reason.
Exported Data:
At this point, the only data gets exported is the vertex positions, vertex colors and vertex indices. I didn’t have enough time to complete the extra challenge so even though the color data is being exported but it’s not actually being used.
I may decide to export more of the vertex data later to meet future needs. But at this point, it is good enough to keep exported files simple.
Debugging Exporter Tools:
Load a Model with too Many Vertices:
There is a maximum vertex buffer size for meshes. In x64, the buffer size is limited within 0xffffffff. In x86, the buffer size is limited within 0x7fffffff. If a model contains too many vertices which exceed the max buffer size, it will cause an assertion failure during a mesh object’s initialization, and then the process will be aborted.