Smash Wii U .gtx texture convert

Discussion in 'Wii U - Hacking & Backup Loaders' started by mastaklo, Mar 14, 2016.

  1. mastaklo
    OP

    mastaklo Advanced Member

    Newcomer
    93
    19
    Feb 26, 2016
    Gambia, The
  2. Mega-Mew

    Mega-Mew GBAtemp Fan

    Member
    409
    653
    May 10, 2015
    France
    TexHaxU is for bfres file, Sm4sh doesn't use bfres (and model.nut have no .gtx file)
     
  3. mastaklo
    OP

    mastaklo Advanced Member

    Newcomer
    93
    19
    Feb 26, 2016
    Gambia, The
    model.nut has .gtx files

    i extracted them and converted the .gtx to .dds with TexHaxU

    only need to know how to convert .dds to .gtx now
     
  4. Mega-Mew

    Mega-Mew GBAtemp Fan

    Member
    409
    653
    May 10, 2015
    France
    Impossible
    [​IMG]

    Can you show me the converted texture ?
     
  5. mastaklo
    OP

    mastaklo Advanced Member

    Newcomer
    93
    19
    Feb 26, 2016
    Gambia, The
    this is a gtx i extracted from the .nut
    you can convert it with TexHaxU
    should be some part of sonic
     

    Attached Files:

    • test.rar
      File size:
      36.6 KB
      Views:
      101
  6. Mega-Mew

    Mega-Mew GBAtemp Fan

    Member
    409
    653
    May 10, 2015
    France
    I know how to change back the texture into the file, but it can't work with nut file, did you have the path of the file ?
     
  7. mastaklo
    OP

    mastaklo Advanced Member

    Newcomer
    93
    19
    Feb 26, 2016
    Gambia, The
    what path of which file you mean?
    the one i send you is from fighter\sonic\model\body\c00\model.nut
     
  8. Mega-Mew

    Mega-Mew GBAtemp Fan

    Member
    409
    653
    May 10, 2015
    France
    I don't know how you can get it working, for me he does, nothing with nut file.
     
  9. mastaklo
    OP

    mastaklo Advanced Member

    Newcomer
    93
    19
    Feb 26, 2016
    Gambia, The
    i extracted it manually with a hex editor

    — Posts automatically merged - Please don't double post! —

    so you can tell me how to get the edited .dds back in .gtx?
     
  10. Mega-Mew

    Mega-Mew GBAtemp Fan

    Member
    409
    653
    May 10, 2015
    France
    The tool do it itself, it convert the dds to a gtx and inject it to the file, so if TexHaxU don't detect the gtx in the file, the conversion cannot be done...
    Maybe @NWPlayer123 can try to update it ?
     
  11. mastaklo
    OP

    mastaklo Advanced Member

    Newcomer
    93
    19
    Feb 26, 2016
    Gambia, The
    would be greate if @NWPlayer123 could update it
    doing it manually is pretty time consuming
    and i still didnt got it right
    but its something
    Warning: Spoilers inside!
    Warning: Spoilers inside!
     
  12. soniczx123

    soniczx123 GBAtemp Advanced Fan

    Member
    573
    162
    Jul 24, 2015
    Confirmed Sonic OC
     
  13. Mega-Mew

    Mega-Mew GBAtemp Fan

    Member
    409
    653
    May 10, 2015
    France
    A tool can manage texture from nut file, but not TexHaxU
     
  14. mastaklo
    OP

    mastaklo Advanced Member

    Newcomer
    93
    19
    Feb 26, 2016
    Gambia, The
    which tool?
     
  15. Mega-Mew

    Mega-Mew GBAtemp Fan

    Member
    409
    653
    May 10, 2015
    France
    idk, I have not sought.
    But you can search on the models/textures ressources
     
  16. NWPlayer123

    NWPlayer123 GBAtemp Addict

    Member
    2,632
    6,233
    Feb 17, 2012
    United States
    The Everfree Forest
    All Wii U games use GTX because that's how GX2 handles textures, you just need to do the same steps hax.py does, you convert the DDS to GTX, then I edit the swizzle manually, then run it thru TexConv2 again to get the right format (I'd have to look at the QuickBMS extract script to see how it gets swizzle metadata), which also generates the mipmaps since there are almost always some, then you just splice the data back in. I'd need a bunch of examples to try anything, and I've never touched Smash before.
     
  17. Dead_MK

    Dead_MK Advanced Member

    Newcomer
    70
    39
    Aug 21, 2015
    Canada
    Smashville
    1. Download QuickBMS
    2. Download this script
    3. Download my Pack
    4. Put the .nut file in your folder
    5. Launch BMS and select your script with your .nut file
    6. Tranfer all the modelX.gtx files in the "Convert" folder
    7. Launch "convertGTX.exe"
    8. The DDS files should be in the OutDDS folder

    Enjoy


    EDIT: btw I still don't know to convert back the DDS to gtx to nut

    EDIT 2: Nvm I used my brain

    EDIT 3: Okay now I just need to convert the gtx into .nut
     

    Attached Files:

    Last edited by Dead_MK, Mar 15, 2016
    Mega-Mew likes this.
  18. mastaklo
    OP

    mastaklo Advanced Member

    Newcomer
    93
    19
    Feb 26, 2016
    Gambia, The
    so you think youll be able to do it?
    i can send you some nut files if you dont have them
     
  19. alterrequiem

    alterrequiem Newbie

    Newcomer
    3
    0
    May 6, 2016
    United States
    Is there a solution to repacking the files as .nut yet? I barely grasped the concept of turning them into .dds and now I have a 90% complete Donald Trump Ganondorf skin that i won't be able to use :(((