interfacing 3ds max with directx

n_srinivasaraju used Ask the Experts™
hello i am new to game programming.
ofcource i am okay with directx API  and windows API.
i would like to design a  city (buildings,roads,parks,
trees,vehicles etc, ) and animate my game charecters
along with them.i would like to create them with 3ds max (the entire scene) and later  load  them  using direct x .could somebody tell me how to attach a 3d scene built in 3ds max  with  directx.also what is 3ds max script?
and is it possible to control the 3dmax script using
directx and windows api.

thank you very much

 srinivasa raju
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

There's two ways you could go about this really, firstly 3d studio can Export directly to ".x" files which direct X can load (there's lots of direct3d tutorials in the sdk regarding this). Secondly would be to parse the 3d studio files yourself - a quick search on google will no doubt uncover lots of 3d studio file loader C++ apps/source code.
Oh and max script is a scripting language within 3d studio which allows coders to make their own plugins, for example, you could make a max script which exports 3d models directly into the quake model format, or one which generates texture co-ordinates on meshes - basically it's just there to save time on behalf of the artist, it's no use for what you're doing.
The XSkinExp.dle plugin for Max 5.0 or later is useful for this purpose. Note that this plugin exports the models as the are oriented in MAX. The coordinate system is not rotated to correspond with that of Direct3D. check it up...
Angular Fundamentals

Learn the fundamentals of Angular 2, a JavaScript framework for developing dynamic single page applications.

u can also do by converting u  r 3d max models into .3ds or mdl .there is lot of information aviailiable on net how to open this format like this one which show how to open .mdl files this is with sourcecode.
How come the link on the"sdk" direct us to something that has nothing to do with the question. Is it some kind of trick to get advertising money?

we can export the 3dmax models into x file and use the directx APIs to load the mode. i m also facing this problem to export inio x files there are many plugins aviliable on net ,
I made a plugin for Max that exports the game data from max to the format my engine likes it. Camera , lights, sounds and model hierarchy can be exported. But believe me, max sdk is so poorly documented and also the OOP design of max... my god. But still one can get through by using the IGameExport API of MAX after experimenting a bit with it.

At last the physique.h of character studio is very difficult to use with IGame so one has to again go for max sdk. finally, x file format itself is a little bit complication.

so the essence is start making your x files using hand written codes first. When u understand how it can be extended for ur use, go for implementing ur own plugin for exporting the models, lights, cutscenes, etc.

otherwise if only models are to be exported the use XSkinexp.dle or conv3ds utilities.
enjoy gaming

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial