Camera shaking on large position values
Camera shaking on large position values
Hi, I've just noticed this effect in the camera movements when position has large values.. I suppose due to matrix calculation methods with large floats and I wanna know what should be the proper solution for this if I must implement a huge scene??
How large are the values we are talking about?
One way to do it would be to periodically shift the world origin so that it is always near the camera position. This would require ofsetting the world origin for every scene node periodically. If you are making a huge world, you are probably going to implement some sort of tiling system for paging objectes into and out of memory. If you are doing this, or find that you need to, you should be able to adjust the origin when the paging work is done.
Another solution would be to modify the Irrlicht source and use a different number type for position. You could use a f64 or a composite type that used a f32 and a s32.
Travis
One way to do it would be to periodically shift the world origin so that it is always near the camera position. This would require ofsetting the world origin for every scene node periodically. If you are making a huge world, you are probably going to implement some sort of tiling system for paging objectes into and out of memory. If you are doing this, or find that you need to, you should be able to adjust the origin when the paging work is done.
Another solution would be to modify the Irrlicht source and use a different number type for position. You could use a f64 or a composite type that used a f32 and a s32.
Travis
Over 1M in any axis
I tested this in an AMD 64 and the shakes become smoother than in my 32 pc ..
Certainly the tiling system would be the best solution, thanks for the advice!!
Haa, and if someone is interested, in a quick search I found this articles about tiling games
http://www.gamedev.net/reference/list.asp?categoryid=44
I tested this in an AMD 64 and the shakes become smoother than in my 32 pc ..
Certainly the tiling system would be the best solution, thanks for the advice!!
Haa, and if someone is interested, in a quick search I found this articles about tiling games
http://www.gamedev.net/reference/list.asp?categoryid=44