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

Author Topic: Why doesn't anti-aliasing work with textures?  (Read 2509 times)

0 Members and 1 Guest are viewing this topic.

swetroniusz

  • Newbie
  • *
  • Posts: 1
    • View Profile
Why doesn't anti-aliasing work with textures?
« on: August 20, 2019, 03:09:49 pm »
Hey  ;)!
As far I can know, you enable MSAA in SFML like this:

sf::ContextSettings settings;
settings.antialiasingLevel = samples;
sf::RenderWindow window(sf::VideoMode(SCR_WIDTH, SCR_HEIGHT), "super creative title", sf::Style::Default, settings);
 

This, however, doesn't anti-alias textures. Why is that? I know you can use sf::Sprite::setSmooth() but I'm really confused by this. When you use multisampled color buffers, every fragment has to check the coverage multiple times, so it should work with the textures as well.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Why doesn't anti-aliasing work with textures?
« Reply #1 on: August 20, 2019, 04:32:35 pm »
As far as I know, antialiasing only smoothes geometry edges. It doesn't care about texture data (otherwise you'd just end up with a blurred framebuffer).
Laurent Gomila - SFML developer

 

anything