This project has moved and is read-only. For the latest updates, please go here.

Sprites and FarseerPhysic. Problem.

Topics: Developer Forum, User Forum
Mar 18, 2010 at 2:54 PM

Hi ! I trying use farseer engine in my xna project. When physic enabled (sometimes) i got strange artifact on edge of my sprites.

Correct -

 Incorrect -

Help me ! How solve this problem ?

Mar 18, 2010 at 3:31 PM



I don't think that the issue is related to Farseer as an engine but rather your own graphics engine.

Is the texture that you are using tileable?

In your working image above you can actually also see artifacts but these seems to be caused by that the texture is not tileable.

Mar 18, 2010 at 3:46 PM
Edited Mar 18, 2010 at 4:32 PM

My problem is solved. You was right, the problem was in my graphic engine. Never pass float camera sprite coordinates to sprite batch. Convert them to integer before.