Blender Git Commit Log
Git Commits -> Revision eda377c
Revision eda377c by Gaia Clary (master) June 5, 2019, 10:42 (GMT) |
update Collada Importer: reworked export and import of Materials - added import of transparency and emission into principled BSDF Shader - added support for importing all default collada material parameters * diffuse * emission * index_of_refraction * shininess (mapped to BSDF Roughness) * reflectivity (mapped to BSDF Metallic) * transparency + transparent mapped to BSDF Alpha) * ambient (creates unconnected texture node) * specular (creates unconnected texture node) * reflective(creates unconnected texture node) - added support for exporting collada material parameters: * diffuse * emission * index_of_refraction * shininess (mapped to BSDF Roughness) * reflectivity (mapped to BSDF Metallic) * transparency + transparent mapped to BSDF Alpha) - prepared support for exporting the following parameters but currently commented out: * ambient (creates unconnected texture node) * specular (creates unconnected texture node) * reflective(creates unconnected texture node) Problem: For now we only allow export of principled BSDF based materials. I am not sure from where to get ambient, specular and reflective as those values are not included in the principled BSDF Shader (wip). |
Commit Details:
Full Hash: eda377c223cfc0460e3294c95771313f8d4388c3
Parent Commit: 98cea7e
Lines Changed: +241, -115
8 Modified Paths:
/source/blender/collada/BlenderTypes.h (+1, -0) (Diff)
/source/blender/collada/collada_utils.cpp (+70, -45) (Diff)
/source/blender/collada/collada_utils.h (+13, -5) (Diff)
/source/blender/collada/DocumentImporter.cpp (+15, -8) (Diff)
/source/blender/collada/EffectExporter.cpp (+41, -2) (Diff)
/source/blender/collada/EffectExporter.h (+9, -2) (Diff)
/source/blender/collada/Materials.cpp (+79, -39) (Diff)
/source/blender/collada/Materials.h (+13, -14) (Diff)
/source/blender/collada/collada_utils.cpp (+70, -45) (Diff)
/source/blender/collada/collada_utils.h (+13, -5) (Diff)
/source/blender/collada/DocumentImporter.cpp (+15, -8) (Diff)
/source/blender/collada/EffectExporter.cpp (+41, -2) (Diff)
/source/blender/collada/EffectExporter.h (+9, -2) (Diff)
/source/blender/collada/Materials.cpp (+79, -39) (Diff)
/source/blender/collada/Materials.h (+13, -14) (Diff)