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

Author Topic: Extra pixels drawn  (Read 1780 times)

0 Members and 1 Guest are viewing this topic.

RedTheGreen

  • Newbie
  • *
  • Posts: 19
    • View Profile
    • RedTheGreen's Website
    • Email
Extra pixels drawn
« on: December 06, 2012, 03:43:57 am »
When I try drawing anything (SFML-1.6) via sf::RenderWindow::Draw() it semi-randomly comes up with extra pixels over the image that I loaded.

Example:


This occurs for most images I try. I have a feeling SFML adds some sort of effect or blur to images when they are drawn. Else, what should I do to fix it?

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Extra pixels drawn
« Reply #1 on: December 06, 2012, 03:54:25 am »
sf::Image::SetSmooth(false), it's enabled by default in 1.6, 2.0 doesn't do that so it's not so confusing at first.
Back to C++ gamedev with SFML in May 2023

RedTheGreen

  • Newbie
  • *
  • Posts: 19
    • View Profile
    • RedTheGreen's Website
    • Email
Re: Extra pixels drawn
« Reply #2 on: December 07, 2012, 03:04:51 am »
Thanks

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Extra pixels drawn
« Reply #3 on: December 07, 2012, 03:12:48 am »
Consider switching to 2.0 too, it's much better.
Back to C++ gamedev with SFML in May 2023