Hello Guest

Author Topic: Visible separation between two background sprites  (Read 4716 times)

midasmax

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 31
    • View Profile
Visible separation between two background sprites
« on: July 11, 2013, 03:26:51 am »
Hi there,

I'm trying to create a tile-able background image. The background is 960x640, but when I place two Sprites next to each other, there appears to be a visible separator line between the both of them.

Here is a zoomed in image from the editor


And this is the game view window:


Any idea how I might fix this?

Update:
So I think I've fixed it! I changed the Filter Mode from "Bilinear" to "Point" in the Sprite Collection Settings. This seems to work!
« Last Edit: July 11, 2013, 03:30:26 am by midasmax »

ReveLorenfield

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Visible separation between two background sprites
« Reply #1 on: July 11, 2013, 08:28:22 am »
I had this problem once too, it was fixed by setting the "Pad method" of the sprite to "Extend" (instead of "Default").

Source: http://unikronsoftware.com/2dtoolkit/forum/index.php?topic=254.0

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Visible separation between two background sprites
« Reply #2 on: July 11, 2013, 09:22:19 am »
The FAQ entry for this is here:
http://unikronsoftware.com/2dtoolkit/forum/index.php/topic,294.0.html

It you want bilinear to work properly, you will need to set pad to extend.

midasmax

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: Visible separation between two background sprites
« Reply #3 on: July 11, 2013, 02:45:28 pm »
Thanks guys!

I do apologize for not sourcing it out in the FAQs sub-forum prior to posting it here. I'll be sure to check that place out if I run into any issues first the next time! I actually did a search on the forum for "separation", but should have thought about "gap" too ;)

All the same, I really appreciate the help and advice. The dwellers of this forum are really nice, prompt, and helpful. Thanks so much!