AI Agent Hub
Back to skills
3D Browser Model Viewer icon

3D Browser Model Viewer

Design & Media Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please follow https://skillhub.cn/install/skillhub.md to install @user_ec1a4d28/3d-viewer.

About this skill

Problem

Browser 3D viewers often require manual file dropping and only expose a static visual result. When models arrive as STEP, STL, GLB, or SCAD, or when an AI needs to generate parts from a natural-language description, the missing piece is a path from file location to an inspectable viewport with scripted control. The 3D Model Viewer connects local files, real-time rendering, and remote control: opening a page with ?url= shows the model immediately, while an agent can continue loading, querying, changing themes, moving the camera, taking screenshots, and exporting.

How it works

The core is a local HTTP service bridged to the browser through SSE. The typical workflow is: confirm the file exists, copy it into the service directory, start the background server, open the model URL with ?url=, and then issue runtime commands. It supports 30+ formats, including STEP/STP, STL, OBJ, FBX, GLB/GLTF, USDZ, PLY, SCAD, HDR, and EXR. STEP/STP files are converted to GLB through OCCT WASM, while SCAD files are compiled to mesh with openscad-wasm. The control surface includes loadModel, getModelInfo, exportModel, setTheme, setLanguage, setEnv, setPartMaterialByPreset, queryParts, animation commands, camera commands, selection, and takeScreenshot. For language-driven modeling, the skill first explains the modeling intent, then writes OpenSCAD code saved as .scad, and the viewer compiles and renders it; use exportModel when STL output is needed.

Limits

This is best for local inspection, model review, and AI-generated geometry, not for environments without a browser. Remote control depends on the local service process, an SSE client, and the listening port. Commands such as loadModel and exportModel are asynchronous; the SSE channel waits for completion and has a ~30 second timeout. First-time SCAD compilation downloads a ~13 MB WASM package and can be slow. executeCode is experimental for injecting custom UI and may change; falling back to a plain static file server removes the HTTP API control path.

Use Cases

  • After receiving a STEP part file, copy it to the service directory and open ?url to inspect geometry.
  • Describe a gear or bolt in plain language, generate OpenSCAD code, then compile and review it in the browser.
  • When reviewing a GLB animated model, use API commands to play, pause, seek, and capture keyframes.
  • Export visible scene geometry as GLB or STL and save it back into the models directory for reuse.

Best For

  • Design engineers reviewing mechanical parts who need to open STEP or STL files quickly and inspect details.
  • Algo or product engineers validating AI-generated OpenSCAD models without hand-writing code.
  • AI application developers integrating a browser viewer into automation via MCP or HTTP control.
  • Manufacturing testers inspecting GLB animations and exporting STL or GLB for downstream use.