SFML community forums

Help => Graphics => Topic started by: lancel00t on August 28, 2007, 09:34:47 pm

Title: PNG/TGA Upside-down and Backwards
Post by: lancel00t on August 28, 2007, 09:34:47 pm
I am building the basic example for displaying a sprite using SFML and when I use a PNG image or TGA image the image is backwards and upside down. The only thing I am altering from the supplied source code is the image loading. My setup: MinGW + msys 1.0 + Netbeans. devIL also complains that it is version 166 but should be 168. Looking for help.
I also should add that the image repeats itself like; IMAGEIMAGEIMAGEIMAGE
lancel00t
Title: PNG/TGA Upside-down and Backwards
Post by: Laurent on August 28, 2007, 09:58:22 pm
Quote
when I use a PNG image or TGA image the image is backwards and upside down

Does it happen with other image formats, or just TGA and PNG ?

Quote
devIL also complains that it is version 166 but should be 168

Maybe you're using another (older) DevIL.dll which was previously installed on your system ?

Quote
I also should add that the image repeats itself like; IMAGEIMAGEIMAGEIMAGE

This is the first time someone reports this... Any screenshot to show it ?
Title: Windows Vista
Post by: lancel00t on August 28, 2007, 10:13:49 pm
I use Windows Vista (Ultimate) and in general sometimes it can be an Ultimate pain in the rear. I located the MS supplied devil.dll on my system, renamed it to devil.dll.broken, replaced it with devil.dll from ~./bin and everything seems to be okay. Thanks for the prompt reply!
Title: PNG/TGA Upside-down and Backwards
Post by: Laurent on August 28, 2007, 10:15:40 pm
Hehe, great :)