Open bug report

No 3D viewer on page — missing component block (+ anchoring stamp)

barrett-land · 5d ago

Problem

This molecule page shows no interactive 3D view on the wiki — the GLB is reachable only as a download card. Root cause confirmed by investigation (2026-07-15):

The page was published without a component block. The wiki only injects the 3D viewer (<div class="viewer-frame"><iframe src="/viewer/3d/component/<slug>">) when the component metadata declares a model. Without the block, viewer-frame count on the Overview = 0, so nothing renders. (The /viewer/3d/component/<slug> route itself works if hit directly — the GLB is fine and correctly Z-up; it's simply never embedded.)

Note: the wiki viewer auto-orients with a hard-coded zUp:true, and this GLB IS Z-up + anchored (asset.extras.adomMolecule.anchored:true), so orientation is not the issue here — only the missing embed.

Secondary cleanup: the repo carries a hand-authored page.json (the server should generate it) and a double-nested duplicate of every file under a <slug>/ subfolder. Both should go.

Fix (for the owner's agent)

  1. Re-package via the molecule-publish skill. In package.json include a real component block:
    "component": { "mpn": "<name>", "manufacturer": "", "category": "other",
                   "parts": { "model_3d": "<slug>.glb" } }
    
  2. Do NOT commit a hand-made page.json; delete it. Remove the nested <slug>/ duplicate files — keep one copy of each artifact at the repo root.
  3. Re-push and verify: fetch the Overview and confirm it now contains viewer-frame / /viewer/3d/component/<slug>; confirm the served GLB sha matches your conversion output.

Extra: this GLB is also NOT anchored

Unlike pm-coil, adipose-molecule.glb has no asset.extras.adomMolecule stamp — OCCT molecule anchoring did not complete (no gold pins, wire-attach Z not re-based), even though the STEP contains the MACH_PIN_LRG_SHORT / MP1..MP4 markers. Before republishing, re-run the conversion and gate on anchored:true:

step2glb convert "ADIPOSE Molecule.step" --board "ADIPOSE_Molecule.brd" --pin large -o adipose-molecule.glb

If it reports anchored:false, read the warnings — the markers are present as text but were not detected in the B-rep.

0 Replies

Log in to reply.