Compiling Maya 6.0 DTS exporter
by J. Alan Atherton · in Artist Corner · 06/16/2004 (9:34 pm) · 13 replies
I've got Maya 6.0 and Visual Studio 6.0 (strange, eh?) and I want to compile the Maya2dts project (I used the Maya5 project, since there's none for Maya6). It compiles fine, with one warning (can't remember what, didn't look like trouble). I updated the paths inside Visual studio to find the maya lib and include folders. So everything seems good. When I try to load the plugin in maya, it claims that it was built against too old an API. So I'm doing something wrong... I even did a clean build to make sure. I've never made anything with the Maya API (I've only owned Maya for a month, gimme a break! :) I'd love to compile this and get it to those who need it, or to those who are always asked for it (Danny Ngan for one). I have the tools, but lack a little knowledge on this part.
#2
So I got it compiled, though the DSQ exporter did not come through. I've heard about this before, and now am wondering if there is something I need to change to get this into the build. I understand that the exporter is still in beta, and this may simply not be a feature ready for public abuse... so that answer is fine too. I'd just like to know.
As far as where to get the version I just compiled (I haven't tested it yet... just got it to build and load in Maya), I'll temporary host it on: This place
06/17/2004 (3:54 pm)
Alright... I got it compiled. I discovered that the HEAD had the Maya4 and 5 libs and headers in their own folder, rather than having you link against those in Alias's folder. So I got it compiled, though the DSQ exporter did not come through. I've heard about this before, and now am wondering if there is something I need to change to get this into the build. I understand that the exporter is still in beta, and this may simply not be a feature ready for public abuse... so that answer is fine too. I'd just like to know.
As far as where to get the version I just compiled (I haven't tested it yet... just got it to build and load in Maya), I'll temporary host it on: This place
#3
I export a shape, and I get an assert failure message:
When I choose 'ignore' it goes through the export process, and I see the little animation "bounce" (from Danny Ngan's tutorial). I load the DTS file into the show tool or game, and no animation comes up, though everything else seems to work (collision, detail levels). If it will help, I have put the error dump, dts file, and error log into a zip file here.
Clark Fagot may have interest in looking at it. Feel free to contact me at my public email address if you want more info.
It seems to be looking for a .cfg file, but it's looking for "" ... which means it's looking for a null-string filename. Ah yes, I'm using Visual Studio 6.0.
So... use the exporter at your own risk. I just compiled it... that's all.
06/17/2004 (5:01 pm)
With a little playing around, I discovered that it is in fact buggy. Not sure if I built it wrong, but here's the deal.I export a shape, and I get an assert failure message:
When I choose 'ignore' it goes through the export process, and I see the little animation "bounce" (from Danny Ngan's tutorial). I load the DTS file into the show tool or game, and no animation comes up, though everything else seems to work (collision, detail levels). If it will help, I have put the error dump, dts file, and error log into a zip file here.Clark Fagot may have interest in looking at it. Feel free to contact me at my public email address if you want more info.
It seems to be looking for a .cfg file, but it's looking for "" ... which means it's looking for a null-string filename. Ah yes, I'm using Visual Studio 6.0.
So... use the exporter at your own risk. I just compiled it... that's all.
#4
06/20/2004 (4:50 pm)
Keep trying man, we are all behind you. Just which I could offfer some help.
#5
I have a number of changes to make and changes to check in (I haven't check in any changes since cvs went down a couple months back). I am also planning to get Maya 6 on the mac working (since it requires xcode, which I have, rather than Codewarrior, which I don't). So the binaries I compile will be for Maya 5 on windows and Maya 6 on the mac. Presumably someone else out there can get Maya 6 built on windows once I check in the latest.
BTW, the latest checked in does not include dsq's, but the exporter Ori compiled does because I gave him an up to date code dump.
06/20/2004 (5:12 pm)
Actually, Maya 6 requires VC 7, so that is likely the problem. I know that one fellow (Ori I think) compiled it for Maya 6 (using VC7) and posted the binaries in the forums.I have a number of changes to make and changes to check in (I haven't check in any changes since cvs went down a couple months back). I am also planning to get Maya 6 on the mac working (since it requires xcode, which I have, rather than Codewarrior, which I don't). So the binaries I compile will be for Maya 5 on windows and Maya 6 on the mac. Presumably someone else out there can get Maya 6 built on windows once I check in the latest.
BTW, the latest checked in does not include dsq's, but the exporter Ori compiled does because I gave him an up to date code dump.
#6
06/21/2004 (10:08 am)
Clark, please let me know once you get these up so that I can get files hosted :)
#7
06/21/2004 (11:29 pm)
I know there's a lot of people waiting for this, keep up the great work :)
#8
06/22/2004 (7:13 pm)
I have Maya 6 and VS 2003 here, just have to reinstall after a rebuild so will do that tonight and see if I can get this puppy working.
#9
06/22/2004 (11:26 pm)
Yup, lots of people waiting for this :)
#10
If there is a more up-to-date code base than the one currently in HEAD I am more than willing to try to get it going, but with this one I am flying blind really until I get some time on the weekend
06/23/2004 (1:37 am)
Well, upong trying to compile the maya2dts exporter for maya 5 from under the vc6 solutions converted into vc7.1 and with the paths changed to look at maya 6 paths I get the following errorsIf there is a more up-to-date code base than the one currently in HEAD I am more than willing to try to get it going, but with this one I am flying blind really until I get some time on the weekend
#11
I just compiled the exporter for maya6 using vc6.0, I tried to use it a bit and it seems to be working, at least it does export a very static shape with one texture.
I'm just a beginner with torque so I can't tell how much of it is actually working.
Anyway you can find it here:
http://www.geocities.com/hikingpenguin/maya2dts.zip
Cheers
Guido
07/13/2004 (3:12 am)
Hi folks,I just compiled the exporter for maya6 using vc6.0, I tried to use it a bit and it seems to be working, at least it does export a very static shape with one texture.
I'm just a beginner with torque so I can't tell how much of it is actually working.
Anyway you can find it here:
http://www.geocities.com/hikingpenguin/maya2dts.zip
Cheers
Guido
#12
Next, I had to copy the necessary lib and include files from the Maya6 directory structure. Look into what torque has in its folders (lib/mayasdk5) and create lib/mayasdk6 with the same files, but all from the maya6 sdk. The best way to find those is to do a find files inside your maya6 program folder.
Edit the project settings for the maya2dts inside VS, and go through all the options and change anything with mayasdk5 to mayasdk6 (assuming you created the folder as mentioned above).
Convert the dtsSdkPlus project and build.
Also build the dtsSdk.
Now, this is important if you don't want mega crashing. Go into the maya2dtsExporter project properties. Under C/C++ -> Code Generation -> Runtime Library, select Multi-threaded Debug. Note that's _not_ DLL... just plain.
Why would you want to build it now? Well, it appears that DSQ support has been added, among other things, I'm sure.
As long as I didn't forget anything, that's what it takes. Someone else may be able to verify that for me.
I have yet to test it with dsq and characters and such, but it does work with a simple animated shape with multiple collision meshes (whew!).
10/06/2004 (10:35 pm)
I just barely was able to get this to compile cleanly in VS 2002 (7.0). I had to convert the project file first (duh). Next, I had to copy the necessary lib and include files from the Maya6 directory structure. Look into what torque has in its folders (lib/mayasdk5) and create lib/mayasdk6 with the same files, but all from the maya6 sdk. The best way to find those is to do a find files inside your maya6 program folder.
Edit the project settings for the maya2dts inside VS, and go through all the options and change anything with mayasdk5 to mayasdk6 (assuming you created the folder as mentioned above).
Convert the dtsSdkPlus project and build.
Also build the dtsSdk.
Now, this is important if you don't want mega crashing. Go into the maya2dtsExporter project properties. Under C/C++ -> Code Generation -> Runtime Library, select Multi-threaded Debug. Note that's _not_ DLL... just plain.
Why would you want to build it now? Well, it appears that DSQ support has been added, among other things, I'm sure.
As long as I didn't forget anything, that's what it takes. Someone else may be able to verify that for me.
I have yet to test it with dsq and characters and such, but it does work with a simple animated shape with multiple collision meshes (whew!).
#13
That is good to hear. Let me know when you get a chance to test animation export. If it works, send me a build of the exporter and I'll include it in the Maya2DTS Filepack.
10/07/2004 (7:04 am)
John,That is good to hear. Let me know when you get a chance to test animation export. If it works, send me a build of the exporter and I'll include it in the Maya2DTS Filepack.
Crode
good luck on that though
-Crode