-
Notifications
You must be signed in to change notification settings - Fork 119
Material Maps
Since Ishiiiruka 436 support for normal mapping and phong lighting has been added. To Support this additional textures are required:
Depth Texture: deviation distance from the plane. Values greater than 127 (byte) are above the surface. Needed for displacement mapping.
-Name = <TextureID>.bump.extension
Normal Texture: normal map. Optional, if not present will be calculated from the bump texture.
-Name = <TextureID>.nrm.extension
Specular Texture : maps how polished is the surface of the material. A black (0) Texture will give as a result a opaque paper like material. White (255) will give a polished metallic like surface.
-Name = <TextureID>.spec.extension
Emissive Texture : maps materials that emits light. A color textures with the emissive pixels painted in the ligth color is used for this component.
-Name = <TextureID>.lum.extension
But adding all this textures will take a huge hit in memory usage so I pack them in a single texture with the following format:
Red Channel: Specular data 0-255 0=opaque 255=fully reflective specular exponent 64
Green Channel: Normal Y component unsigned (reduced from [-1.0 1.0] to [0.0 1.0])
Blue Channel: Bump map depth (reduced from [-1.0 1.0] to [0.0 1.0])
Alpha Channel: Normal X component unsigned (reduced from [-1.0 1.0] to [0.0 1.0])
This file has the .nrm sufix to make them compatible with raw normals to make testing easy.
But to make modders life a lot easy I developed a small tool you can get it here:
Ishiiruka-TextureEncoder https://goo.gl/STWPnB
This tool will read all the required textures from the source folder (including color textures that are required to test for size, format compatibility) and the output color/material texture will be stored with the same folder structure inside the destination folder. Please don't set source and destination to the same folder or your original textures will be destroyed. The tool is still an early beta so error reports and feature request are welcome. As a Plus the tooll will automatically generate mips for textures that don't have them, and can output compressed textures to reduce memory usage on the gpu.
Enjoy and please make the games look amazing.
List of supported Games (Strill a lot of games to be tested): Credits to rlaugh0095 for the testing
- Fragile Dreams-Full support
- Twilight Princess-Full Support
- Pikmin2-Full support
- Soul Calibur 2-Full Support
- Smash Bros brawl-Full Support
- Skyward Sword-Full support
- Luigi's Mansion-Full support
- Monster Hunter 3-Full Support
- Resident Evil 4-Full Support
- Fatal Frame:Mask of the full eclipse-Full Support
- Super Mario Galaxy (1/2)-Full Support
- Xenoblade Chronicles-Partial support (I haven't test much but I know I couldn't get anything in gaur plains to work, but I got cliffsides in colony 9 to work)
- Metroid Prime-Broken Support (only appears when you fire your arm cannon or in morph ball form