A ResoniteModLoader mod for Resonite Enables users to import their own sledge file format based assets.
Only partial support of *.vmt and *.vtf files for now
- Install ResoniteModLoader.
- Clone this Repository (Don't forget the submodules!)
- Implement the methods you need to for your project. Said methods are outlined in the comments.
- Build the ValveResourceFormat and Sledge2Resonite solutions
- Place your DLL's (Sledge2Resonite.dll, Sledge.Formats.dll, Sledge.Formats.Texture.dll) under "rml_mods".
This folder should be at
C:\Program Files (x86)\Steam\steamapps\common\Resonite\rml_mods
for a default install. You can create it if it's missing, or if you launch the game once with ResoniteModLoader. - Start the game!
- Install ResoniteModLoader.
- Get prebuild *.dlls from release page
- Place the DLL's (Sledge2Resonite.dll, Sledge.Formats.dll, Sledge.Formats.Texture.dll) under "rml_mods".
This folder should be at
C:\Program Files (x86)\Steam\steamapps\common\Resonite\rml_mods
for a default install. You can create it if it's missing, or if you launch the game once with ResoniteModLoader. - Start the game!
Drag and drop the file you want to import onto the Resonite window. The mod will try to do an in place conversion and spawn the result in front of you.
- *.vtf - Valve Texture Format https://developer.valvesoftware.com/wiki/Valve_Texture_Format
- *.vmt - Valve Material Type https://developer.valvesoftware.com/wiki/Material
- *.raw - color correction LUT's https://developer.valvesoftware.com/wiki/Color_Correction
- tintSpecular
- Applies the $color values as tint directly to the specular texture rgb pixels
- importRows
- Defines the number of texture quads on batch import per row
- generateTextureAtlas
- Checks if a *.vtf file contains multiple frames and tries to generate a single line sprite sheet
- If disabled, only the first frame will be imported
- SSBumpAutoConvert
- Checks the image flags for "SSBump" and applies a conversion (see "Borrowed Code")
- LUT import as linear
- import luts using the linear color profile
- Materials
- Currently all materials will be imported as pbs specular and specific shaders are not taken into account
- Textures
- Image flags inside the header are partially ignored
- We encountered a lot of texture files, with "broken" flags (e.g. albedo textures been flagged as normal map)
- Image flags inside the header are partially ignored
- Not all material settings are been utilized
- 2 and 4 way blend materials (e.g. terrain) will only import the first layer textures
- color splat material conversion is not implemented at this stage
- The color mask needs to be extracted and rebuild from the vertex colors of the displacement surfaces
- Specular color tints look weird
- This is a Resonite specific issue, since the tint doesn't only affect the reflective parts.
- Instead the rgb part of the specular is applied like a detail texture and will just be overlaid on top the albedo
Thanks go to these wonderful people
dfgHiatus |
ukilop |
marsmaantje |
- ssbumpToNormal-Win
- SSBumpmap to NormalMap conversion
- https://github.com/rob5300/ssbumpToNormal-Win