This week's assignment was brutal. I'm glad that I finally got everything to work. The Maya Builder part was the easiest to do and the most rewarding, and I finished that part in a couple of hours. But the rest of the assignment was exhausting and took roughly 18 hrs to finish. I'm so exhausted I can barely type..
I had major problems with parsing Binary files ( I wasted a good 12 hrs on it), even though it is super easy and I got it to work with simple structs on a separate project. It was super annoying not being able to manually read the binary files. After some trial and error and tons of crazy errors I finally got it to work by reading each s_vertex individually, verifying it and then storing it in the vertex buffer.
Changes:
- Added the MayaExporter tool which exports my human-readable mesh format.
- MeshBuilder tool now reads the human-readable mesh file and outputs a binary file.
- Added binary file parsing to Mesh class.
- Entities are now sorted based on effect and material.
- Vertex and Fragment shader are set only when effect changes.
- Texture and specular exponent are set only when the material changes.
- Added PIX events
Here's the assignment. Works in both Debug and Release mode.
Download Code
Oops, forgot to add a screenshot. Here it is..
I had major problems with parsing Binary files ( I wasted a good 12 hrs on it), even though it is super easy and I got it to work with simple structs on a separate project. It was super annoying not being able to manually read the binary files. After some trial and error and tons of crazy errors I finally got it to work by reading each s_vertex individually, verifying it and then storing it in the vertex buffer.
Changes:
- Added the MayaExporter tool which exports my human-readable mesh format.
- MeshBuilder tool now reads the human-readable mesh file and outputs a binary file.
- Added binary file parsing to Mesh class.
- Entities are now sorted based on effect and material.
- Vertex and Fragment shader are set only when effect changes.
- Texture and specular exponent are set only when the material changes.
- Added PIX events
Here's the assignment. Works in both Debug and Release mode.
Download Code
Oops, forgot to add a screenshot. Here it is..






