dear all, i am new directx programer. I want to show x file in the windows(EmptyProject in October 2005 DirectX SDK).
but i didn't know how to do it. please tell me watch function want to. or have any sample code to do it
thank everyone.
dear all, i am new directx programer. I want to show x file in the windows(EmptyProject in October 2005 DirectX SDK).
but i didn't know how to do it. please tell me watch function want to. or have any sample code to do it
thank everyone.
How to show x file?
dan ashcroft
I'll try to get better, I'm a lame instructor. :-)
I think it would be useful if somebody could post a sticky in the DirectX 101 forum including links to major MDX community sites (like The Zbuffer), Tom Miller's books on MDX and some of the better MDX tutorials out on the web (C-Unit, PieterG, DrunkenHyena...).
MeganH
They can be found here.
They cover basics such as initializing a Direct3D device. Getting a window up and running, rendering some primitives and then loading a resource such as a .x Model which is what you want.
If you have any further questions, please don't hesitate to ask here as I am sure we will be able to guide you and provide you with consistent information to help you improve your DirectX learning experience.
I hope this helps
Take care.
Al Sauve
If you'd like to start rendering the mesh in your .X file right away, you could use the FrameworkMesh class from the DXUT, which should be already contained in your code, if you`re using the EmptyProject. Just call the FrameworkMesh's constructor passing in your Direct3D device and a string telling the path to the .X file (either relative or absolute). Then you can just call the frameworkMesh.Render passing in your Direct3D device as the parameter inside your render loop (probably OnFrameRender) between the device.BeginScene and device.EndScene method calls.
If you'd like to know more about meshes, I recommend the Direct3D tutorials (especially number 6) and the Direct3D reference part of the SDK.
Cheers
Jurassic