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

Author Topic: SFML 2.0 Pixel Stretch on sprites in my maps.  (Read 2564 times)

0 Members and 1 Guest are viewing this topic.

Xurix

  • Newbie
  • *
  • Posts: 14
    • MSN Messenger - Luixsia@crimasi.com
    • AOL Instant Messenger - Luixsia
    • Yahoo Instant Messenger - Luixsia@yahoo.com
    • View Profile
    • http://www.crimasi.com
SFML 2.0 Pixel Stretch on sprites in my maps.
« on: November 17, 2010, 11:15:17 pm »
Hi everyone. I made this map loader with SFML 1.6 It worked just as intended with no graphical glitches.
However I had a horrid FrameRate. I read on this forum about upgrading to SFML 2.0 fixed their framerate Problem.

So I downloaded cmake. And with help of the tutorial on the SFML 2 Tutorials I downloaded and compiled the latest revision of SFML 2
Edited my source where things had changed and got it up and running.
I now had 60-61 fps.

However in return I have this odd glitch. It seems to stretch the last pixels on the rightside outwards. I have no idea what's causing it and like I said didn't happen in 1.6.

Here's a pic.
http://i9.photobucket.com/albums/a66/Pkmn_knight/graphicglitch.png

In case it makes any difference. I'm using Visual Studio C++ 2010.
I'm using Revision 1667 of SFML 2.0. Just updated to 1671.
My graphics card is ATI Radeon HD 4350 (I get that crashing bug too) Latest drivers updated today.

Any ideas?
SFML - Simply Fun on Many Levels

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
SFML 2.0 Pixel Stretch on sprites in my maps.
« Reply #1 on: November 17, 2010, 11:23:34 pm »
Make sure that you've converted all your IntRect(left, top, right, bottom) to IntRect(left, top, width, height).
Laurent Gomila - SFML developer

Xurix

  • Newbie
  • *
  • Posts: 14
    • MSN Messenger - Luixsia@crimasi.com
    • AOL Instant Messenger - Luixsia
    • Yahoo Instant Messenger - Luixsia@yahoo.com
    • View Profile
    • http://www.crimasi.com
SFML 2.0 Pixel Stretch on sprites in my maps.
« Reply #2 on: November 17, 2010, 11:37:20 pm »
Ah I see, That was it. I need to pay attention more when reading documentation.

Thanke Laurent.
SFML - Simply Fun on Many Levels

 

anything