Results 1 to 5 of 5

Thread: Message interuptions

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Posts
    84

    Message interuptions

    I have a Direct3d8 application running in a window. During the render scene i spin an object on its axis while having it rotate around another object. Whenever i move the form it pauses (which is ok) but when it resumes it looks like the rotation was only applied to some of the vertices then cut short. Thus the object alighment is messed up.

    I am using the standard if peekmessage else render loop stuctures.

    Is there a way to have a function not be interupted? Also what is the proper(standard) method to rotate/change vertices in a vertex buffer?

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Why not use a timer?
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Posts
    84
    I already am using the performance counter.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Posts
    84
    Ok I have the roations stuff down using a wolrd matrix rotation for each object. I now want to know how to create a ScalingRotation quaternion given a set of scaling data for an object. I'm looking around at other sites, but if you know, an answer would be much appreciated.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Posts
    84
    ok I got it figured out, I just forgot to set the quaternion to
    (0, 0, 0, 0) instead of having it default to the identity matrix in my D3DXMatrixTransformation call.

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