.x file exporter for Maya
.x file exporter for Maya
Hello
A while ago I searched for a free .x file exporter for Maya and did only find the one included in the DirectX SDK which is terrible from Maya 6+. So I wrote an own MEL script exporter with a friend. It is developed specifically for the Irrlicht engine (does only export data that Irrlicht can read).
Here it is: http://www.markusbergqvist.se/XExporter ... r.v1.2.zip
I did notice that Irrlicht comes with no exporter for maya so, niko, if you want to include this exporter in the Irrlicht package, you are welcome to do so.
All opinions/bug reports/suggestions are very welcome!
Cheers
A while ago I searched for a free .x file exporter for Maya and did only find the one included in the DirectX SDK which is terrible from Maya 6+. So I wrote an own MEL script exporter with a friend. It is developed specifically for the Irrlicht engine (does only export data that Irrlicht can read).
Here it is: http://www.markusbergqvist.se/XExporter ... r.v1.2.zip
I did notice that Irrlicht comes with no exporter for maya so, niko, if you want to include this exporter in the Irrlicht package, you are welcome to do so.
All opinions/bug reports/suggestions are very welcome!
Cheers
Thanks!
Not a maya user, but I collect everything x related.
Well, I collect everything.
Not a maya user, but I collect everything x related.
Well, I collect everything.
Finally making games again!
http://www.konekogames.com
http://www.konekogames.com
XExporter v1.3
Did some updates to the exporter, some small fixes and I added support for quaternion keyframes.
http://www.markusbergqvist.se/XExporter ... r.v1.3.zip
Cheers
Did some updates to the exporter, some small fixes and I added support for quaternion keyframes.
http://www.markusbergqvist.se/XExporter ... r.v1.3.zip
Cheers
first, it exports everything in the scene like the four cameras (which will not be visible in irrlicht) and second, it exports keys for every frame in the timeline and for every object regardless if they have any keyframes set by the user and it also exports data that Irrlicht can not read (decl data and vertex duplication list..). It works, yes, but as an game programmer I always want to optimize everything and just knowing there is alot of useless data in the .x file makes me sceptical and you can not choose to not export this data.Browndog wrote:I'm currently using the DX SDK exporter and its seems fine what exactly is wrong with it?
I'am trying to develop a dynamic loading rutine and therefor it is very important to have as less data to read from the harddrive as possible for me but for your application, especially if it does not load very many or large files, the DX SDK exporter may work just fine.
I was about to make some benchmarks on the two exporters but I was too lazy to download and install the latest DX SDK hopefully someone else want to do that.
Cheers
Doesn't work for me. I always get this error message:
"Error: Collection not found, or no current collection."
It's a 508 triangle character with one texture map and maximun 2 vert weights. I'm using Maya 4.5.
Also, the window doesn't clean up after itself if it fails to start:
"Object's name is not unique: XExporterGUI"
"Error: Collection not found, or no current collection."
It's a 508 triangle character with one texture map and maximun 2 vert weights. I'm using Maya 4.5.
Also, the window doesn't clean up after itself if it fails to start:
"Object's name is not unique: XExporterGUI"
Thanks for the bug report!
I will look at your problem, for now I think it's maybe due to the version of Maya you use, I have only tested the exporter on Maya 7.0. The window problem is known but I dont know how to catch errors in MEL so I dont think I will solve the problem. Well, if the exporter dont work one would not use it and there is no meaning having advanced error checking =). More common errors are of course handled.
btw, do you have any idea on which command that reports the error?
Cheers
I will look at your problem, for now I think it's maybe due to the version of Maya you use, I have only tested the exporter on Maya 7.0. The window problem is known but I dont know how to catch errors in MEL so I dont think I will solve the problem. Well, if the exporter dont work one would not use it and there is no meaning having advanced error checking =). More common errors are of course handled.
btw, do you have any idea on which command that reports the error?
Cheers
Guest: did some research and found a possible fix for your problem. I would very much appriciate if you could test it on Maya 4.5.
Here is the file: http://www.markusbergqvist.se/XExporter ... aya4.5.mel
and this file you must drag and drop into Maya because the filename does not match the main function in the script.
Thanks
Here is the file: http://www.markusbergqvist.se/XExporter ... aya4.5.mel
and this file you must drag and drop into Maya because the filename does not match the main function in the script.
Thanks
It's great that you're looking into making it run on older versions of Maya! Much appreciated! The exporter runs now. Here are a few test cases..same model as before, and tested in the DX8.1 mesh viewer.
Mesh - OK; opens in viewer
Mesh+Material - Doesn't recognize lambert and blinn; opens in viewer without texture
Skeleton - OK; opens in viewer. Heirarchy is intact.
Mesh+Skeleton - Export completes; does not open in viewer
Mesh+Skeleton+Skin - Exporter hangs on "Writing skin data..."
Progress bar skips ahead to full and gives the error: Cannot find procedure "firstParentOf".
Export does not complete.
Mesh - OK; opens in viewer
Mesh+Material - Doesn't recognize lambert and blinn; opens in viewer without texture
Skeleton - OK; opens in viewer. Heirarchy is intact.
Mesh+Skeleton - Export completes; does not open in viewer
Mesh+Skeleton+Skin - Exporter hangs on "Writing skin data..."
Progress bar skips ahead to full and gives the error: Cannot find procedure "firstParentOf".
Export does not complete.
-
- Posts: 5
- Joined: Mon Apr 10, 2006 9:48 pm
snowfly: Thanks for reporting those tests. I know there is problem with the DX viewer but I programmed the exporter mainly for my Irrlicht projects so I did not put much effort in making it work with the DX viewer. But the "firstParentOf" problem is interesting thou, I have not found any documentation of which MEL commands is avalible in which Maya versions and therefor I dont know compability of the exporter. But if I replace the firstParentOf command I am almost sure that the exporter at least works down to Maya 4.5, thanks to your testing.
Cheers
Cheers