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

Author Topic: Sprite and view artifact  (Read 4053 times)

0 Members and 1 Guest are viewing this topic.

haren

  • Newbie
  • *
  • Posts: 4
    • View Profile
Sprite and view artifact
« on: September 21, 2010, 10:52:27 pm »
Hello there. I'm having an issue with views and sprites.



As you can see from the picture, strange lines and boxes form around the sprites and flicker as I zoom in or out. I am using SFML svn, by the way. The issue goes away if I add an empty 1 pixel border around each sprite, but before I go ahead and do that for everything, I'd like to know if there is another solution. I have tried disabling smoothing on the image.

Wollnashorn

  • Newbie
  • *
  • Posts: 3
    • View Profile
Sprite and view artifact
« Reply #1 on: September 22, 2010, 07:49:11 am »
The empty pixel border is the best solution for that. ;)

Mindiell

  • Hero Member
  • *****
  • Posts: 1261
    • ICQ Messenger - 41484135
    • View Profile
Sprite and view artifact
« Reply #2 on: September 22, 2010, 08:45:50 am »
Hello,

Did you try to use Image.SetSmooth(false) ?
Mindiell
----

haren

  • Newbie
  • *
  • Posts: 4
    • View Profile
Sprite and view artifact
« Reply #3 on: September 22, 2010, 09:16:15 am »
Mindielle: indeed I did

Thanks for the advice. I feel like if I'm not the only one with this problem, there should be a note in the docs.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Sprite and view artifact
« Reply #4 on: September 22, 2010, 09:39:19 am »
Are you using SFML 1 or SFML 2?
Laurent Gomila - SFML developer

haren

  • Newbie
  • *
  • Posts: 4
    • View Profile
Sprite and view artifact
« Reply #5 on: September 22, 2010, 09:43:02 am »
downloaded the source from svn about a week ago. So I guess it would be 2.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Sprite and view artifact
« Reply #6 on: September 22, 2010, 09:45:21 am »
The SVN repository contains both versions:
- branches/sfml2 is SFML 2
- trunk is SFML 1
Laurent Gomila - SFML developer

haren

  • Newbie
  • *
  • Posts: 4
    • View Profile
Sprite and view artifact
« Reply #7 on: September 22, 2010, 09:47:18 am »
I just checked, and it's 2.