Solved

interfacing 3ds max with directx

Posted on 2003-10-27
7
16,123 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
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

810 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