2D Toolkit Forum

2D Toolkit => Support => Topic started by: hayatoy on June 02, 2013, 11:41:53 am

Title: There is a gap between perfectly aligned sprites and/or tilemap tiles. (again)
Post by: hayatoy on June 02, 2013, 11:41:53 am
I looked through the forums and I saw this thread in the faq section. I followed the steps (making the pad method to extend) but I still see a small separation.

To be more specific, this happens only when the camera is at a certain location in the scene. The gaps appear randomly as the camera moves. Any help would be greatly appreciated!
Title: Re: There is a gap between perfectly aligned sprites and/or tilemap tiles. (again)
Post by: unikronsoftware on June 02, 2013, 11:43:09 am
Are you using a perspective cameara?
Title: Re: There is a gap between perfectly aligned sprites and/or tilemap tiles. (again)
Post by: hayatoy on June 02, 2013, 11:45:04 am
No, I'm using orthographic. I'm using the tk2dcamera if that makes any difference.
Title: Re: There is a gap between perfectly aligned sprites and/or tilemap tiles. (again)
Post by: unikronsoftware on June 02, 2013, 11:46:50 am
If you're using tk2dCamera, try making sure the camera position is always a round number. You should NEVER see any weirdness if your camera is at a round number. Also, there is a higher likelihood of this happening when scaled. And finally, are you using point filtering?
Title: Re: There is a gap between perfectly aligned sprites and/or tilemap tiles. (again)
Post by: hayatoy on June 02, 2013, 11:55:28 am
The camera position is a round number. I am however using a custom camera resolution (240x160).

I am also using point filtering for all the sprites.

I dont know if this is related or not but even the editor camera shows a gap when the camera is positioned in a certain location.
Title: Re: There is a gap between perfectly aligned sprites and/or tilemap tiles. (again)
Post by: unikronsoftware on June 02, 2013, 11:57:32 am
Can you try increasing padding (padding is off for point filtered sprites) and try again? If not are you able to set up a repro case for me? support at unikronsoftware dot com if possible
Title: Re: There is a gap between perfectly aligned sprites and/or tilemap tiles. (again)
Post by: hayatoy on June 02, 2013, 12:02:56 pm
Fantastic, the setting the extra padding helped. Thanks!