Thread: Camera/object shaking

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607

    Camera/object shaking

    I've had the problem of the camera and/or object shaking the further away the camera/object is from the world origin. It only occurs after some type of yaw or pitch occurs. Accel, decel, and roll do not cause the shaking.

    At first I thought it was because of floating point round-off but after looking at the matrix dump from frame to frame in a file I do not think that is the issue.

    Here is a frame dump of the main player object. The object was hard-coded to yaw 1.0f * timeDelta radians during the dump - the delta from frame to frame was 16.666667 ms or 1.0f/60.0f or 60 FPS. The dashboard and object were shaking both in cockpit and object view during the dump. This dump is of the model matrix for the object. I don't see any anomalies that would cause this shaking to occur.

    You can clearly see the axis of rotation in the matrices and that the Y axis was not affected. In fact the matrix looks quite stable to me - moreso than I thought it would.

    Please look at the attached file and let me know what you think. The matrices are LH and the file is arranged:

    11 12 13 14
    21 22 23 24
    31 32 33 34
    41 42 43 44

    The object had a starting position of 65000.0f,65000.0f,65000.0f.
    Last edited by VirtualAce; 03-12-2011 at 11:41 AM.

Popular pages Recent additions subscribe to a feed