Results 1 to 4 of 4

Thread: Matrices

  1. #1

    Matrices

    Hi all

    I am a newbie here.
    Would any body like to give me a simple code to rotate two triangle. The first triangle rotate in Y axis and the second one rotate in X axis.
    I have run the Tut03_Matrices from JEDI DirectX Examples but it seems not to rotate the triangle but the world (device).

    Thanks in Advanced

  2. #2

    Matrices

    I could be wrong, since I'm not that much into 3D programming and all I did was OpenGL, but don't you rotate the world and then draw the scene with the new viewpoint so the triangle appears to be rotating...

    So if this is true then you would do something like this (pseudo):
    1. RotateWorld X
    2. DrawTriangle 1
    3. RotateWorld Y
    4. DrawTriangle 2

    Hope this helps a bit...
    Do it by the book, but be the author!
    <br />
    <br />Visit the Lion Productions website at:
    <br />http://lionprod.f2o.org

  3. #3

    Matrices

    Yes, I did it I solved that.

    Thanks so much.

  4. #4

    Matrices

    np!
    I'm glad it worked!
    Do it by the book, but be the author!
    <br />
    <br />Visit the Lion Productions website at:
    <br />http://lionprod.f2o.org

Bookmarks

Posting Permissions

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