Sprite transformation artefact

Hi,

when I move a sprite with a transition then there appears an artifact.
So if I move a sprite to the left side then on the right side of the sprite there sometimes appears on horizontal line of the next frame.

Here is a code to show you the problem:

local sprite = require("sprite")  
display.setStatusBar( display.HiddenStatusBar )  
local background = display.newRect(0,0,display.contentWidth,display.contentHeight)  
background:setFillColor(255,255,255,255)  
  
  
local spriteSheet = sprite.newSpriteSheet("sprite.png",60,60)  
local spriteSet = sprite.newSpriteSet(spriteSheet,1,2)  
  
sprite.add(spriteSet,"test",1,2,2000,1)  
local object = sprite.newSprite(spriteSet)  
object:prepare("test")  
object:play()  
object.x = 200  
object.y = 200  
transition.to(object,{x=50,time=1000})  

And here is the sprite.png (this one is good because you see the artefact very good):

http://imageshack.us/photo/my-images/713/spriteh.png/
It would be very nice if someone knows how to get rid of this artefact.
Thanks,
Yeket [import]uid: 13389 topic_id: 13007 reply_id: 313007[/import]

This sounds like an openGL rendering artifact where the texture edge can wrap around to the other side of the polygon it’s being rendered on. Try adding a 1-2 pixel transparent border around your sprite texture and see if the artifact goes away. [import]uid: 9422 topic_id: 13007 reply_id: 47822[/import]

Hi XenonBL,

Thank you this helped, although I now have to set the frame sizes and positions manually. [import]uid: 13389 topic_id: 13007 reply_id: 47860[/import]