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

Author Topic: PNG/TGA Upside-down and Backwards  (Read 5775 times)

0 Members and 1 Guest are viewing this topic.

lancel00t

  • Newbie
  • *
  • Posts: 18
    • ICQ Messenger - 449212638
    • AOL Instant Messenger - dripdropliner@ao
    • View Profile
    • http://www.watsontechgroup.com
PNG/TGA Upside-down and Backwards
« 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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
PNG/TGA Upside-down and Backwards
« Reply #1 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 ?
Laurent Gomila - SFML developer

lancel00t

  • Newbie
  • *
  • Posts: 18
    • ICQ Messenger - 449212638
    • AOL Instant Messenger - dripdropliner@ao
    • View Profile
    • http://www.watsontechgroup.com
Windows Vista
« Reply #2 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!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
PNG/TGA Upside-down and Backwards
« Reply #3 on: August 28, 2007, 10:15:40 pm »
Hehe, great :)
Laurent Gomila - SFML developer

 

anything