View Full Version : maya (file loader || file format spec)
03 March 2004, 10:33 PM
I want to build an animated model in Maya for my hobby game engine. The model needs to operate in real time and will be built with OpenGL. The problem is getting the Maya model into my game. Questions:
Is there an open source C++ file loader out there for Maya files?
Are there tools to convert maya skeletal animation models to other common formats (eg HL)?
Can I obtain the spec for Maya file formats?
03 March 2004, 09:37 AM
I don't think you really want a Maya file loader. Maya files are just a collection of MEL commands that instruct Maya on how to build the scene again.
You want an exporter that will write out scenes in a suitable format for your game. iirc there is a tutorial on gamedev.net on writing a Maya library application that will read a maya scene file and spit out a whole load of game-engine-suitable stuff.
So you don't need an open-source Maya file loader. Everything you need is right there in the dev kit!
03 March 2004, 10:24 AM
Thx for the post :)
I did a google using some of your keywords and found a neat article that looks like the one you're referring to: http://www.oroboro.com/rafael/docserv.php?entry_point=maya.
I also saw a lot of links that said the Alias crew is giving tutorials on Maya exporters at this year's GDC, however I didn't see any links to actual code.
Thx for the help :)
Hmmm, you think Maya should have an XML output format instead of text? ;) What would be cool is to have a stylesheet to convert the XML to a binary format suited to your own needs. The binary format would be for fast model loading.
03 March 2004, 11:27 AM
maybe this helps to get you started
03 March 2004, 05:14 PM
I did this last year on my school project. I found an OBJ loader tutorial on GameTutorials.com (http://www.gametutorials.com/Tutorials/opengl/OpenGL_Pg4.htm) I rewrote that in a more object-oriented way. Then I used Maya's OBJ exporter to export all my models from Maya.
You can find the spesification of the OBJ format here: http://www.tnt.uni-hannover.de/js/soft/compgraph/fileformats/docs/OBJ.format.txt
Happy programming :)
03 March 2004, 09:03 PM
thx for the help dudes, you rock :bowdown:
01 January 2006, 07:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.