Loading Maya or Softimage object ?

Hi guys !
anyone know where I could get the file specification for a Maya model or softimage model or where I could get good converters for them ?
or any source code that reads that kind of format !
Well You know what Im looking for…I need to know more about those two format !

thanks a lot for the help ! I tried a lot to find things about it. but I ran out of sources !


Evil-Dog
Sleep is a waste of time

Dunno about lightwave, but with Maya you get a few options.

the first is the obj file format (documented on www.wotsit.org)) which is an ascii ile that supports polygonal models only. The maya Ascii files use 10 mel commands to reconstruct the scene,

file
requires
createNode
setAttr
addAttr
parent
connectAttr
disconnectAttr
select
currentUnit

the file format docs are in the Maya docs here:
C:\AW\Maya4.0\docs\en_US\html\FileFormats\FileFormats.htm

generally this isn’t a nice file format cos it uses a lot of scripting stuff, and you still have to know the Maya node types and all arguments for them. For example if you export a polycube, it won’t give you any vertex positions, it’ll give you the creation node that was used to make the cube and the arguments used to create it. If you then delete all history on the cube, it will then give you the actual geometry data.

The maya binary file is very similar, but refers to nodes using a 32bit ID value. Bear in mind that it will also hold things like camera’s, and user options, ui settings etc. You can reverse engineer the format but it takes a LONG time, and there is no documentation provided by Alias.

The only other format is the rtg file, but I’d avaoid it like the plague because it’s very limited and doesn’t actually do what it claims.

The best option is to write our own file translator in the devkit, the best place to start is to look at the objExport source code provided in the devkit :

C:\AW\Maya4.0\devkit\plug-ins\objExport.cpp

related mel option script that define the ui options :

C:\AW\Maya4.0\devkit\plug-ins\objExportOptions.mel

the other useful exmaple for getting data (if you want to add skinning to the format quite easily) is the skin Weight export :

smooth skinning:

C:\AW\Maya4.0\devkit\plug-ins\exportSkinClusterDataCmd.cpp

rigid skinning:

C:\AW\Maya4.0\devkit\plug-ins\exportJointClusterDataCmd.cpp

hope thats of some help.

For a simple mesh exporter, you can use the RTG file format of Maya (a specific game exporting plug-in). It is a very easy to use file format.

Gaby

Thanks guys !
but it’s not for games it’s for cinematic developement.
So I need the best and most complete format with maya. I’ll go with the devkit !
thanks a lot !


Evil-Dog
Sleep is a waste of time

Originally posted by gaby:
[b]For a simple mesh exporter, you can use the RTG file format of Maya (a specific game exporting plug-in). It is a very easy to use file format.

Gaby[/b]

Never ever use the RTG file format - it is EVIL !!! RTG == Hassle ! You’ll note that aw don’t support it (or the MDtLib) anymore. . .