Board index » cppbuilder » 3DSMAX object.

3DSMAX object.


2004-07-11 03:00:11 AM
cppbuilder56
Hello everybody!
Does anybody have an idea on how to load a 3D object created using
3dsmax(version 6.0) in a
Direct3D application, using C++Builder?
Bogdan.
 
 

Re:3DSMAX object.

"Bogdan" < XXXX@XXXXX.COM >wrote in message
Quote
Hello everybody!

Does anybody have an idea on how to load a 3D object created using
3dsmax(version 6.0) in a
Direct3D application, using C++Builder?

Bogdan.

Easiest way is to export your max object to an .X file.
I use the Panda exporter plugin:
www.andytather.co.uk/Panda/directxmax.htm
Download the plugin in to 3dsmax' plugin folder.
In 3dsmax with your objects .max file open choose
File>Export.
The export file dialog opens. In the "Save as type" combo, scroll down and
select "Panda DirectX(*.X)".
Give the file a name and select a folder to save to. You will probably want
to save it to your BCB project directory.
Click the "Save" button and the Panda exporter options dialog opens.
Select your export options and click "Ok".
In your prog (assuming DirectX 9) you can load a mesh (ID3DXMesh) from the
.X file using the D3DXLoadMeshFromX function.
Alternatively you can put the .X file in to your progs resources and use the
D3DXLoadMeshFromXResource function to load the mesh.
HTH,
Dave