GithubHelp home page GithubHelp logo

gtx-extractor's Introduction

GTX Extractor v5.4

Extracts textures from the GX2 Texture ('Gfx2' / .gtx file extension) format used in Wii U games, and saves them as DDS.

Can Also convert DDS files into .gtx files!

Requirements:

  • Python 3.4 or higher.
  • Cython (Optional)
  • cx_Freeze. (Optional)

Supported formats:

  • GX2_SURFACE_FORMAT_TCS_R8_G8_B8_A8_UNORM
  • GX2_SURFACE_FORMAT_TCS_R8_G8_B8_A8_SRGB
  • GX2_SURFACE_FORMAT_TCS_R10_G10_B10_A2_UNORM
  • GX2_SURFACE_FORMAT_TCS_R5_G6_B5_UNORM
  • GX2_SURFACE_FORMAT_TC_R5_G5_B5_A1_UNORM
  • GX2_SURFACE_FORMAT_TC_R4_G4_B4_A4_UNORM
  • GX2_SURFACE_FORMAT_TC_R8_UNORM
  • GX2_SURFACE_FORMAT_TC_R8_G8_UNORM
  • GX2_SURFACE_FORMAT_TC_R4_G4_UNORM
  • GX2_SURFACE_FORMAT_T_BC1_UNORM
  • GX2_SURFACE_FORMAT_T_BC1_SRGB
  • GX2_SURFACE_FORMAT_T_BC2_UNORM
  • GX2_SURFACE_FORMAT_T_BC2_SRGB
  • GX2_SURFACE_FORMAT_T_BC3_UNORM
  • GX2_SURFACE_FORMAT_T_BC3_SRGB
  • GX2_SURFACE_FORMAT_T_BC4_UNORM
  • GX2_SURFACE_FORMAT_T_BC4_SNORM
  • GX2_SURFACE_FORMAT_T_BC5_UNORM
  • GX2_SURFACE_FORMAT_T_BC5_SNORM

Credits:

  • AboodXD - Writing this thingy.

Special thanks to:

  • Exzap - Helping with swizzling.

gtx-extractor's People

Contributors

aboood40091 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gtx-extractor's Issues

How can i convert multiple ddd into a single gtx?

I'm editing some sprites from puyo puyo tetris. They're stored as gtx files and inside these gtx files, there's multiple images. How can i convert the edited images back to a single gtx? Every time i try only a single dds is converted as an gtx

mario and sonic olimpic games (2016 Wii U)

hi some textures from this game cant be exported and says this GTX Extractor v5.3, and thanks for the public tool by the way it helped me with other textures
(C) 2015-2018 AboodXD

Converting: C:\Users\SoulE\OneDrive\Documentos\HedgeLib (Olimpic Games)\GTX to DDS Converter\allcmn_och_n.gtx

// ----- GX2Surface Info -----
dim = 5
width = 64
height = 128
depth = 140
numMips = 1
format = GX2_SURFACE_FORMAT_T_BC3_UNORM
aa = 0
use = 1
imageSize = 2293760
mipSize = 0
tileMode = 4
swizzle = 851968, 0xd0000
alignment = 8192
pitch = 32

GX2 Component Selector:
Red Channel: R
Green Channel: G
Blue Channel: B
Alpha Channel: A

bits per pixel = 128
bytes per pixel = 16
realSize = 8192

Unsupported depth
allcmn_coo_n!

its .gtx but i changed extension to upload here

Getting real filename instead "model.bmd0.dds"

Hello,

unfortunately the tool extracts textures with the wrong name.
It's always "model.bmd0.dds" or "model.bmd1.dds", .... Instead the real file name if for example "I_hatake2.dds".

Is there any way to get the real filename of the texture?

Thank you very much!

the issue about multiple image import

I am currently working on "Mario Vs. Donkey Kong: Tipping Stars" in the Chinese Localization

This game has a lot of gtx files containing multiple images,export the file is normal.
There are some gtx files even beyond the TexConv2.exe can only import 64 pictures of the restrictions, there are 153 pictures in the inside.

But,when I edit the dds file, use the -multi option to import the file
Everything looks normal, but I cover it back after the game. Picture position only blank

Can you help me to see what is going on?

**I uploaded files to Google Drive:**https://drive.google.com/open?id=0B6rm6RJxJJ4ORTUxbDkxVXFtN3M

Have time to hope that you can analyze what is the problem somewhere. Thank you

Copyright Credits

Near the top of the main source code file are the following lines:

# Copyright © 2014 Treeki, 2015-2016 AboodXD
__copyright__ = "Copyright 2015, 2016 AboodXD

It would be appreciated if you could list Treeki, myself and yourself in both of those lines, and use the same wording for both.

A Link Between Worlds "Invalid Texture Format"

I attempted to extract my .gtx file that I had previously extracted from a .bflim file. I attempted to use your bflim converter to do this, but I was informed that that too was an invalid file format.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.