← All Pull Requests

Mark Basic3dView retired; point to the Adom viewer #1

Open opened by AdityaAngajala

Marks Basic3dView as retired. It ran inside the Adom Viewer (gallia), which was removed in May 2026, so its MCP tool av_basic_3d_display no longer exists. SKILL.md and README.md now say so and carry the shared "use the Adom viewer" block, so an agent that picks this skill gets sent to the current viewer.

The HTML viewers and the 13 MB adom-3d-viewer.min.js are left on the page. Deleting them is a separate call for the page owner.

This is part of consolidating the 3D viewers: Adom has one viewer library (adom/adom-3d-viewer, source on GitHub adom-inc/adom-3d-viewer-babylon9), and the skills that tell agents to copy an old bundle or start from the removed gallia/viewer are where new copies come from. The same short "use the Adom viewer" block now goes into each skill that covers viewers.

After merging, publish a new version of the skill so agents pick it up.

🤖 Generated with Claude Code

Diff Skip to comments

--- a/SKILL.md+++ b/SKILL.md@@ -1,95 +1,18 @@ --- name: basic-3d-viewer-description: Use when the user asks to "show GLB in basic viewer", "show me the raw 3D", "basic 3D view", "show Basic3dView", "compare 3D viewers", "test GLB rendering", "display GLB without fixups", or wants a minimal 3D viewer that renders GLB files exactly as-is without material fixups, overlays, pad highlighting, or camera tours.+description: Retired. Basic3dView ran inside the Adom Viewer (gallia), which was removed in May 2026, so its MCP tool `av_basic_3d_display` no longer exists. Use when the user asks to "show GLB in basic viewer", "basic 3D view", "show Basic3dView" or "test GLB rendering", to point them at the Adom viewer instead. --- -# Basic3dView — Minimal GLB 3D Viewer--Display GLB files in a stripped-down Babylon.js 3D viewer with zero post-processing. No material fixups, no laser etch, no synthetic pads, no FR4 detection, no camera tours. Shows the model exactly as the GLB contains it — useful for testing and comparing 3D output against other viewers.--**Input**: A `.glb` file path on the container, or drag-and-drop in the browser-**Output**: Interactive 3D view in Adom Viewer with basic toolbar--## MCP Tool--Use `av_basic_3d_display` to load a GLB:--```-av_basic_3d_display({-  glb_path: "/path/to/model.glb",-  title: "My Component"-})-```--**Attribution:** Always pass `viewId`, `skill`, and `author` when pushing to AV — see av-creator skill Rule #3.--Parameters:--| Parameter | Type | Required | Description |-|-----------|------|----------|-------------|-| `glb_path` | string | yes | Absolute path to the `.glb` file |-| `title` | string | no | Title shown in the info bar |--The tool blocks until the model is fully loaded (up to 15s timeout), so you can immediately call `av_capture` afterwards.--## Toolbar--| Button | Feature | Default |-|--------|---------|---------|-| Home | Reset camera to initial position | -- |-| Frame | Zoom to fit model | -- |-| Ground | Toggle ground plane | ON |-| Wireframe | Toggle wireframe rendering on all meshes | OFF |-| Axes | Toggle XYZ axis lines (R=X, G=Y, B=Z) | OFF |-| Measure | Measure distance between two points (mm) | OFF |-| Meshes | Open mesh list panel (draggable) | OFF |--### Mesh Panel--The mesh list panel shows all meshes in the loaded model with per-mesh controls:--- **Eye toggle** — show/hide individual meshes. Hidden meshes show a strikethrough name and dimmed eye icon.-- **Axis toggle** — show/hide RGB origin axes at the mesh's local pivot point (R=X, G=Y, B=Z) with a white dot at the origin. Useful for verifying rotation pivots (e.g. wheel axles). Axis length auto-scales to 30% of the mesh's bounding diagonal.-- **Draggable** — grab the "Meshes" header to drag the panel anywhere in the viewport.--The panel state (visibility, axes) is reflected in `av_capture` composite screenshots.--### Measure Tool--Click the ruler icon to enter measure mode (cursor becomes crosshair). Click a first point on the model (teal marker), then click a second point — a white measurement line appears with a floating mm label at the midpoint. The label tracks the camera as you orbit. Press **Escape** to exit measure mode and clear the measurement.--## Programmatic Control--Toggle toolbar features and set camera angles remotely — useful for automated screenshots or scripted demos.--```bash-# Toggle a toolbar button (ground, wireframe, axes, meshes)-curl -s -X POST http://localhost:8771/api \-  -H 'Content-Type: application/json' \-  -d '{"action":"basic3d_toggle","name":"wireframe"}'--# Set camera angle (Babylon.js ArcRotateCamera params)-curl -s -X POST http://localhost:8771/api \-  -H 'Content-Type: application/json' \-  -d '{"action":"basic3d_set_camera","alpha":-2.5,"beta":1.0}'-```+# Basic3dView (retired) -Toggle names: `ground`, `wireframe`, `axes`, `measure`, `meshes`+Basic3dView was a stripped-down Babylon viewer in the Adom Viewer, driven by the MCP tool `av_basic_3d_display`. The Adom Viewer was removed in May 2026 and the tool no longer exists. The HTML viewers and the `adom-3d-viewer.min.js` bundle left on this page load the old viewer; do not copy them into another page or repo. -## When to Use This vs Other Viewers+## 3D viewers: use the Adom viewer -| Viewer | Use Case |-|--------|----------|-| **Basic3dView** (this) | Raw GLB inspection — no transforms, no overlays, testing/comparison |-| **3dView** (`av_3d_display`) | Full 3D with material fixup, laser etch, pad highlighting, camera tour |-| **Fp3dView** (`fp-to-3d.js`) | Footprint pad geometry: copper shapes, dimensions, land pattern |-| **LibView** (`av_library_review`) | Complete library review: symbol + footprint + 3D side-by-side |+Adom has one 3D viewer: the Adom viewer library (wiki page [adom/adom-3d-viewer](https://wiki.adom.inc/adom/adom-3d-viewer), Babylon 9). Pick the first option that does the job: -## Troubleshooting+1. **A model on a hardware page:** put the GLB on the page and the page's 3D tab shows it. Layers, intros, tooltips, switchable groups and lights come from the GLB's `extras` (the `wiki-hero-glb` skill in adom/adom-wiki-skillpack lists them); viewer options come from `component.viewer_3d` in page.json. Add no viewer of your own.+2. **A model inside a README:** the `::adom-3d` directive, for example `::adom-3d{src="/<owner>/<slug>/render/model.glb" heading="..." caption="..."}`.+3. **An app or custom page that needs more** (its own panels, animation, picking): import the library and build on it. On the wiki, load `https://wiki.adom.inc/static/vendor/adom-3d-viewer-babylon9/adom-3d-viewer-babylon9.esm.js` with no `?v=` pin, then call `Adom3DViewerBabylon9.init(host, { zUp: true })`; `await Adom3DViewerBabylon9.loadBabylon()` returns the whole Babylon engine. Inside a readme.html, follow the sandbox notes in the `wiki-readme-html` skill. A tool that ships offline pins a release instead: `adom-wiki release download adom/adom-3d-viewer <version> adom-3d-viewer-babylon9-<version>.tar.gz`. -| Symptom | Cause | Fix |-|---------|-------|-----|-| "Basic 3D viewer page not found" | Server started before HTML file was created | Restart the viewer server |-| Model doesn't appear after API call | Server cached old HTML | Kill and restart `node viewer/server.js` |-| MCP tool `av_basic_3d_display` not found | MCP servers haven't restarted | Use HTTP API fallback |-| Model looks different than in 3dView | Expected — 3dView applies material fixups | Basic3dView shows the raw GLB intentionally |+Never copy a viewer bundle into a page or repo (`adom-3d-viewer.min.js`, or any Babylon or three.js build), and never start a new three.js, model-viewer or bare Babylon scene. If the library lacks something you need, open an issue or pull request on [adom-inc/adom-3d-viewer-babylon9](https://github.com/adom-inc/adom-3d-viewer-babylon9).--- a/README.md+++ b/README.md@@ -1,143 +1,13 @@-## What It Does--Basic3dView is a stripped-down Babylon.js 3D viewer that shows GLB files exactly as the file contains them. No material fixups, no laser etch markings, no synthetic pad overlays, no FR4 detection, no cinematic camera tours.--### Why?--The full 3dView applies material fixup (dark body, silver leads, copper pads), laser etch markings, synthetic pad overlays, FR4 detection, and cinematic camera tours. This is great for presentation but makes it hard to debug what the raw GLB actually contains. Basic3dView fills that gap — use it for testing, comparison, and raw inspection.--## Usage--### MCP Tool--```-av_basic_3d_display({ glb_path: "/path/to/model.glb", title: "My Part" })-```--### Drag & Drop--Open the Adom Viewer and drag any `.glb` or `.gltf` file directly onto the viewer.--### HTTP API--```bash-# Step 1: Copy GLB to serving directory-SERVE=$(curl -s -X POST http://localhost:8771/api \-  -H 'Content-Type: application/json' \-  -d '{"action":"serve_glb","glbPath":"/path/to/model.glb"}')--# Step 2: Extract the URL-GLB_URL=$(echo "$SERVE" | python3 -c 'import sys,json; print(json.load(sys.stdin)["glbUrl"])')--# Step 3: Display in Basic3dView-curl -s -X POST http://localhost:8771/api \-  -H 'Content-Type: application/json' \-  -d "{\"action\":\"show_basic_3d\",\"modelUrl\":\"$GLB_URL\",\"options\":{\"title\":\"My Component\"}}"-```--## Toolbar--| Button | Feature | Default |-|--------|---------|---------|-| Home | Reset camera to initial position | — |-| Frame | Zoom to fit model | — |-| Ground | Toggle ground plane | ON |-| Wireframe | Toggle wireframe rendering on all meshes | OFF |-| Axes | Toggle XYZ axis lines (R=X, G=Y, B=Z) | OFF |-| Measure | Measure distance between two points (mm) | OFF |-| Meshes | Open mesh list panel (draggable) | OFF |--### Mesh Panel--The mesh list panel shows all meshes in the loaded model with per-mesh controls:--- **Eye toggle** — show/hide individual meshes. Hidden meshes show a strikethrough name and dimmed eye icon. Useful for isolating specific parts of a model (e.g. show only wheels, hide body).-- **Axis toggle** — show/hide RGB origin axes at the mesh's local pivot point (R=X, G=Y, B=Z) with a white dot at the origin. Useful for verifying rotation pivots (e.g. wheel axles). Axis length auto-scales to 30% of the mesh's bounding diagonal.-- **Draggable** — grab the "Meshes" header to drag the panel anywhere in the viewport.--The panel state (visibility, axes) is reflected in `av_capture` composite screenshots.--### Measure Tool--Click the ruler icon to enter measure mode (cursor becomes crosshair). Click a first point on the model (teal marker), then click a second point — a white measurement line appears with a floating mm label at the midpoint. The label tracks the camera as you orbit. Press **Escape** to exit measure mode and clear the measurement.--## Programmatic Control--Toggle toolbar features, set camera angles, captions, and fill colors remotely — useful for automated screenshots or scripted demos.--```bash-# Toggle a toolbar button-curl -s -X POST http://localhost:8771/api \-  -H 'Content-Type: application/json' \-  -d '{"action":"basic3d_toggle","name":"wireframe"}'--# Set camera angle-curl -s -X POST http://localhost:8771/api \-  -H 'Content-Type: application/json' \-  -d '{"action":"basic3d_set_camera","alpha":-2.5,"beta":1.0}'--# Set caption text (shown above the info bar)-curl -s -X POST http://localhost:8771/api \-  -H 'Content-Type: application/json' \-  -d '{"action":"basic3d_set_caption","text":"Description here"}'--# Red-box calibration (fill iframe for pixel-perfect screenshot cropping)-curl -s -X POST http://localhost:8771/api \-  -H 'Content-Type: application/json' \-  -d '{"action":"basic3d_fill","color":"#FF0000"}'-```--Toggle names: `ground`, `wireframe`, `axes`, `measure`, `meshes`--### Mesh Visibility Control--```bash-# Hide meshes by name substring-curl -s -X POST http://localhost:8771 -H 'Content-Type: application/json' -d '{-  "action": "post_message",-  "message": {"type":"mesh_visibility","match":"body","visible":false}-}'--# Solo mode — show only matching meshes, hide all others-curl -s -X POST http://localhost:8771 -H 'Content-Type: application/json' -d '{-  "action": "post_message",-  "message": {"type":"mesh_visibility","match":"wheel","solo":true}-}'--# Show all meshes again-curl -s -X POST http://localhost:8771 -H 'Content-Type: application/json' -d '{-  "action": "post_message",-  "message": {"type":"mesh_show_all"}-}'-```--### Remote Measure--```bash-# Place measurement between two 3D points (coordinates in GLB meters)-curl -s -X POST http://localhost:8771 -H 'Content-Type: application/json' -d '{-  "action": "post_message",-  "message": {"type":"measure","pointA":{"x":-0.0025,"y":-0.002,"z":0.001},"pointB":{"x":0.0025,"y":0.002,"z":0.001}}-}'+# Basic3dView (retired) -# Clear measurement-curl -s -X POST http://localhost:8771 -H 'Content-Type: application/json' -d '{-  "action": "post_message",-  "message": {"type":"clear_measure"}-}'-```+Basic3dView was a stripped-down Babylon viewer in the Adom Viewer, driven by the MCP tool `av_basic_3d_display`. The Adom Viewer was removed in May 2026 and the tool no longer exists. The HTML viewers and the `adom-3d-viewer.min.js` bundle left on this page load the old viewer; do not copy them into another page or repo. -## Info Bar+## 3D viewers: use the Adom viewer -The bottom info bar shows:-- Model filename, bounding box (W x D x H mm), mesh count, and vertex count (left)-- **Basic3dView** label (right) — identifies this viewer+Adom has one 3D viewer: the Adom viewer library (wiki page [adom/adom-3d-viewer](https://wiki.adom.inc/adom/adom-3d-viewer), Babylon 9). Pick the first option that does the job: -## When to Use This vs Other Viewers+1. **A model on a hardware page:** put the GLB on the page and the page's 3D tab shows it. Layers, intros, tooltips, switchable groups and lights come from the GLB's `extras` (the `wiki-hero-glb` skill in adom/adom-wiki-skillpack lists them); viewer options come from `component.viewer_3d` in page.json. Add no viewer of your own.+2. **A model inside a README:** the `::adom-3d` directive, for example `::adom-3d{src="/<owner>/<slug>/render/model.glb" heading="..." caption="..."}`.+3. **An app or custom page that needs more** (its own panels, animation, picking): import the library and build on it. On the wiki, load `https://wiki.adom.inc/static/vendor/adom-3d-viewer-babylon9/adom-3d-viewer-babylon9.esm.js` with no `?v=` pin, then call `Adom3DViewerBabylon9.init(host, { zUp: true })`; `await Adom3DViewerBabylon9.loadBabylon()` returns the whole Babylon engine. Inside a readme.html, follow the sandbox notes in the `wiki-readme-html` skill. A tool that ships offline pins a release instead: `adom-wiki release download adom/adom-3d-viewer <version> adom-3d-viewer-babylon9-<version>.tar.gz`. -| Viewer | Use Case |-|--------|----------|-| **Basic3dView** (this) | Raw GLB inspection — no transforms, no overlays, testing/comparison |-| **3dView** (`av_3d_display`) | Full 3D with material fixup, laser etch, pad highlighting, camera tour |-| **Fp3dView** (`fp-to-3d.js`) | Footprint pad geometry: copper shapes, dimensions, land pattern |-| **LibView** (`av_library_review`) | Complete library review: symbol + footprint + 3D side-by-side |+Never copy a viewer bundle into a page or repo (`adom-3d-viewer.min.js`, or any Babylon or three.js build), and never start a new three.js, model-viewer or bare Babylon scene. If the library lacks something you need, open an issue or pull request on [adom-inc/adom-3d-viewer-babylon9](https://github.com/adom-inc/adom-3d-viewer-babylon9).

Comments

No comments yet.

Log in to comment.