Sprites and FarseerPhysic. Problem.

Topics: Developer Forum, User Forum
Mar 18, 2010 at 1: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 - http://img267.yfrog.com/i/nographicbug.jpg/

 Incorrect - http://img267.yfrog.com/i/graphicbug.jpg/

Help me ! How solve this problem ?

Mar 18, 2010 at 2:31 PM

Hi

 

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 2:46 PM
Edited Mar 18, 2010 at 3: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.