CMPR Converter

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

  1. Errorjack
    OP

    Errorjack GBAtemp Regular

    Member
    222
    50
    May 23, 2010
    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

    giantpune GBAtemp Addict

    Member
    2,860
    122
    Apr 10, 2009
    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

    Errorjack GBAtemp Regular

    Member
    222
    50
    May 23, 2010
    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

    Wiimm Developer

    Member
    2,170
    379
    Aug 11, 2009
    Gambia, The
    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

    Errorjack GBAtemp Regular

    Member
    222
    50
    May 23, 2010
    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.