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

Author Topic: not good image quality  (Read 3449 times)

0 Members and 1 Guest are viewing this topic.

adrigm

  • Newbie
  • *
  • Posts: 3
    • View Profile
not good image quality
« on: April 01, 2011, 03:03:00 am »
Original map (Tiled View):



SFML:



Antialising = 0


Why lose image quality?

Sorry for my english. I am Spanish.

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
not good image quality
« Reply #1 on: April 01, 2011, 03:56:25 am »
It's not losing quality. It's using bilinear filtering, iirc. You have to call SetSmooth(false) on each sf::Image. Laurent, you need to default it to false. This problem comes up every other week.
I use the latest build of SFML2

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
not good image quality
« Reply #2 on: April 01, 2011, 08:27:53 am »
Laurent Gomila - SFML developer

devlin

  • Full Member
  • ***
  • Posts: 128
    • View Profile
not good image quality
« Reply #3 on: April 01, 2011, 09:01:59 am »
Shouldn't Bilinear filtering only apply when the size isn't 1:1 matched? Or is it pixel-offset related?

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
not good image quality
« Reply #4 on: April 01, 2011, 10:39:55 am »
Quote from: "Laurent"
Issue added ;)
https://github.com/SFML/SFML/issues#issue/19
Yeah, thank you! I hope this reduces the amount of users being confused about blurred images :)
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

adrigm

  • Newbie
  • *
  • Posts: 3
    • View Profile
not good image quality
« Reply #5 on: April 01, 2011, 05:23:30 pm »
Thank you very much everyone!. I also think you should be default false.