PDA

Click to See Complete Forum and Search --> : Directx8


per-i
Mar 12th, 2001, 10:03 AM
Hello to you all!

I have some questions. I have been trying out the DirectX tutorials and i think i know the basics now. My program only needs 3d room. The user can design the room by himself. I want to load x.files. I can create x.files with 3dMax, so that isn't a problem. But the tutorial doesn't explain much about x.files. What i would like to know is how to posistion the object. I have got a file with all the posistions of the objects. I want to load the objects and then place them according to the file. How do i do this? I do not understand why they explain how to load an x-file and don't tell you how to build a scene with them.

Hope there is somebody out there who can help me!

Greetingz,

Per

Mar 12th, 2001, 12:17 PM
When a file is converted to the .X format, the center of
the object is automatically placed at (0, 0, 0). you have to translate the object to whatever location you want,
using a matrix (I think you could also lock the Vertex
Buffer, and modify every point in the model, but i think
thats a tad advanced =). If youve gone through the tutorials, youll know what im talking about. And remember, "Practice makes better".

Z.