Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Black borders in tiles  (Read 2697 times)

0 Members and 1 Guest are viewing this topic.

Fox3

  • Newbie
  • *
  • Posts: 10
    • View Profile
Black borders in tiles
« on: July 03, 2010, 03:52:06 pm »
I have this tile here, and I made a tiled background with it. But it show some black borders in it. I dont know why :( Can someone help me?

Code: [Select]

    images["BGGround"].LoadFromFile("resources/background/ground.png");
    for(unsigned int i = 0; i < width+2; i++)
    {
        sf::Sprite groundTile;
        groundTile.SetCenter(0,0);
        groundTile.SetImage(images["BGGround"]);
        groundTile.SetPosition(-(float(width)/2 +1)*64+i*64,0);
        background.push_back(groundTile);
    }


Here is a screenshot:

Walker

  • Full Member
  • ***
  • Posts: 181
    • View Profile
Black borders in tiles
« Reply #1 on: July 03, 2010, 06:11:43 pm »
This has been coming up a lot lately.

Me thinks you need to Image::SetSmooth(false) as mentioned in the thread I linked.

Fox3

  • Newbie
  • *
  • Posts: 10
    • View Profile
Black borders in tiles
« Reply #2 on: July 03, 2010, 06:18:55 pm »
Thanks that solved my problem :D