Holusion / eCorpus

3D Explorer and interface
https://ethesaurus.holusion.com
3 stars 0 forks source link

Blender Export issues #36

Open ThibaultGuillaumont opened 1 year ago

ThibaultGuillaumont commented 1 year ago

Some export from blender have corrupted texture on import. This is compared to import to https://threejs.org/editor/

ThibaultGuillaumont commented 12 months ago

Hotfix : Python script to set all material with supported default values.

import bpy
mats = bpy.data.materials

for mat in mats:
     if hasattr(mat.node_tree, "nodes"):
        for node in mat.node_tree.nodes:
            if node.type == 'BSDF_PRINCIPLED':
                for input in node.inputs:
                    if input.name == 'Metallic':
                        input.default_value = 0
                    if input.name == 'Specular':
                        input.default_value = 0.5
                    if input.name == 'Specular Tint':
                        input.default_value = 0
sdumetz commented 7 months ago

Test again once https://github.com/Smithsonian/dpo-voyager/commit/44820eebc8d6ecc1956e198138127b2a5e63baf7 gets merged.