Shantanu Pandey
  • Projects
    • Hard Light Vector
    • Memory Manager
    • Samurai Crusader
    • Dyslexia VR
    • Geriatric Depression Suite
  • Prototypes
    • Game Mechanics
    • Diana's Inferno
    • MakeUp & BreakUp
    • 10Pest
    • Ninja Pinball
  • Blogs
    • Sic Parvis Magna
    • Game Engineering - Week 1
    • Game Engineering - Week 2
    • Game Engineering - Week 3
    • Game Engineering - Week 4
    • Game Engineering - Week 5
    • Game Engineering - Week 6
    • Game Engineering - Week 7
    • Game Engineering - Week 8
    • Game Engineering - Week 9
    • Engine Feature - Audio Subsystem
    • Final Project - GameEngineering III
    • AI Movement Algorithms
    • Pathfinding Algortihms
    • Decision Makiing
  • About

Week 7 - 10/03/2018

10/18/2018

1 Comment

 
This week assignment was about the Maya mesh exporter. We created a plugin which can be used to export human readable files of different meshes directly from Maya.
​
Maya Mesh Exporter
Maya mesh exporter is used to import the data from Maya. With respect to our game application, it is not dependent on anything as it’s a Maya plugin. I didn’t add any dependency or references.
To debug this, we can attach the visual studio debugger to Maya process, and it will hit the break-point as shown:
Picture
​Human Readable Format
Since we are exporting from Maya this time, there is a bunch of information available to us which we can import to our human readable file. But as in the game, I am just using the position, I decided to only import the positions from Maya to avoid complexity.
Picture
Information available to us in Maya, but I am not using this for the sake of complexity
Picture
Actual human readable format I am using in my game
Too many Vertices
While reading the index data, I am using uint16_t variable. The limit of this variable is 65535. So, any number of indices more than this will crash the application. I realized this as I was using uint8_t variable before. I have added a condition while reading this data that if the indices crosses this number, I will log an error and print in debugger that mesh data has exceeded. Also, the application will not be crashed, but will show a default line mesh.
Picture
Error mesh displayed in the game
Game Screenshot
Playable EXE Download
Controls: 
         
W S A D to move game object (Cone will move in the updated exe)
        Up Down Left Right to move camera - Plane can be seen with better perspective by moving the camera.
        Ctrl to switch the mesh of game object.
        Space to hide one object (plane).
Picture
Game Screenshot with Two Meshes and a Plane, CTRL to switch from cone
Picture
Same Game Objects moved through the plane.
Picture
Update: 3 Meshes shown together
1 Comment
Cute Girl in a Van link
6/26/2023 12:33:42

Thanks for thhis blog post

Reply



Leave a Reply.

    Author

    Write something about yourself. No need to be fancy, just an overview.

    Archives

    October 2018

    Categories

    All

    RSS Feed

FOR ANY FURTHER DETAILS


Telephone

801-859-1131

Email

Resume
File Size: 227 kb
File Type: pdf
Download File

Visit Hard Light Vector
[email protected]
Git Hub
  • Projects
    • Hard Light Vector
    • Memory Manager
    • Samurai Crusader
    • Dyslexia VR
    • Geriatric Depression Suite
  • Prototypes
    • Game Mechanics
    • Diana's Inferno
    • MakeUp & BreakUp
    • 10Pest
    • Ninja Pinball
  • Blogs
    • Sic Parvis Magna
    • Game Engineering - Week 1
    • Game Engineering - Week 2
    • Game Engineering - Week 3
    • Game Engineering - Week 4
    • Game Engineering - Week 5
    • Game Engineering - Week 6
    • Game Engineering - Week 7
    • Game Engineering - Week 8
    • Game Engineering - Week 9
    • Engine Feature - Audio Subsystem
    • Final Project - GameEngineering III
    • AI Movement Algorithms
    • Pathfinding Algortihms
    • Decision Makiing
  • About