Description
Some properties like dispersion or opacityMap are not supported in py-materials or mat-vis
Problem Statement
I baked quite some materials from GPUOpen and ambientCG and the baking code of threejs-materials creates:
-
Scalar values
color
metalness
roughness
ior
clearcoat
transmission
dispersion
thickness
specularColor
specularIntensity
clearcoatRoughness
displacementScale
-
Textures
color
metalnes
roughness
norma
opacity
displacement
material.vis.to_threejs() currently returns
-
Scalar values
color
metalness
roughness
ior
transmission
clearcoat
emissive
-
Textures
map
metalnessMap
roughnessMap
normalMap
aoMap
displacementMap
emissiveMap
Missing properties:
opacityMap is missing (used e.g. for sheet metal with holes, "name": "Sheet Metal 001", "source": "ambientcg")
dispersion is missing ("name": "Plastic (Acrylic)", "source": "physicallybased"). The user needs to add thickness in order for dispersion being visible
Info
displacement and displacemantMap are ignored in build123d since CAD tessellation do not have sufficient vertices
Proposed Solution
Add them to py-materials (or mat-vis) and expose them with to_threejs()
Alternatives Considered
No response
Additional Context
No response
Impact
No response
Changelog Category
Added
Description
Some properties like
dispersionoropacityMapare not supported in py-materials or mat-visProblem Statement
I baked quite some materials from GPUOpen and ambientCG and the baking code of threejs-materials creates:
Scalar values
colormetalnessroughnessiorclearcoattransmissiondispersionthicknessspecularColorspecularIntensityclearcoatRoughnessdisplacementScaleTextures
colormetalnesroughnessnormaopacitydisplacementmaterial.vis.to_threejs()currently returnsScalar values
colormetalnessroughnessiortransmissionclearcoatemissiveTextures
mapmetalnessMaproughnessMapnormalMapaoMapdisplacementMapemissiveMapMissing properties:
opacityMapis missing (used e.g. for sheet metal with holes, "name": "Sheet Metal 001", "source": "ambientcg")dispersionis missing ("name": "Plastic (Acrylic)", "source": "physicallybased"). The user needs to addthicknessin order fordispersionbeing visibleInfo
displacementanddisplacemantMapare ignored in build123d since CAD tessellation do not have sufficient verticesProposed Solution
Add them to py-materials (or mat-vis) and expose them with
to_threejs()Alternatives Considered
No response
Additional Context
No response
Impact
No response
Changelog Category
Added