Code Monkey home page Code Monkey logo

gameimageutil's Introduction

GameImageUtil

Releases License Discord

GameImageUtil is a tool to work with and process various images from various games for use within rendering, modding, ugc, etc. As with most games, developers pack images, perform conversions, etc. and this will help with unpacking them. This tool is released especially for RaGe and ZeRoY because of how much I love them.

Requirements

  • Windows 10 x64 or above (Windows 7/8/8.1 should work, but are untested)
  • Microsoft Visual Studio 2019 Runtime and .NET Framework 4.7.2

Links:

Using GameImageUtil

To use GameImageUtil, download the latest version from the Releases page and run the exe. From here it is pretty easy, just select a mode and output format, and drag and drop images.

Modes

GameImageUtil comes with multiple built-in "modes" for processing different images:

Drag and Dropping Images

  • Automatic: this mode attempts to resolve the mode based off the input image name. Currently this is only tested on Call of Duty: Modern Warfare 2019 and Call of Duty: Infinite Warfare and Cast, but will support others soon including txt files generated by various tools of mine such as Tyrant.
  • Cast Files: This mode will accept Cast files from DTZxPorter's Legion and simply rename the hashed images to match the behaviour of his Maya plug-in (naming each image by their material + slot)
  • CoD Greyscale XY Normal Map w/ Alpha (MW/WaW/MW2/MW3/BO1): this will compute the Z (B channel) of a DXT5 normal map with only XY components and move the channels. These are also known as "Grey Normal Maps" due their color.
  • CoD S/G/O (Blue Image) (Modern Warfare 2 Remastered): This will split the blue image from some Modern Warfare 2 Remastered images that contain a specular color map, gloss map, and occlusion map.
  • CoD Normal/Gloss/Occlusion (Infinite Warfare/Modern Warfare): This will split the NOG/NG image from Infinite Warfare/Modern Warfare that contain a normal map, gloss map, and occlusion map. It will also perform a proper conversion of the Hemi-Octahedron normal map to a standard tangent space normal map.
  • CoD Spec/Gloss (RGB/A) (Multiple CoDs): This will split the specular color map and gloss map from multiple CoD Games.
  • CoD Specular/Albedo (Infinite Warfare/Modern Warfare): This will split the fused specular color map and albedo map from Infinite Warfare/Modern Warfare, using the alpha channel as the mask.
  • CoD Specular/Albedo (World War II): This will split the fused specular color map and albedo map from World War II, using an image with the same name as the input image with _s at the end as the mask. For example: colormap_and_specimage.png the tool would expect colormap_and_specimage_s.png in the same folder.
  • XY Normal Map (BC5 Grey/Yellow w/ No Alpha) (Modern Games/Global): this will compute the Z (B channel) of a BC5 normal map with only XY components, also known as "Yellow Normal Maps" due their color. Note this is also used for Call of Duty: World War 2, MWR, etc., even though they are grey, they are XY normal maps.
  • CoD WW2 S/G/O (Green Image) (World War II): This splits World War II's green image that contains specular mask, occlusion, and gloss maps.
  • Direct Convert (Global): Simply converts the image to the provided format.
  • Split Color/Alpha (Global): Splits Color and Alpha into their own images.
  • Split All Channels (Global): Splits all channels into their own images.
  • Merge RGB/Alpha (Global): Merges an RGB Image with another Image to be the Alpha Mask. It uses an image with the same name as the given image + _a. For example: colormap.png the tool would expect colormap__a.png in the same folder.

You're free to write your own scripts, etc. but no support or documentation is provided for such. Just look at the provided scripts to get an idea of how it works.

You can modify the number of threads that GameImageUtil uses, by default it's set to your CPU's "Processor Count" (which includes cores + threads), note that both memory and cpu usuage will increase with higher thread counts.

License/Disclaimer

GameImageUtil is licensed under the General Public License 3.0, you are free to use it under the terms of the GPL, including editing it, etc. to extend it. GameImageUtil is distributed in the hope it will be useful to, but it comes WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, see the LICENSE file for more information.

To build GameImageUtil you can simply load the project and compile, libraries are precompiled and including in the source, it is recommended to use VS 2019 with .NET Framework 4.7.2 as it is what is used for the release builds.

Reporting Bugs

Bugs can be reported through the Github issues or through the Discord server.

Credits

  • raptroes: the sexy icon you all know you love

gameimageutil's People

Contributors

scobalula avatar yurannnzzz 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.