Four pin-only levels of detail (high, medium, low, super-low) #1
Adds four levels of detail (high, medium, low, super-low) of the pin alone, so the robot-arm and scaffold simulators can draw hundreds of these at super-low and promote close ones to high.
Why a new source: the page's main model is a demo scene with a board square around the part, not the part (adom/machinepinlargeshort#1). These levels come from the pin-only Fusion export, added at lod/source/MachinePin_Large_Short_Gold.glb. Nothing at the repo root changes, so the canonical -part model that the issue proposes can still replace both.
What changes:
lod/source/: the Fusion pin-only GLB that the levels are made from.lod/MachinePin_Large_Short_Gold/: four GLBs, four cached 400×300 previews and anadom/component-lod@1manifest.README.md: a "Levels of detail" section with the numbers and the widget.
Frame: metres, Z along the pin axis at the part's own Fusion datum. The millimetre data sits under a root node scaled 0.001.
| High | Medium | Low | Super-low | |
|---|---|---|---|---|
| Triangles | 723 | 700 | 246 | 220 |
| Draw calls | 1 | 1 | 1 | 1 |
Checks run:
- High matches the Fusion export within 1 µm.
- No board, pad, silkscreen or solder geometry in any level.
- No inverted triangles in any level.
- The manifest passes the widget's own checks (hashes, sizes, previews).
- I inspected every preview by eye.
- Not yet tested: a streaming LOD viewer.
Note on the source: MachinePin_Large_Short_Gold v75 is the Fusion tip, but it's a simplified single solid (723 triangles). The detailed v74 is on this page as machinepinlargeshort-mpn.glb (with the etched MPN). If you'd rather the levels follow v74, I can rebuild them from it.
Widget block, already in the README:
::adom-component-lod{src="/adom/machinepinlargeshort/render/lod/MachinePin_Large_Short_Gold/manifest.json"}
From the LOD pages thread for John's robot-arm simulator.
🤖 Generated with Claude Code
Diff Skip to comments
README.md+17@@ -67,3 +67,20 @@ The current hero adds separate nonphysical reference layers: teal dashed copper The footprint carries the Adom solder-ball layer (KiCad `User.9`, named `Adom.SolderBalls`; EAGLE/Fusion layer 101 `SolderBalls`): 54 balls in a ring on the 5.2 mm annular pad (ring radius 2.16 mm), jetted 300 um balls at 0.25 mm pitch per [john/adom-solder-ball-layer-standard](https://wiki.adom.inc/john/adom-solder-ball-layer-standard). Positions are listed per pad in `MachinePinLargeShort.solder-balls.json`. The older `MachinePinLargeShort.glb` insertion view still shows its earlier, coarser 28-ball ring.++## Levels of detail++Four levels of detail of the pin **alone**, for robot-arm, scaffold and probing simulators. A viewer loads super-low first and switches to more detail as you zoom in. They are made from the Fusion export in [`lod/source/`](lod/source/) (`MachinePin_Large_Short_Gold.glb`), not from the demo-scene GLB at the repo root ([#1](https://wiki.adom.inc/adom/machinepinlargeshort/issues/1)).++- **Frame:** metres, Z along the pin axis at the Fusion datum. The millimetre data sits under one root node scaled 0.001.+- **High:** the Fusion geometry, unchanged (within 1 µm).+- **Medium and low:** simplified with meshoptimizer.+- **Super-low:** stacked 12-gon prisms that follow the pin's radius along its axis.+- **Status:** candidate. Each level has been checked as a cached image. None has been tested yet in a viewer that streams levels.++| | High | Medium | Low | Super-low |+|---|---|---|---|---|+| Triangles | 723 | 700 | 246 | 220 |+| Draw calls | 1 | 1 | 1 | 1 |++::adom-component-lod{src="/adom/machinepinlargeshort/render/lod/MachinePin_Large_Short_Gold/manifest.json"}
lod/MachinePin_Large_Short_Gold/machinepinlargeshort-MachinePin_Large_Short_Gold-high.glbadded⋯ 1 unchanged line ⋯
lod/MachinePin_Large_Short_Gold/machinepinlargeshort-MachinePin_Large_Short_Gold-high.pngadded⋯ 1 unchanged line ⋯
lod/MachinePin_Large_Short_Gold/machinepinlargeshort-MachinePin_Large_Short_Gold-low.glbadded⋯ 1 unchanged line ⋯
lod/MachinePin_Large_Short_Gold/machinepinlargeshort-MachinePin_Large_Short_Gold-low.pngadded⋯ 1 unchanged line ⋯
lod/MachinePin_Large_Short_Gold/machinepinlargeshort-MachinePin_Large_Short_Gold-medium.glbadded⋯ 1 unchanged line ⋯
lod/MachinePin_Large_Short_Gold/machinepinlargeshort-MachinePin_Large_Short_Gold-medium.pngadded⋯ 1 unchanged line ⋯
lod/MachinePin_Large_Short_Gold/machinepinlargeshort-MachinePin_Large_Short_Gold-super-low.glbadded⋯ 1 unchanged line ⋯
lod/MachinePin_Large_Short_Gold/machinepinlargeshort-MachinePin_Large_Short_Gold-super-low.pngadded⋯ 1 unchanged line ⋯
lod/MachinePin_Large_Short_Gold/manifest.jsonadded+204@@ -0,0 +1,204 @@+{+ "schema": "adom/component-lod@1",+ "mpn": "Machine Pin Large Short (pin-only) MachinePin_Large_Short_Gold",+ "units": "metres",+ "upAxis": "Z",+ "frame": "MachinePin_Large_Short_Gold source frame, Z-up; source vertices under root node 'machinepinlargeshort-MachinePin_Large_Short_Gold-lod-root' scaled 0.001",+ "sourceToLevelScale": 0.001,+ "status": "candidate",+ "source": {+ "path": "lod/source/MachinePin_Large_Short_Gold.glb",+ "sha256": "0a66165a38882f7f3a4d0a1a30e0dc3264b260accd5581c5cb19d1e078428c64",+ "sizeBytes": 26672,+ "triangles": 723+ },+ "generator": "lod-tools/build.mjs (@gltf-transform 4, meshoptimizer); previews lod-tools/render.py",+ "levels": [+ {+ "level": "high",+ "path": "lod/MachinePin_Large_Short_Gold/machinepinlargeshort-MachinePin_Large_Short_Gold-high.glb",+ "sha256": "2f8fc921686f7b3bc7141a634531d772a7aa3cdbe6c7fe8d343708ac120b443d",+ "sizeBytes": 21672,+ "decodedBufferBytes": 20394,+ "triangles": 723,+ "primitives": 1,+ "drawCalls": 1,+ "materials": 1,+ "bounds": {+ "min": [+ -0.0024,+ -0.0023825,+ -0.01035+ ],+ "max": [+ 0.0024,+ 0.0023825,+ 0.0084+ ]+ },+ "boundsMm": [+ -2.4,+ -2.383,+ -10.35,+ 2.4,+ 2.383,+ 8.4+ ],+ "markingIncluded": false,+ "helperNodes": [],+ "extensions": [],+ "derivation": "source mesh, primitives joined per material (flatten, join, weld, dedup); geometry unchanged",+ "review": "candidate: cached preview inspected; not qualified in a streaming LOD viewer",+ "preview": {+ "path": "lod/MachinePin_Large_Short_Gold/machinepinlargeshort-MachinePin_Large_Short_Gold-high.png",+ "sha256": "78355b89a8cba74f4121ced42e011f96c2af02f1563627f1751f922d881f993b",+ "sizeBytes": 7106,+ "width": 400,+ "height": 300,+ "view": "iso front-left-up, framed on high (lod-tools/render.py)",+ "sourceLevelSha256": "2f8fc921686f7b3bc7141a634531d772a7aa3cdbe6c7fe8d343708ac120b443d"+ }+ },+ {+ "level": "medium",+ "path": "lod/MachinePin_Large_Short_Gold/machinepinlargeshort-MachinePin_Large_Short_Gold-medium.glb",+ "sha256": "7a7878ada43a976784c4cc80bc1e69fec91227453e27b24551df2f3eb30e510d",+ "sizeBytes": 20164,+ "decodedBufferBytes": 18888,+ "triangles": 700,+ "primitives": 1,+ "drawCalls": 1,+ "materials": 1,+ "bounds": {+ "min": [+ -0.0024,+ -0.0023825,+ -0.01035+ ],+ "max": [+ 0.0024,+ 0.0023825,+ 0.0084+ ]+ },+ "boundsMm": [+ -2.4,+ -2.383,+ -10.35,+ 2.4,+ 2.383,+ 8.4+ ],+ "markingIncluded": false,+ "helperNodes": [],+ "extensions": [],+ "derivation": "meshopt simplify of high, ratio target 0.35, error 0.0008 of mesh extent",+ "review": "candidate: cached preview inspected; not qualified in a streaming LOD viewer",+ "preview": {+ "path": "lod/MachinePin_Large_Short_Gold/machinepinlargeshort-MachinePin_Large_Short_Gold-medium.png",+ "sha256": "78355b89a8cba74f4121ced42e011f96c2af02f1563627f1751f922d881f993b",+ "sizeBytes": 7106,+ "width": 400,+ "height": 300,+ "view": "iso front-left-up, framed on high (lod-tools/render.py)",+ "sourceLevelSha256": "7a7878ada43a976784c4cc80bc1e69fec91227453e27b24551df2f3eb30e510d"+ }+ },+ {+ "level": "low",+ "path": "lod/MachinePin_Large_Short_Gold/machinepinlargeshort-MachinePin_Large_Short_Gold-low.glb",+ "sha256": "c11bbaf9ae80c8581c20209610076192510d08a34d001eb6efe0ccb1b539838c",+ "sizeBytes": 10404,+ "decodedBufferBytes": 9132,+ "triangles": 246,+ "primitives": 1,+ "drawCalls": 1,+ "materials": 1,+ "bounds": {+ "min": [+ -0.0024,+ -0.0023825,+ -0.01035+ ],+ "max": [+ 0.0024,+ 0.0023825,+ 0.0084+ ]+ },+ "boundsMm": [+ -2.4,+ -2.383,+ -10.35,+ 2.4,+ 2.383,+ 8.4+ ],+ "markingIncluded": false,+ "helperNodes": [],+ "extensions": [],+ "derivation": "meshopt simplify of high, ratio target 0.10, error 0.006 of mesh extent",+ "review": "candidate: cached preview inspected; not qualified in a streaming LOD viewer",+ "preview": {+ "path": "lod/MachinePin_Large_Short_Gold/machinepinlargeshort-MachinePin_Large_Short_Gold-low.png",+ "sha256": "63fb20e79d2eb7a68df37a925f02fbb1f7dcc0cbc14820a5096151fa5bbb9d61",+ "sizeBytes": 9430,+ "width": 400,+ "height": 300,+ "view": "iso front-left-up, framed on high (lod-tools/render.py)",+ "sourceLevelSha256": "c11bbaf9ae80c8581c20209610076192510d08a34d001eb6efe0ccb1b539838c"+ }+ },+ {+ "level": "super-low",+ "path": "lod/MachinePin_Large_Short_Gold/machinepinlargeshort-MachinePin_Large_Short_Gold-super-low.glb",+ "sha256": "70bf34e92d9d9b69b7ec4a3e1584071c51f0eb8c33a3c6d310144e2b3d1f0a1c",+ "sizeBytes": 18744,+ "decodedBufferBytes": 17520,+ "triangles": 220,+ "primitives": 1,+ "drawCalls": 1,+ "materials": 1,+ "bounds": {+ "min": [+ -0.0024,+ -0.0024,+ -0.01035+ ],+ "max": [+ 0.0024,+ 0.0024,+ 0.0084+ ]+ },+ "boundsMm": [+ -2.4,+ -2.4,+ -10.35,+ 2.4,+ 2.4,+ 8.4+ ],+ "markingIncluded": false,+ "helperNodes": [],+ "extensions": [],+ "derivation": "lathe profile: stacked 12-gon prisms following the radius along Z, one primitive, top-surface colour (5 stacked 12-gon prisms)",+ "review": "candidate: cached preview inspected; not qualified in a streaming LOD viewer",+ "preview": {+ "path": "lod/MachinePin_Large_Short_Gold/machinepinlargeshort-MachinePin_Large_Short_Gold-super-low.png",+ "sha256": "dd778a20f0d2c9dcb4b48e0f93f937c858e33fe5cdf73f50a9510ad47bd4b6cf",+ "sizeBytes": 6421,+ "width": 400,+ "height": 300,+ "view": "iso front-left-up, framed on high (lod-tools/render.py)",+ "sourceLevelSha256": "70bf34e92d9d9b69b7ec4a3e1584071c51f0eb8c33a3c6d310144e2b3d1f0a1c"+ }+ }+ ],+ "hints": [+ "All levels share the source frame; place them exactly as the source GLB.",+ "Drop node 'machinepinlargeshort-MachinePin_Large_Short_Gold-lod-root' (scale 0.001) to get the source units back.",+ "Super-low is one primitive: load it first, promote on screen size.",+ "Pin-only: the Fusion export MachinePin_Large_Short_Gold_v75.glb (lod/source/, Adom hub, Main / Machine Pins), not the page's demo-board GLB. Z is the pin axis at the part's own Fusion datum; millimetre source under root scale 0.001."+ ]+}
lod/source/MachinePin_Large_Short_Gold.glbadded⋯ 1 unchanged line ⋯
Comments
Log in to comment.
No comments yet.