Hey guys,
I’ve got some strange issues with my camera and the Aether.Physics2D.
I debugged it and got some results which explains why my textures are flickering.
now I want to follow my character with my camera. the character is a physics body which I push around.
after the physics step I take the Position and multiply it with 100 to get the new position for the camera.
But my camera got positions like this:
{X: 2,357056 Y: 2,356934}
{X: 2,357056 Y: 2,357056}
{X: 2,357178 Y: 2,357056}
{X: 2,357056 Y: 2,356934}
{X: 2,357178 Y: 2,357056}
{X: 2,357056 Y: 2,356934}
{X: 2,357056 Y: 2,357056}
{X: 2,357178 Y: 2,357056}
{X: 2,357056 Y: 2,356934}
{X: 2,357056 Y: 2,357056}
But it should something like
{X:2,121307 Y:2,121307}
{X:2,121307 Y:2,121307}
{X:2,121307 Y:2,121307}
{X:2,121307 Y:2,121307}
{X:2,121307 Y:2,121307}
because its every frame the same movement vector. That cause the very ugly flickering. How I can fix that?
EDIT: Ok I got it, It’s not just a physics problem. Can be reproduced with a diffrent texture too. I have attached a sample project to show my issue: https://www.dropbox.com/s/1q86gx5bkmslf2v/CameraFlickering.zip?dl=0
both textures can be testet. The gras-texture becomes darker if you scroll and the floor texture loose some lines of you scroll vertical.
Using Monogame 3.7.0.1708 under windows 10