🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Can import models into direct3d immediate mode?

Started by
2 comments, last by meganova75 24 years, 8 months ago
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.
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.
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????
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.

This topic is closed to new replies.

Advertisement