Author Topic: Custom Portraits upside down  (Read 384 times)

Legacy_DM_Vecna

  • Hero Member
  • *****
  • Posts: 501
  • Karma: +0/-0
Custom Portraits upside down
« on: August 11, 2011, 04:17:46 am »


               I have seen reports of this but never a solution. I am creating custom portraits in Pixelmator and exporting as a tga from there. But when I place them in my portraits folder they are upside down. I can rotate all my files but then it is no fun to manage them later. 
               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
Custom Portraits upside down
« Reply #1 on: August 11, 2011, 04:47:43 am »


               Is this a bigendian little endian thing? I've seen the bite order with TIFFs cause this problem. Often moving images with certain formats like tiff between os x and windows leads to problems like the one you describe.

If it is a bite order problem. you can fix it by working in a different bite order.
               
               

               
            

Legacy_Michael DarkAngel

  • Hero Member
  • *****
  • Posts: 627
  • Karma: +0/-0
Custom Portraits upside down
« Reply #2 on: August 11, 2011, 05:08:39 am »


               TGA Flipper

'Image
  MDA
               
               

               
            

Legacy_Malagant

  • Sr. Member
  • ****
  • Posts: 391
  • Karma: +0/-0
Custom Portraits upside down
« Reply #3 on: August 11, 2011, 07:47:58 pm »


               

DM_Vecna wrote...

I have seen reports of this but never a solution. I am creating custom portraits in Pixelmator and exporting as a tga from there. But when I place them in my portraits folder they are upside down. I can rotate all my files but then it is no fun to manage them later. 

It's been my experience that a number of programs cause this when making TGA files. I'm not entirely sure if it's whatever information is stored in the file or how each particular program processes the uncompressed TGA but I find it often enough.

I generally maintain a folder that I dump all my newer portraits and /or problematic textures (that won't properly convert to dds) then use ThumbsPlus to batch convert TGA to TGA (24-bit color, unmapped, uncompressed), which overwrites them all and eliminates the issue without reversing the actual file, before moving them to a hak / portrait folder.

I'm not sure how TGA Flipper goes about things but I've seen some instances where people have rotated the actual file upside down so they appear right side up in game. I'm not a fan of that method.
               
               

               


                     Modifié par Malagant, 11 août 2011 - 06:54 .
                     
                  


            

Legacy_Proleric

  • Hero Member
  • *****
  • Posts: 1750
  • Karma: +0/-0
Custom Portraits upside down
« Reply #4 on: August 12, 2014, 02:09:12 pm »


               I found an example of this while migrating the Heart of the South series.

What surprises me is that the portraits work in the toolset and in-game, but every other tool including Photoshop thinks they're upside down. So, I was glad to find this thread!
               
               

               
            

Legacy_Tarot Redhand

  • Hero Member
  • *****
  • Posts: 4165
  • Karma: +0/-0
Custom Portraits upside down
« Reply #5 on: August 12, 2014, 07:30:22 pm »


               

I recently (like a couple of hours ago) had a similar problem to this in something I will be releasing shortly. It would seem that it was down to the fact that I accidentally had RLE compression turned on. It didn't matter what orientation I had for my image files in the hak, they appeared upside down in game. Re-saving with RLE compression turned off cured it.


 


TR