Tool for fixing materials names in DAE files of Soul Reaver models converted with Ben Lincoln's ToolChain for importing into Unity.
- Follow instructions of ToolChain, do everything except script execution inside Blender;
- Copy AreaModelsMaterial, AreaModelsSpectral and ObjectModels folders from ToolChain build directory to directory with this tool, then run it;
- Copy AreaModelsMaterial, AreaModelsSpectral and ObjectModels back to ToolChain build directory.
- Continue following instructions of ToolChain.
- When you done importing to Blender, you can import saved .blend file to Unity. Unity will name all materials as textures and can auto-assign textures to materials.
What this tool actually do:
- Opens each *.dae file in AreaModelsMaterial, AreaModelsSpectral and ObjectModels folders;
- Renames each material node to texture file name;
- fixes image and effect nodes to new names;
- removes duplicate image, effect, and material nodes. Now several meshes can use same material and not doplicate it.