Implementing Maya

Member
Posts: 185
Joined: 2005.02
Post: #1
how do you use Maya for the graphics for a game?
do you use openGL to implement it through the graphics engine?
i was just wondering, i have nowhere near enough programing knowledge to do it Smile
Quote this message in a reply
Moderator
Posts: 613
Joined: 2004.09
Post: #2
In the simpest Terms:
1) create model in maya
2) use an exporter to export the models as data file
3) load the data file into data list inside your program
4) execute data list

* Yes Maya models would be rendered through OpenGL Commands

Kyle Richter
DragonForged.com
Twitter: @kylerichter
Quote this message in a reply
Sage
Posts: 1,066
Joined: 2004.07
Post: #3
Maya has an exporter to a file with extension .obj which is the easiest file for 3d to parse into code (that I know of). The hard part is creating a class that represents the faces and vertices and such. I'll show you my code for loading objects. It's not the best, but email me and I'll send it to you.
Quote this message in a reply
Moderator
Posts: 704
Joined: 2002.04
Post: #4
@Nick: could you email a copy of that source my way? sealfin@sealfin.com if you're agreeable...

I'm just wondering how everybody else has coded their loaders (and the response is probably: "a lot better than yours" Rasp)

(Nah, I couldn't be bothered to obfuscate my email address, and I doubt doing so would make any difference to the volume of spam I'm receiving at the moment...)

Mark Bishop
--
Student and freelance OS X & iOS developer
Quote this message in a reply
Moderator
Posts: 613
Joined: 2004.09
Post: #5
one word. BG3D. Hey it works, its free, its there, why not?

Kyle Richter
DragonForged.com
Twitter: @kylerichter
Quote this message in a reply
Moderator
Posts: 508
Joined: 2002.09
Post: #6
What on earth is BG3D? Excuse my ignorance, I have been quite "out" of the 3D (programming) scene.

"When you dream, there are no rules..."
Quote this message in a reply
Moderator
Posts: 613
Joined: 2004.09
Post: #7
Lol, dont feel bad its not very common but it does everything i need it to do. It is a custom class written by Brain Greenstone (Hence BG3D). He is lead programmer for http://www.pangeasoft.net/ Im sure if you email him he can give you the importers and such.

Kyle Richter
DragonForged.com
Twitter: @kylerichter
Quote this message in a reply
Member
Posts: 185
Joined: 2005.02
Post: #8
thanks for quenching my curiosity!
Quote this message in a reply
Moderator
Posts: 3,579
Joined: 2003.06
Post: #9
kodex Wrote:It is a custom class written by Brain Greenstone (Hence BG3D).
It is not a `class'. He doesn't write anything using OOP, except parts of the Maya export plugin since Maya API requires C++. BG3D is a meta file format that he came up with to replace 3DMF for his own needs. As it is described in his book and implemented in his example code, it only handles the materials as faces, vertices, UV's, vertex colors, and normals. ***No skeletal information is included.*** It is virtually nothing more than .obj. The export code and the import code for this is given on the CD that comes with the book. It's a little quirky on the Maya side but it works (the quirkiness is Maya's fault as far as I can figure). You're better off using it to learn the Maya API for your own needs and go from there.

For learning about how Maya is used for game graphics and how to start learning to do it yourself, there is a book called The Game Artist's Guide to Maya which is a great book on the subject IMHO. It is written for artists, not programmers, so it won't show you how to get those graphics out of Maya and into your own program. Brian Greenstone's book is all there is to fill the gap on that end on the Mac. Even for experienced programmers it can be a real challenge to use Maya for game graphics above anything but a .obj file.
Quote this message in a reply
5thPeriodProductions
Unregistered
 
Post: #10
I can't remember the URL, but I found a OBJ to OpenGL converter (I believe it was a command-line utility). It takes the OBJ code and, well, turns it into OpenGL files (.h only?).
Quote this message in a reply
Post Reply