[MUA1] Convert Normal Map Color Between 2006 PC/PS3 & 2016/Xbox 360

Started by LarsAlexandersson, July 13, 2022, 08:05PM

Previous topic - Next topic
July 13, 2022, 08:05PM Last Edit: October 04, 2022, 07:43PM by LarsAlexandersson
    So. Some of you want to switch normal map colors between these 2 versions right?

    2006 can extract the normals, while 2016 cannot & needs extra work to recreate them (barring DLC characters' mannequins). However, you can still get MUA1 DLC normal textures from the current OCP Pack (most thanks to UltraMegaMagnus) via IGBConverter provided by akyny2.

    1. Open Photoshop

    2. Compare the RGBA between them. See Picture Below


  • DXT3: 2006 PC/PS3
    DXT11: 2016/Xbox 360
[/size]

[/list]

Differences:

    * Only Green Channel Remains the same in all formats
    * DXT3 Red Channel = DXT11 Alpha Channel
    * DXT11 Blue Channel requires copying the original colored RGB channel with settings above, but NOT too bright.
    * DXT3 Red & Blue are Blank
Call me Lars. I'm Power Cosmic no more.

"Trying to solve mysteries of modding here"

My Progress:
http://marvelmods.com/forum/index.php/topic,4671.0.html

Feel free to mod my releases, as long you credit me:
http://marvelmods.com/forum/index.php/topic,4488.0.html

Alternative way for those that don't have Photoshop.

Based on this article: https://steamcommunity.com/app/1840/discussions/0/3276824488721253491/

The article mentions methods with GIMP, but if it's at all possible, the process is a pain in the ass. Your best bet with GIMP currently is using a white blue channel. You can use the same calculation as below by using math plugins (but implementing these in a script might not be possible).


With ImageMagick (available as app and portable tool) you have a command line tool that can convert the textures with a single command. You can write a batch file to make this even faster.

The command is:
magick <input-file> -channel R -fx A -channel B -fx "sqrt(1-((2*R-1)^2+(2*G-1)^2))/2+0.5" -alpha off -alpha on <output-file>
This command works if ImageMagick is installed or if magick.exe is in the current folder (or same folder as the batch).

There are many tutorials and videos about how to write commands and batch files. The construction of this command is:
program (magick) --- input file --- options --- output file

program: This can be "magick" or the full path to the .exe. If ImageMagick is installed, this can be "magick".
input file: full path to the green texture or name and extension if it's in the current folder (or same folder as the batch)
options: -channel R -fx A -channel B -fx "sqrt(1-((2*R-1)^2+(2*G-1)^2))/2+0.5" -alpha off -alpha on
output file: full path to the new texture (which will be the blue one) or name and extension to create it in the current folder (or same folder as the batch)