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

Author Topic: Problem with sf::view  (Read 1096 times)

0 Members and 1 Guest are viewing this topic.

Poffe22

  • Newbie
  • *
  • Posts: 2
    • View Profile
Problem with sf::view
« on: December 09, 2013, 10:10:49 pm »
Hello everyone,
I've recently started playing around with SFML.
Just until now everything has actually gone well, which I'm more than glad for :)
However, now I've encountered a problem :(
It's as the title states a problem with sf::view
When scrolling through a world it looks, wrong...
This is easily fixed by zooming in the view.
I'm just wondering if there's another solution to the problem since I dislike the large bulky pixels.

Here are images before and after the zoom so you know what I mean:
http://imgur.com/a/0mlAr (sorry for the link, I don't know how to use the forums :()

Thanks in advance

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Problem with sf::view
« Reply #1 on: December 09, 2013, 10:20:37 pm »
Make sure you set the view to integer values otherwise the rasterization in OpenGL can interpret the pixels wrongly, thus showing stuff from left or right of the tileset. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Poffe22

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Problem with sf::view
« Reply #2 on: December 10, 2013, 09:15:47 pm »
Thanks, it works perfectly now :)