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

Author Topic: Texture after zoom  (Read 1187 times)

0 Members and 1 Guest are viewing this topic.

MrKasimov

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Texture after zoom
« on: August 16, 2018, 12:08:06 pm »
Hello, I am new here. Tried to search the problem, but had troubles identifing it. In my project zooming out affects the way backgroung sprite is shown. No code here because implementation of zoom and sprite is standart.


Normal zoom. Repeated texture of background.


After zooming out. Wrong proportions. Could someone define the nature of the problem and help me, please?
« Last Edit: August 16, 2018, 12:11:08 pm by MrKasimov »

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Texture after zoom
« Reply #1 on: August 16, 2018, 12:53:39 pm »
Zooming out of course you'll end up having artifacts like that on repeating patterns zoomed out?

Does generateMipmap or setSmooth from sf::Texture help? I tried quickly and mipmaps didn't help but set smooth did.

You can try shaders too.
Back to C++ gamedev with SFML in May 2023