Exporting from 3D Studio MAX

40da7e74fdca33768b6714646853b3f5
0
TheLionKing 101 Sep 29, 2003 at 08:22

Hi,

If I create a model in 3D Studio MAX with animation and want to use it with DirectX, then how it is possible?

What about the .X Files?

To how many formats it can be exported to be used?

How do professional programmers do this?

Any suggestions … :blush:

14 Replies

Please log in or register to post a reply.

22b3033832c5c699c856814b0cf80cb1
0
bladder 101 Sep 29, 2003 at 10:31

@TheLionKing

If I create a model in 3D Studio MAX with animation and want to use it with DirectX, then how it is possible?

you can convert it into an x file and then use the d3dx mesh loading functions to use the x file. You can use teh tools that come with the directx sdk to export either a maya file to an x file or a 3d max file to an x file.

What about the .X Files? To how many formats it can be exported to be used?

You can export an x file to any format really…as long as you know how an x file is arranged and how the file your exporting it to is arranged.

How do professional programmers do this?

Most games have their own proprietary mesh format. The programmers would make a mesh in maya of 3d max and then convert it into their own formats. For example if I were using teh quake engine, then I could make my stuff in maya and convert it to an md2 (or was it md3?) file.

There are many many ways to go about it.

40da7e74fdca33768b6714646853b3f5
0
TheLionKing 101 Sep 29, 2003 at 11:14

:yes: I am hungry for more ;7

I need some more information … please :blush:

40da7e74fdca33768b6714646853b3f5
0
TheLionKing 101 Sep 30, 2003 at 00:38

Are there any articles on this topic or somehting like that?

I searched on google but cant seem to find the right one :unsure:

22b3033832c5c699c856814b0cf80cb1
0
bladder 101 Sep 30, 2003 at 11:07

on what topic? on converting from max to x? or on creating your own format? on using the D3DX library? on loading md2 files? or on using max?

Lots of topics here ;)

40da7e74fdca33768b6714646853b3f5
0
TheLionKing 101 Sep 30, 2003 at 11:24

Loading 3D Studio MAX Models and doing programming with them?

I have never done that before :blush: !

22b3033832c5c699c856814b0cf80cb1
0
bladder 101 Sep 30, 2003 at 12:09

For that you have to use the max to x converter that comes with the directx sdk extras. Then look up the ID3DXMesh interface in the sdk help files. That should get you started.

In the SDK help files you can start reading from

DirectX Graphics -> Reference -> X File Reference

to get the max exporter (its called Conv3ds.exe). You’ll have to download the DirectX SDK Extras file that should be found on the directx sdk download page. In the sdk help files check:

DirectX Graphics -> Programming Guide -> Advanced Topics -> X Files -> Converting and Exporting 3D Models to X Files.

40da7e74fdca33768b6714646853b3f5
0
TheLionKing 101 Sep 30, 2003 at 12:20

:yes: Thanks … hope this will give me a good start …

Thanks again :blush: !

590e8bdac8129bd87b188df15e62d0e5
0
CyraX 101 Oct 04, 2003 at 07:37

To make things even simpler you can use hte Game Export Interface. But a word of caution - it is still buggy.
- I have seen it quite a lot myself.
- It doesnt have good enuf documentation.
- Hardly any resources.
But still I guess its good enuf to work on. You would be surprise how fast you can write export plugins. I think its worth a try. They have many of hte apps readily available.

support.discreet.com

http://sparks.discreet.com/index.cfm?site=software

You will be having a good support for queries in http://sparks.discreet.com/webboard/wbpx.dll/\~maxsdk/

Try it.
Just a few questions:
btw do you have experience coding in Max SDK?
Is it madatory for you to export in .X file format?
You have a ready made app (source included) indownloads for sparks.discreet.com

40da7e74fdca33768b6714646853b3f5
0
TheLionKing 101 Oct 04, 2003 at 08:46

@CyraX

Just a few questions:
btw do you have experience coding in Max SDK?
Is it madatory for you to export in .X file format?
You have a ready made app (source included) indownloads for sparks.discreet.com

Here are the answers to your question :

do you have experience coding in Max SDK?

Nope …!

Is it madatory for you to export in .X file format?

It can be any format. I am just learning :blush: !

You have a ready made app (source included) indownloads for sparks.discreet.com

Nope!

Thanks for the links :yes: !

590e8bdac8129bd87b188df15e62d0e5
0
CyraX 101 Oct 04, 2003 at 19:28

If you do not have any experience in MAx SDK go for Game Export Interface. The documentation is a little broken but I guess there is an example that does the animation exporting already :D (XML)

40da7e74fdca33768b6714646853b3f5
0
TheLionKing 101 Oct 04, 2003 at 19:57

Thanks for the reference :yes: !

1d56688033a02bae5d9b390bb5fa2e1e
0
el_vitucho 101 Mar 21, 2007 at 21:22

Hi everybody,
@bladder

For that you have to use the max to x converter that comes with the directx sdk extras. Then look up the ID3DXMesh interface in the sdk help files. That should get you started.

In the SDK help files you can start reading from

DirectX Graphics -> Reference -> X File Reference

to get the max exporter (its called Conv3ds.exe). You’ll have to download the DirectX SDK Extras file that should be found on the directx sdk download page. In the sdk help files check:

DirectX Graphics -> Programming Guide -> Advanced Topics -> X Files -> Converting and Exporting 3D Models to X Files.

converting a 3dmax model into a x file doesnt lower its quality? .

I was searching about file formats, because i want to develop a render engine that load a 3dMax model and convert it into another simpler format (i was thinking quake 3 file format), and then render it, but the problem is that there arent too much information and specifications about the 3dmax format.
has anybody done something similar??? has anybody have some information??… i need help plzz :)

B91eae75cd6245bd8074bd0c3f1cc495
0
Nils_Pipenbrinck 101 Mar 21, 2007 at 23:06

I’ve exported from 3DS-Max.

it was a lot of work, but you can export *anything* that you can edit in max. You have to take the sdk, read it as deeply as possible, try out a lot of things and develop your own custom exporter plugin.

It’s a lot of work, but after you got the basics down the sky (and your time) is the limit.

I’ve used the .asc exporter as a boilerplate for my stuff btw. The source is part of the SDK.
Nils

289ecdd52edd187badee23af3f5b5214
0
jourdan 101 Mar 23, 2007 at 20:04