Solved

interfacing 3ds max with directx

Posted on 2003-10-27
7
16,112 Views
Last Modified: 2013-12-26
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
0
Comment
Question by:n_srinivasaraju
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 1

Expert Comment

by:Peonic
ID: 9646404
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.
0
 
LVL 1

Accepted Solution

by:
Peonic earned 250 total points
ID: 9646423
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.
0
 

Expert Comment

by:catchmanpreet
ID: 12718659
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...
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Expert Comment

by:sunilsi
ID: 13222659
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 http://members.fortunecity.com/shadowgl/Pages/index.html which show how to open .mdl files this is with sourcecode.
0
 

Expert Comment

by:chanedward
ID: 13255390
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?
0
 

Expert Comment

by:sunilsi
ID: 13598387
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 ,
0
 

Expert Comment

by:catchmanpreet
ID: 13624312
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
chao
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

What is RenderMan: RenderMan is a not any particular piece of software. RenderMan is an industry standard, defining set of rules that any rendering software should use, to be RenderMan-compliant. Pixar's RenderMan is a flagship implementation of …
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now