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

Author Topic: Text Blur  (Read 1575 times)

0 Members and 1 Guest are viewing this topic.

kol

  • Newbie
  • *
  • Posts: 31
    • View Profile
Text Blur
« on: October 25, 2013, 05:07:08 am »
When I start my project, my text is normal:



But if I move sf::View, looks like this:


Ixrec

  • Hero Member
  • *****
  • Posts: 1241
    • View Profile
    • Email
Re: Text Blur
« Reply #1 on: October 25, 2013, 05:10:52 am »
We'll need to see code and/or exact position/size/etc numbers to give you any real advice, but my first guess would be: Is the text ever at non-integer pixel coordinates?  That usually makes things look off.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Text Blur
« Reply #2 on: October 25, 2013, 12:53:57 pm »
Make sure you move the view to integer coordinates. If the view is moved between pixels OpenGL will have to do some tricks to make it kind of look in-between pixels as well, which can lead to odd distortion.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

kol

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: Text Blur
« Reply #3 on: October 26, 2013, 02:38:38 am »
Thanks, I was using to float coordinates.

 

anything