Question

I have attached a camera object to a mobile object (a car) at a scene. The camera shows the area which the object is at and looking to (front window of the car).

My problem is that, while my object (with camera) moves or rotates, the objects at the screen (street light sticks, other cars moving parallel) seem shaking. Namely I see the solid object and some little transparent versions of the same object near to the original. It is more observable when the camera changes its orientation than when it moves straight. When moving straight, the lights shake when they are far from the observer, at some range they stop shaking, and when they get nearer they start shaking again.

I do not think that OpenGL makes a motion blur at the background by itself. But I also could not find a name to this problem, so I am not able to find a starting point.

Was it helpful?

Solution

When the program is in full screen mode, and the time required to draw the full scene is below 16msec (for 60fps), then I could be able to have smooth movement with no objects oscillating.

When the draw time oscillates too much or when I set Vega to limit the fps algorithmically, the scene oscillates.

When I set the swap interval to 1, namely letting the underlying draw thread to match with screen refresh, then it is fine again.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top