Results 1 to 2 of 2

Thread: Directx8

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2001
    Location
    The Netherlands
    Posts
    184

    Red face

    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

  2. #2
    Guest
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width