CMPR Converter

Discussion in 'Wii - Hacking' started by Errorjack, Nov 14, 2011.

Nov 14, 2011

CMPR Converter by Errorjack at 9:49 PM (731 Views / 0 Likes) 4 replies

  1. Errorjack
    OP

    Member Errorjack GBAtemp Regular

    Joined:
    May 23, 2010
    Messages:
    221
    Country:
    United States
    Hey,

    What CMPR Converters are out there, I've searched for one and can't find any(I've searched about all day.)
     
  2. giantpune

    Member giantpune GBAtemp Addict

    Joined:
    Apr 10, 2009
    Messages:
    2,860
    Country:
    United States
    are you talking cmpr tpls or what? if so, gxtexconv can make them. but i dont think it handles the alpha correctly when doing this format.
     
  3. Errorjack
    OP

    Member Errorjack GBAtemp Regular

    Joined:
    May 23, 2010
    Messages:
    221
    Country:
    United States
    I'm talking about .CMPR format. I can extract it to .PNG but I can't convert it over to .CMPR with any tool. I'll try the one you provided.
    Note: this is for Skyward Sword.
     
  4. Wiimm

    Member Wiimm Developer

    Joined:
    Aug 11, 2009
    Messages:
    2,052
    Location:
    Germany
    Country:
    Germany
    my szs tools support tpl/tex0/breft images with different image formats including cmpr and mipmaps/multimage support.

    Code:
    # convert to png:
    wimgt dec SOURCEIMAGE --dest output.png
    
    # convert to tpl/cmpr
    wimgt enc SOURCE.png --dest output.tpl --transform tpl.cmpr
    
    One issue: There are different tpl/tex/... sub formats and my tools only support the Mario Kart related formats.
     
  5. Errorjack
    OP

    Member Errorjack GBAtemp Regular

    Joined:
    May 23, 2010
    Messages:
    221
    Country:
    United States
    I'll try it out when I get home. Thanks for letting me know. If it works, I'll love you.

    I'm sure it will work, I just need a way of converting images to CMPR, the rest should work.
     

Share This Page