Repository navigation
Description
Context
PBR scalars (roughness, metallic, base_color, ior, transmission,
clearcoat, emissive) are rendering parameters derived from
MaterialX source graphs. By our design principle, all
visual/rendering state belongs under .vis.
Current (2.x)
steel.properties.pbr.roughness # rendering scalar (wrong namespace)
steel.properties.pbr.normal_map # legacy texture path
steel.vis.textures["normal"] # mat-vis texture bytes
steel.vis.source_id # mat-vis pointerTarget (3.0)
# PBR is the primary interface — flattened on .vis
steel.vis.roughness # scalar
steel.vis.metallic # scalar
steel.vis.base_color # (r, g, b, a)
steel.vis.ior # derived from optical.refractive_index
steel.vis.textures["normal"] # baked PNG bytes
# MaterialX is the source/provenance — tucked under .vis.source
steel.vis.source # MaterialX graph (raw)
steel.vis.source.export(path) # write .mtlx + PNGs to disk
steel.vis.source.xml # raw XML string
# mat-vis pointers
steel.vis.source_id # "ambientcg/Metal032"
steel.vis.finishes # {"brushed": "...", ...}
steel.vis.discover() # search mat-vis indexWhy PBR flat on .vis, MaterialX under .vis.source
PBR metallic-roughness is a subset of what MaterialX can describe
(MaterialX also covers Phong, Disney BSDF, subsurface, volume,
procedural nodes, etc.). So PBR is derived FROM MaterialX, not a
sibling.
But 99% of consumers want PBR scalars + textures — that's the
common access path. Flattening PBR onto .vis directly keeps
the API simple. The MaterialX graph is provenance (where did this
come from), not the primary interface.
MaterialX source graph (in mat-vis git)
│
▼ bake (CI runner)
PBR scalars + flat PNG textures (in Parquet)
│
▼ fetch (vis client)
material.vis.roughness / .textures["normal"]
Physics → rendering bridge
ior derived from properties.optical.refractive_index,
transmission from properties.optical.transparency — these
derivations move into Vis initialization.
Breaking changes
material.properties.pbr.*→material.vis.*PBRPropertiesclass removed frompropertiespbr.*_mapfields removed (textures arevis.textures[...])- TOML
[material.pbr]→[material.vis] - ocp_vscode
is_pymatpath reads from.vis
Migration path
- 2.2.0: ship both namespaces, adapters read from both
- 2.3.0:
DeprecationWarningonproperties.pbraccess - 3.0.0: remove
properties.pbr,.visis the single source
Related
- mat-vis
mtlx/directory — MaterialX source files in git export_mtlx()adapter — becomesvis.source.export()- mat-vis#36 — reference client + adapters migration
Activity
feat: use pymat vis adapters for material rendering
feat: widen material type to accept pymat.Material with .vis
feat: Material.pbr uses vis adapters for mat-vis textures
data: migrate all 87 [pbr] TOML sections to [vis]
feat: 3.0 — vis is canonical for PBR scalars
feat: 3.0 — DeprecationWarning on [pbr] TOML + pbr={} kwarg
feat(2.3.0): DeprecationWarning on material.properties.pbr access
feat!: 3.0 — vis owns PBR, properties.pbr removed
build(deps): pin mat-vis-client >=0.4.0 for 3.0
Merge branch 'main' into feature/40-vis-cutover
fix(ci): SSoT mat-rs data via symlinks + lint cleanup for 3.0
feat!: 3.0 vis cutover — `properties.pbr` removed, `.vis` canonical, …
docs(changelog): restore rich 3.0.0 content from Unreleased
chore(main): release 3.0.0 (#53)
gerchowl commentedon Apr 18, 2026
Shipped as py-materials 3.0.0 on PyPI (2026-04-18, 18:40 UTC).
Pipeline: feature/40-vis-cutover → #52 → release-please #53 → tag v3.0.0 → release.yml → PyPI (38s end-to-end).
Migration story in docs/migration/v2-to-v3.md. CHANGELOG entry under [3.0.0].