Skip to content

glTF: an element with a glass part is drawn in one alpha, as which part of a saved mesh is the glass is not read (#2109) #2112

Open

Description

@DrunkOnJava

#2109 draws a body made only of transparent materials see-through in its category's colour. A door, lamp or window with a glass part keeps one alpha for its whole body (Griffin, 2026-11-20): drawn at its glass's alpha, a door with a glass panel would look all glass, and which part of a saved mesh is the glass is not read.

The two routes read so far, both negative (on main at d089085b, every open model):

  • A saved part's own material. native_saved_mesh::Primitive::material_id is filled on the polymesh path only. Of the 635 doors, 2,486 light fixtures and 340 windows fix(ifc): a glTF body drawn whole whose materials are all transparent takes their alpha (#1812) #2109's first rule reached with their own mesh, no part names a material (44742141242, probe_2109_part_materials at 5efc1ed5).
  • A part's tag in its type's map. A family type's m_geomTag2MaterialId maps geometry tags to material ElementIds (RE-82, RE-203). None of the 212,216 tags (face_tag, m_GInfo.m_tag) on the parts of 3,682 family instances equals a key of the map of the symbol that draws each instance (44744309480, 34dab8b6). 196 of the 4,474 map entries read were not read as integers, and some maps are empty.

Both probes are kept as refs/archive/2026-11-20/measure-2109-parts.

What is not read:

  • whether a node above a face in the saved graphics (its solid, its geometry representation) carries the tag the type's map is keyed by, or a material of its own;
  • each part's render style (Primitive::render_style_id), and whether a style names a material;
  • the element's own type, where it differs from the symbol that draws it.

What this would give: a door's glass panel drawn see-through and its frame solid, as one body cannot show today.

Activity

  1. added
    area:ifc
    area:viewer
    priority:P3
    type:research
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:ifcarea:viewerpriority:P3type:research

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions