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

Author Topic: Problem rendering tiles (tearing?)  (Read 12188 times)

0 Members and 1 Guest are viewing this topic.

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Problem rendering tiles (tearing?)
« Reply #15 on: February 04, 2012, 03:54:33 pm »
Oh, reminds me of very old games that always allowed you to set that offset. Remember that the correct value might be hardware dependent, so yo shouldn't hardcode it and provide some setting. Although I think there should be some better solution to this.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Problem rendering tiles (tearing?)
« Reply #16 on: February 04, 2012, 06:06:20 pm »
It's not hardware dependant, it's very well known as explained here:
http://www.sfml-dev.org/forum/viewtopic.php?p=39211#39211
Laurent Gomila - SFML developer

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Problem rendering tiles (tearing?)
« Reply #17 on: February 05, 2012, 12:29:06 pm »
I'm quite sure I've seen that setting for textured quads too. Although I might confuse it with offsets for decals, so they don't cause z-buffer fighting.