Giter Club home page Giter Club logo

smb_tex's Introduction

smb_tex

Extract and pack textures for iOS version of Super Monkey Ball.

The format is actually pretty simple, it's just a bunch of headers and raw texels data. No compression, no mipmaps, no nothing. The only thing that makes it a bit tricky are different texture formats supported.

It should be noted that texture names are not stored in the file, only the hash of the name. This means that the texture names are not human readable, but they can be found in the game's executable (I think).

Usage

You can download pre-built binaries from the releases page or build it yourself, for example with cargo install --git https://github.com/DCNick3/smb_tex.

Then you can use it like this:

smb_tex extract TexturePackage.tpg output_dir

The output directory will contain a .png file and a .json for each texture in the package. The .json file contains the texture's id, format, and other stuff I haven't really figured out.

You can modify the PNG files and then pack them back into a new package with:

smb_tex create output_dir new_TexturePackage.tpg

There is also an option to force the format of the textures, for example if you want to convert them to R8G8B8A8:

smb_tex create --force-format r8g8b8a8 output_dir new_TexturePackage.tpg

smb_tex's People

Contributors

dcnick3 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.