Jon Watte

I have made a preliminary version of the kW X-port plug-in available for Max 9. The full Max 9 download from Autodesk is almost 3 GB and is still going, so I haven't been able to test it yet -- it's just re-compiled with their new SDK. I give it a good 90% chance of working fine, though :-)

The version for Max 8 has been tested, of course, and is still available. It might work as far back as Max 6, because they are apparently version compatible from 6 through 8, but I have only tested on 8.

kW has some features that might help with XNA usage, such as support for the Max Direct3D9 material with shader parameters; support for mirroring along Z and mirroring the V coordinate; support for properly exported skinned meshes even if there is an object node offset; support for multiple texture coordinate channels; ability to rename textures with path and file type; ability to declare subsets of the timeline as separately named animations; ability to scale the output data to an arbitrary scale; saving all the exporter settings within the Max file for future exports; and more! Neither Panda nor the SDK exporters do all of these features, although Panda has a pretty good track record in general.

Get it at http://www.mindcontrol.org/~hplus/graphics/kwxport.html

Let me know if it works for you, or if it doesn't!


Re: XNA Game Studio Express kW X-port for 3ds Max 9 (X file exporter with XNA support)

schmod54

Thanks a lot Jon. It does a great job converting geometry, but I am still having a problem with materials, though maybe I'm doing something wrong.

I go into 3DS max, create a torus, and add a simple green material to it with Blinn shading. I export it with kW with export Normals, Colors, Materials, and Shader all selected. When I import and display the model in my XNA game, there's no shading... it's just solid green. What do I need to do to get the shading to work right

Thanks again for helping! :)




Re: XNA Game Studio Express kW X-port for 3ds Max 9 (X file exporter with XNA support)

Jon Watte

I'm not sure materials will work right unless you use a texture. Try using a Standard material with a green texture. Or try using a Direct3D9 Shader material which gives it the color you want. Both of those paths have been tested, and should work fine.

To be specific: the exporter does export the material data (you can open up a text .X file to verify this), but not every step in a typical engine (including XNA) will include the material properties like solid color. It's pretty much assumed that everything will be textured.






Re: XNA Game Studio Express kW X-port for 3ds Max 9 (X file exporter with XNA support)

Jafinto

It doesn't seem to work with 3ds Max 9 64-bit and 32-bit on XP x64. 64-bit doesn't recognize the plug-in, giving an error saying that

"DLL <F:\Program Files\Autodesk\3ds Max 9\PlugIns\kwxport.dle> failed to initialize. Error code: 193 - %1 is not a valid Win32 application."

3ds Max 32-bit initializes the plugin, but gives an error while trying to export a file, saying it crashed during export. The problem still occurs after restarting 3ds Max. I don't where I should put the minidump, I could e-mail or upload it, if it's necessary.




Re: XNA Game Studio Express kW X-port for 3ds Max 9 (X file exporter with XNA support)

Jon Watte

I don't think it's expected to work with 64-bit Max, given that I'm not running 64-bit Windows and can't test for it, even if I could build it.

Please contact me on www.gamedev.net (my handle is hplus0603) and I can get the repro case from you; that'd be great!






Re: XNA Game Studio Express kW X-port for 3ds Max 9 (X file exporter with XNA support)

Catalin Zima

I can't get your exporter to put informations about the .fx files used in the generated .x file
the Export Shaders option in checked, but still nothing




Re: XNA Game Studio Express kW X-port for 3ds Max 9 (X file exporter with XNA support)

Jon Watte

If you are using the Direct3D9 material, then the FX file used by that material will be stored in the file (along with the parameters). I use this frequently, using 3dsmax 8 sp3, so I know it works :-) You can open up the .x file in a text editor (if you don't export in binary mode) and do a Find for your effect filename to verify that it's there.

If you're using max 9, I still haven't gotten to testing the exporter with the upgrade, so you'll probably have to wait until the week-end.






Re: XNA Game Studio Express kW X-port for 3ds Max 9 (X file exporter with XNA support)

Catalin Zima

Indeed, I forgot to mention that I a using Max 9.

I'll wait a couple of days.





Re: XNA Game Studio Express kW X-port for 3ds Max 9 (X file exporter with XNA support)

gonzo883

Hello, perhaps you can help me with a problem I have using your kW X-port for 3ds Max 8 :

I've tried to export a static scene, but I can't open the exported .x file with the x file viewer, I only get the error message ' failed to open ....'

I think I've tried all possible settings, but without success.

You can find the files here :

http://www.mr-moto.net/pferd02.max and http://www.mr-moto.net/pferd02.x

Please can someone tell me what I'm wrong with this

Sincerely,

Oliver Petri.





Re: XNA Game Studio Express kW X-port for 3ds Max 9 (X file exporter with XNA support)

Jon Watte

I would look at the files, but Firefox claims that mr-moto re-directs the files in an infinite loop, so it cannot be downloaded.





Re: XNA Game Studio Express kW X-port for 3ds Max 9 (X file exporter with XNA support)

gonzo883

Hello.

I've upped the files again in one archive ,you will find it here : http://www.mr-moto.net/max_and_x_file.rar

I hope you can help me with this problem.

Sincerely, Oliver Petri





Re: XNA Game Studio Express kW X-port for 3ds Max 9 (X file exporter with XNA support)

RoryD

Hi,

I thought this exporter had the ability to change the axes so that Y is up I don't see an option for that. Of course I can circumvent this by rotating the model, but I'd really like to have the model exported with Y up.

Cheers,

Rory.




Re: XNA Game Studio Express kW X-port for 3ds Max 9 (X file exporter with XNA support)

draxelbangert

Hi Jon Watte

1. the installer for 3dsmax9 worked with a fault on XP SP2 with 3dsmax9 installed. The kxexport.dle file was correctly installed under Plugins, but it seems not to be found.
Error Code 126.

2. where can I get the complete 3dsmax 9 SDK for download

3. could this fault depend on your advice:

  • Don't replace the default IGame.dll (instead, use special hacked version that is called iga22.dll). This will allow old exporters (like Panda or JSR) to keep working with the old IGame DLL.
  • Fix the bug where export selected exported an empty scene. Believe it or not, this was yet another bug in the IGame DLL.
4. for I did not do anything of point 3.

With the best regards
Yours sincerely

Axel Bangert
Wolfstrasse 2
52134 Herzogenrath
Germany





Re: XNA Game Studio Express kW X-port for 3ds Max 9 (X file exporter with XNA support)

draxelbangert

Hi Jon

I forgot... I use the 32 bit version of 3dsMax9

salve imperator






Re: XNA Game Studio Express kW X-port for 3ds Max 9 (X file exporter with XNA support)

Jon Watte

If you download and install the latest DirectX runtime from Microsoft, the error will go away. It turns out the kW X-porter uses a version of D3DX that's not included in the installer for kW. I'll fix this in the next installer; meanwhile, installing the latest DirectX from Microsoft will fix it.

Hope you get it to work!