• Advertisement

Archived

This topic is now archived and is closed to further replies.

Can import models into direct3d immediate mode?

This topic is 6658 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

When you say possible, you can load .x files, but you have to do it yourself. IM and D3DX don't support any 3d file formats. There is a demo in the DX7 SDK specifically about loading .x files though, so have a look at that first.

Share this post


Link to post
Share on other sites
Advertisement
What I do is when I create my Direct3D IM object I create an RM object too. Now when you want to load an .x file create a Direct3dRMMeshBuilder and use its load function. Then you can use the meshbuilders functions to get the vertices or any other information you need.

Share this post


Link to post
Share on other sites
Thanks for all your replies to my last question. I am going to jump into direct3d
immediate mode and leave RM alone. One thing
though, Direct3dRM allows you to import .x files and use animation sets with just a few
method calls. Since RM is built on top of IM,
it must be possible to import x files with IM......right????

Share this post


Link to post
Share on other sites
Well,

The simpliest would be to use:

D3DFILE

That handles the load of .x files.
Look it up, its in the .h file under
samples\d3dim\include I think.

Share this post


Link to post
Share on other sites

  • Advertisement