You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
area:doctimeline, components, parameters, namingarea:renderGPU, viewport drawing, materials and the rendererenhancementNew feature or requestpriority:P2feature or improvement on the normal path
Need to add a materials Library in order to be able to set and change a part's Material properties.
This is an important pillar of the program as it will allow for accurate weights and use in FEA.
Also nice to add an Appearance Library to allow for models to be more visually customisable.
I am starting a shared foundation proposal for #785, #786 and #787, in separate reviewable phases. Current main already has design-defined physical materials (material.create/edit/delete), mass properties, appearance overrides and generated standard fasteners; I will build on those paths.
The first PR will document the offline catalog contract: stable identities and revisions, built-in/project/user packs, explicit conflicts, provenance/licensing, and definitions copied into the design so external catalog updates cannot silently alter saved parts. Subsequent PRs can add bounded pack loading and import/export, the library UI, wood mapping, and component families independently.
For #785, physical properties and visual appearances remain separate. Density alone must not advertise FEA readiness. Property records need explicit units, material grade/condition, provenance and missing-property handling. Public access to a handbook or database is not sufficient permission to redistribute its contents; each shipped dataset or asset needs a reviewed license and ATTRIBUTION.md entry.
I have read the current project instructions and documentation; the gitignored private plan/ documents are unavailable in this checkout. This is preparatory work and does not close any of the three issues.
The phase-0 proposal is ready for review in #792: shared bundled/project/user catalogs, stable revisions, copied design definitions, source/license review, and phased acceptance gates. It is documentation only; pack loading and the material/appearance UI remain later implementation PRs. Local full CI found one reproducible taper-volume failure in unchanged kernel code; the PR records the exact result rather than claiming a green full run. Remote documentation checks passed on b9c9200 (Select checks, Format and repository checks, ci). Native jobs were skipped by the workflow for this docs-only diff. The PR is open and mergeable, awaiting maintainer review.
The Poly Haven suggestion and active render work are consolidated in #792 (comment). The plan now includes texture_set and environment_hdri kinds, per-resource provenance/license, offline design-owned definitions, a credited opt-in provider browser, explicit budgets and native/web acceptance gates. Physical material data remain separate from visual textures.
It reuses #667/#706/#800 and coordinates with HDRI/PBR #813; the latter's 16 MiB / 2048x1024 Radiance HDR limits take precedence. Individual render PR checks are green, but integration conflicts remain. The shared plan has also been posted in #620/#813 and the render PR threads. This is a feasibility/planning update, not a claim of a working pack importer or completed renderer.
A concrete starter-pack follow-up is now tracked in #1722 / draft #1726: 40 illustrative presets (34 opaque choices and six disabled optical recipes), preserving the legacy library and physical properties. Textured wood remains a separate integration gate described in the current resource/renderer coordination.
For that gate we verified official metadata for Black Oak Veneer by Jenelle van Heerden (nominal 1×1 m) and Wood Planks by Amal Kumar (approximately 1.5×1.5 m). These are provider visual dimensions, not engineering measurements or material grades. An existing original Black Oak 1k diffuse PNG matches the provider's current MD5; it can be reused with its recorded SHA-256 rather than downloaded again. The other candidate and roughness/normal maps have only been selected in metadata.
Poly Haven assets are CC0. Its current API terms separately allow free commercial access, require an identifying application User-Agent or Referer, and visible source credit when using the live API. The requested plain “Powered by Poly Haven” credit fits that boundary; website previews/logos are separate from the CC0 asset files.
Start with one 1k albedo and verified color-profile handling. Roughness and OpenGL normal maps need their own data-role consumers. Original bytes, author/source/license, actual download hashes and declared physical repeat belong in the resource provenance. Current HDR tests use explicit sRGB/D65 synthetic fixtures; generic Poly Haven HDR compatibility still requires authoritative source-color information, not an invented PRIMARIES header. No provider loader, new textured raytrace image or completed pack importer is claimed by this metadata selection.
Proposal: a material table for sheet metal shops, in small pieces, starting with a manager inside the Physical Material dialog.
I work in a sheet metal shop and use SolidCraft for parts we cut and bend. I'd like to help with the materials side of this issue. Here is what we need, what is already there, and a plan in small pieces. I'd like your view before I go past the first piece.
What a shop needs
One table of materials, defined once and there in every design.
A manager that opens without selecting bodies: browse, create, duplicate, edit and delete materials. Assigning to bodies is one action in it.
Material properties in one place: density, modulus of elasticity, Poisson's ratio, yield stress, elongation %, thermal conductivity, thermal expansion, specific heat, a description, the 3D look and, later, the section fill style.
Sheet metal data beside the material: gauges, K-factor (also called the neutral factor), bend allowance and bend deduction, and the equations behind them.
In the words of the shop: "for a library of the application a material table would be better, so they can apply in there and then apply the material from the top level. Right-clicking the bodies doesn't make sense in a workflow manner."
What SolidCraft already has
The Physical Material dialog (Manage › Material) with New, Duplicate and Edit, and the material.* commands.
An engineering card per material: elasticity, strengths, thermal properties, each with its source and conditions.
The top node's right-click menu: Design › Physical Material assigns to every body in the design. A component's menu has the same under Component.
What is missing for a shop: a view of all materials at once, a way to work on materials with no bodies selected, elongation % and a description, and a link from a sheet metal rule to a physical material.
First piece: a material manager inside the existing dialog
I have built this locally (not pushed yet). It adds no command, no stored data and no format change.
Opened with nothing selected, Physical Material shows an "All materials" table: name, family, density (g/cm³), E (GPa) and yield (MPa). Unknown values show a dash, not 0.
A "Show" filter: All, In this design, Built-in. Hovering a row says where the material comes from, as the libraries plan asks ("source shown"). A user library can become a fourth value.
Clicking a row chooses that material, like the drop-down does. New, Duplicate, Edit and a new Delete act on it. Delete works only for a material of this design that no body uses, and it is one undo step.
Opened with bodies selected, the dialog looks as before: the table starts folded, and OK assigns as it does today.
┌ PHYSICAL MATERIAL ─────────────────────────────┐
│ Bodies [ nothing selected ] │
│ Material [ Shop sheet ▾] │
│ [New] [Duplicate] [Edit] [Delete] │
│ ▾ All materials (15) │
│ Show [ All ▾ ] │
│ Material Family ρ g/cm³ E GPa Yield MPa│
│ Aluminum — 2.7 — — │
│ ▌ Shop sheet Metal 2.68 70.3 193 │
│ Steel — 7.85 — — │
│ Density 2.68 g/cm³ │
│ ▸ Properties │
└─────────────────────────────────────────────────┘
It stays clear of #12419 (khanahmad4527's card fix in the same file): different functions and a different place in the test file.
Later pieces (each its own issue and PR, after your answer)
Elongation at break and a description on a material. Both change the saved format, one pending format file each.
Bend equations shown in Sheet Metal Rules, next to the Unfold choice: bend allowance, bend deduction, setback and K-factor worked through with the rule's numbers.
A sheet metal rule linked to a physical material, not only a label, so mass and properties follow the rule's material.
No change to how a material is assigned, or to the top node's menu.
Questions for the maintainers
Is a table inside Physical Material the right home for the manager, or would you rather the dialog become a manager with Assign as a button?
Delete is refused while a body uses the material. Should it instead offer a replacement material (the command already takes replace)?
Which card values belong in the table? I picked E and yield; thermal values stay in the card view.
Elongation at break: the card is strict, so an older release may not read a card that has it. Should new properties go in the card (schema 1, a new kind) or somewhere older releases skip safely?
For linking a rule to a material: name or a stable id? The libraries plan prefers stable ids for library entries.
Hi @Leocrydis, thank you for this, and welcome! It is great to have a sheet metal shop's view on materials.
The materials manager is planned in #12982 (draft #19614), so let's merge the two together there. The plan is:
A Material Library window, with a Materials tab and an Appearances tab. It opens with nothing selected. It lists every library (the built-in SolidCraft library, My Library and shared folders) and shows where each material comes from. It has search across all libraries, and New, Duplicate, Edit, Delete and Copy to another library.
The Physical Material dialog stays the place to assign. Its list shows "In this design" first, then each library, and a "Manage libraries…" button opens the window.
One manager means one place to learn, so we'd rather not have a second table inside Physical Material. Your table and its Show filter fit the window's Materials tab very well. If you'd like to build that part with us when the library pieces land, that would be great. The window's UI is @Nathan-Dane's area, so he will have the last word on its look.
On your later pieces:
Elongation at break and a description: the library plan proposes both, in one card format change with the other new properties (proof stress, hardness and others), not one change each.
A sheet metal rule linked to a physical material: yes, please, by a stable id rather than by name. Library entries already keep their id when they are edited, so a link by id survives a rename.
One more thing for the table work, @Leocrydis: please build it on the UI kit's existing table code, the same one we use for the drawing tables such as the parts list and the revision table. That is ui_kit::table_custom with ui_kit::Column in crates/ui-kit/src/table.rs, and ui_kit::Grid in crates/ui-kit/src/grid.rs for editable cells. It already has flexible and draggable column widths, a frozen first column, sideways scrolling and keyboard editing, and the configurations table in crates/ui-egui/src/configurations_ui.rs is a good example to follow. Then the materials table looks and behaves like every other table in SolidCraft.
Thanks @CamWight, that works for me, and one manager is the better way.
I won't open a PR for the table I built inside Physical Material. I'll keep it on my fork only as reference for the logic (the Show filter, create, duplicate, edit, delete).
When the Material Library window is there, I'd like to build the table in its Materials tab with you. I'll build it on ui_kit::table_custom and ui_kit::Column, with ui_kit::Grid for editable cells, following configurations_ui.rs, so it behaves like the other tables. @Nathan-Dane decides the look.
I'll leave elongation and the description to your card format change, and link a sheet metal rule to a material by id when that part comes.
Bend equations, a fill style per material and custom bend formulas: I'll open each as its own issue when the library is far enough along.
I'm following #19614, and yes please, ping me when there is something to test on shop parts.
For the Appearances side of this: I've written up a proposal for appearance graphs in #20306. It's one optional way to describe a finish (brushed metal, coated plastic, glass and so on) as a small graph that the viewport and the GPU renderer draw the same way. Plain colours and the existing PBR values stay as they are.
It's meant to fit the Material Library plan in #12982 / #19614: a graph look would just be another entry in the Appearances tab, stored and shared like the others, so it doesn't need anything extra from the library window. #20307 does the same for render studios, so lighting setups become data you can duplicate and share.
Happy to adjust either to whatever the library ends up looking like. Feedback welcome.
area:doctimeline, components, parameters, namingarea:renderGPU, viewport drawing, materials and the rendererenhancementNew feature or requestpriority:P2feature or improvement on the normal path
Activity
selun3 commentedon Oct 13, 2026
I am starting a shared foundation proposal for #785, #786 and #787, in separate reviewable phases. Current main already has design-defined physical materials (material.create/edit/delete), mass properties, appearance overrides and generated standard fasteners; I will build on those paths.
The first PR will document the offline catalog contract: stable identities and revisions, built-in/project/user packs, explicit conflicts, provenance/licensing, and definitions copied into the design so external catalog updates cannot silently alter saved parts. Subsequent PRs can add bounded pack loading and import/export, the library UI, wood mapping, and component families independently.
For #785, physical properties and visual appearances remain separate. Density alone must not advertise FEA readiness. Property records need explicit units, material grade/condition, provenance and missing-property handling. Public access to a handbook or database is not sufficient permission to redistribute its contents; each shipped dataset or asset needs a reviewed license and ATTRIBUTION.md entry.
I have read the current project instructions and documentation; the gitignored private plan/ documents are unavailable in this checkout. This is preparatory work and does not close any of the three issues.
selun3 commentedon Oct 13, 2026
The phase-0 proposal is ready for review in #792: shared bundled/project/user catalogs, stable revisions, copied design definitions, source/license review, and phased acceptance gates. It is documentation only; pack loading and the material/appearance UI remain later implementation PRs. Local full CI found one reproducible taper-volume failure in unchanged kernel code; the PR records the exact result rather than claiming a green full run. Remote documentation checks passed on b9c9200 (Select checks, Format and repository checks, ci). Native jobs were skipped by the workflow for this docs-only diff. The PR is open and mergeable, awaiting maintainer review.
selun3 commentedon Oct 13, 2026
The Poly Haven suggestion and active render work are consolidated in #792 (comment). The plan now includes texture_set and environment_hdri kinds, per-resource provenance/license, offline design-owned definitions, a credited opt-in provider browser, explicit budgets and native/web acceptance gates. Physical material data remain separate from visual textures.
It reuses #667/#706/#800 and coordinates with HDRI/PBR #813; the latter's 16 MiB / 2048x1024 Radiance HDR limits take precedence. Individual render PR checks are green, but integration conflicts remain. The shared plan has also been posted in #620/#813 and the render PR threads. This is a feasibility/planning update, not a claim of a working pack importer or completed renderer.
selun3 commentedon Oct 16, 2026
A concrete starter-pack follow-up is now tracked in #1722 / draft #1726: 40 illustrative presets (34 opaque choices and six disabled optical recipes), preserving the legacy library and physical properties. Textured wood remains a separate integration gate described in the current resource/renderer coordination.
For that gate we verified official metadata for Black Oak Veneer by Jenelle van Heerden (nominal 1×1 m) and Wood Planks by Amal Kumar (approximately 1.5×1.5 m). These are provider visual dimensions, not engineering measurements or material grades. An existing original Black Oak 1k diffuse PNG matches the provider's current MD5; it can be reused with its recorded SHA-256 rather than downloaded again. The other candidate and roughness/normal maps have only been selected in metadata.
Poly Haven assets are CC0. Its current API terms separately allow free commercial access, require an identifying application User-Agent or Referer, and visible source credit when using the live API. The requested plain “Powered by Poly Haven” credit fits that boundary; website previews/logos are separate from the CC0 asset files.
Start with one 1k albedo and verified color-profile handling. Roughness and OpenGL normal maps need their own data-role consumers. Original bytes, author/source/license, actual download hashes and declared physical repeat belong in the resource provenance. Current HDR tests use explicit sRGB/D65 synthetic fixtures; generic Poly Haven HDR compatibility still requires authoritative source-color information, not an invented
PRIMARIESheader. No provider loader, new textured raytrace image or completed pack importer is claimed by this metadata selection.Leocrydis commentedon Nov 20, 2026
Proposal: a material table for sheet metal shops, in small pieces, starting with a manager inside the Physical Material dialog.
I work in a sheet metal shop and use SolidCraft for parts we cut and bend. I'd like to help with the materials side of this issue. Here is what we need, what is already there, and a plan in small pieces. I'd like your view before I go past the first piece.
What a shop needs
In the words of the shop: "for a library of the application a material table would be better, so they can apply in there and then apply the material from the top level. Right-clicking the bodies doesn't make sense in a workflow manner."
What SolidCraft already has
material.*commands.docs/book/src/dev/libraries.md(docs: propose extensible material, appearance and component libraries #792): bundled, project and user scopes; a design keeps a copy of what it uses.What is missing for a shop: a view of all materials at once, a way to work on materials with no bodies selected, elongation % and a description, and a link from a sheet metal rule to a physical material.
First piece: a material manager inside the existing dialog
I have built this locally (not pushed yet). It adds no command, no stored data and no format change.
It stays clear of #12419 (khanahmad4527's card fix in the same file): different functions and a different place in the test file.
Later pieces (each its own issue and PR, after your answer)
Out of scope
Questions for the maintainers
replace)?CamWight commentedon Nov 20, 2026
Hi @Leocrydis, thank you for this, and welcome! It is great to have a sheet metal shop's view on materials.
The materials manager is planned in #12982 (draft #19614), so let's merge the two together there. The plan is:
On your later pieces:
Thank you again. Your shop needs are in the plan now (see #12982).
CamWight commentedon Nov 20, 2026
One more thing for the table work, @Leocrydis: please build it on the UI kit's existing table code, the same one we use for the drawing tables such as the parts list and the revision table. That is
ui_kit::table_customwithui_kit::Columnincrates/ui-kit/src/table.rs, andui_kit::Gridincrates/ui-kit/src/grid.rsfor editable cells. It already has flexible and draggable column widths, a frozen first column, sideways scrolling and keyboard editing, and the configurations table incrates/ui-egui/src/configurations_ui.rsis a good example to follow. Then the materials table looks and behaves like every other table in SolidCraft.Leocrydis commentedon Nov 20, 2026
Thanks @CamWight, that works for me, and one manager is the better way.
ui_kit::table_customandui_kit::Column, withui_kit::Gridfor editable cells, followingconfigurations_ui.rs, so it behaves like the other tables. @Nathan-Dane decides the look.I'm following #19614, and yes please, ping me when there is something to test on shop parts.
DAmesberger commentedon Nov 23, 2026
For the Appearances side of this: I've written up a proposal for appearance graphs in #20306. It's one optional way to describe a finish (brushed metal, coated plastic, glass and so on) as a small graph that the viewport and the GPU renderer draw the same way. Plain colours and the existing PBR values stay as they are.
It's meant to fit the Material Library plan in #12982 / #19614: a graph look would just be another entry in the Appearances tab, stored and shared like the others, so it doesn't need anything extra from the library window. #20307 does the same for render studios, so lighting setups become data you can duplicate and share.
Happy to adjust either to whatever the library ends up looking like. Feedback welcome.