SFML community forums

Help => Graphics => Topic started by: supperpiccle on December 14, 2012, 02:02:44 am

Title: SetScaleX is fading at the ends
Post by: supperpiccle on December 14, 2012, 02:02:44 am
ok so my first question is when you use this funtion does it extend \
this way .>>>>>>>>>>
or this way<<<<<<<<<.
or even this way <<<<<<<.>>>>>>>>
basically does it extend forward, backwards or both ways.

then my next problem is when i use it it fades at the edges i have a 1x5 pic that i expand into a plateform for my game....however it is faded on both ends and looks tacky....ive made sure the picture is solid what am i doing wrong or have i provided enough info to  make a guess?
Title: Re: SetScaleX is fading at the ends
Post by: eXpl0it3r on December 14, 2012, 02:17:52 am
ok so my first question is when you use this funtion does it extend
It extends around the (transformation) origin. You could've also simply tested it... ;)

then my next problem is when i use it it fades at the edges i have a 1x5 pic that i expand into a plateform for my game....however it is faded on both ends and looks tacky....ive made sure the picture is solid what am i doing wrong or have i provided enough info to  make a guess?
"A picture is worth a thousand words"...
So no there isn't enough information, also you should read this (http://en.sfml-dev.org/forums/index.php?topic=5559.0). ;)
Title: Re: SetScaleX is fading at the ends
Post by: supperpiccle on December 14, 2012, 02:36:38 am
i can't upload a picture but i don't know why you cant understand faded at edges of a plateform is complicated
Title: Re: SetScaleX is fading at the ends
Post by: Nexus on December 14, 2012, 09:52:10 am
If you use SFML 1.6: Try to call sf::Image::SetSmooth() with false. And change to SFML 2, it's much better.

If that doesn't help, describe your problem in a meaningful way and upload a picture to www.sfmluploads.org.