Closed bug report

3D viewer: every part on a registry-built molecule hovers as "MP1"

Ray · ·closed by Colby Knox

adom-wiki 1.8.0 · registry pipeline molecule/9, circuit route · seen 2026-10-26

What happens. On a molecule page whose model the registry built, the 3D viewer's hover label reads MP1 for every part. The screenshot shows it hovering the WP machine contact (MC4) on ray/molecule-hg24c02m5 (registry build 65438).

Expected. The hovered part's own name: MP1-MP4 for machine pins, MC1-MC5 for contacts, U1 and C1 for the parts. The model carries those names, as below.

What the served GLB contains (ray/molecule-h24c02s, build 65412; hg24c02m5 has the same layout):

scene roots: [MoleculeFrame, Adom.Board]
MoleculeFrame  translation (0.004, 0.004, 0.0021), children:
  MP1 MP2 MP3 MP4   -> all use mesh 0 (named "MP1")
  MC1 .. MC5        -> all use mesh 1 (named "MC1")
  U1 -> mesh 2 "U1", C1 -> mesh 3 "C1"
Adom.Board     mesh 4, at the root (extras adomRole: board)

So the node names are correct, and the four pins and five contacts each share one instanced mesh. Labelling by mesh name (or by the first node using a mesh) would explain MP1 on the pins, but not MP1 on a contact, whose mesh is "MC1". So the label may come from something else that changed in the registry output, such as the new MoleculeFrame offset or the board moving to its own root. Please check how the viewer resolves a hovered primitive to a node name on this layout.

Context. The source GLB we published before the registry had the same instancing, with the board inside MoleculeFrame and no frame offset. Companion issue: adom/wiki#242 (the registry repaints MP/MC and changes the pad finish).

registry-hg24c02m5-viewer

3 Replies

Colby Knox ·

@AdityaAngajala context from reading the code. I couldn't open Ray's pages (they're private to his account), so this is from the pipeline and the viewer, not from his files.

Why the viewer shows MP1 for every part. The 3D tab doesn't draw the GLB Ray inspected. viewerRegistryModel (lib/registry/routes.js) serves the page's web pointer when there is one, and molecule/9 writes web with the optimizer's render profile (lib/registry/pipelines/molecule/9/main.py, the ('web','render') step). Ray's layout (MP1-MP4 and MC1-MC5 as their own nodes sharing two meshes) is the canonical model file, which keeps every node.

The render profile (vendor/glb-optimization/optimizer/optimize.mjs, groupFlatten, then the join) flattens every node that isn't a group root into its nearest group root and joins it there by material. A group root is a node with extras, an Adom. node, or a board-layer name. The machine pins stay one mesh each only until asset.extras.adomBoardLook.pinRims says normalize already rounded them, and these files carry board-look 0.6 / normalize 0.9.1. MP and MC nodes have no extras, and #242's repaint puts every pin and contact on the one AdomMachineGold. So in the render copy they all join into a single mesh named after the first part in it, MP1.

The wiki's 3D route defaults to tooltips "all", so a hover with no extras.tooltip falls back to the mesh's name, and every gold part says MP1. Ray's point that a contact's mesh is "MC1" is true of the canonical file. In the render copy it was joined away.

Fix options, your call:

  1. Keep machine pins and contacts addressable in the render profile: treat names like ^M[PC]\d+$ (or nodes the molecule program tags, for example extras.adomRole: "machine-pin" / "contact") as group roots, so they keep a node each.
  2. Have the molecule program write extras.tooltip on each MP/MC node (and U1, C1), which also makes them group roots, so the hover reads correctly with no viewer change.
  3. If #242's uniform gold is not intended, keeping the source materials alone would stop pins and contacts merging with each other, though the four pins would still join under one name.

Option 2 is the smallest and survives any future join rule.

AdityaAngajala ·

This is fixed: every part gets its own hover label from a part number stored on its vertices, so no tagging is needed. It ships with the next pipeline version, and pages pick it up when they're rebuilt. More on #242.

Colby Knox closed this ·

Log in to reply.