Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
SFML 2.0 Pixel Stretch on sprites in my maps.
Print
Pages: [
1
]
Author
Topic: SFML 2.0 Pixel Stretch on sprites in my maps. (Read 2570 times)
0 Members and 1 Guest are viewing this topic.
Xurix
Newbie
Posts: 14
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?
Logged
SFML - Simply Fun on Many Levels
Laurent
Administrator
Hero Member
Posts: 32498
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).
Logged
Laurent Gomila - SFML developer
Xurix
Newbie
Posts: 14
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.
Logged
SFML - Simply Fun on Many Levels
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
SFML 2.0 Pixel Stretch on sprites in my maps.
anything