This app is a Babylon.js-based 3D model viewer. It supports two entry modes:
modelUrl(fallback): load a model directlyconfigUrl(preferred): fetch BindingData JSON, load/scale/frame the model, then start MQTT realtime binding by default (toggleable in the status overlay)
cd /home/fangye100/Documents/projects/BabylonJS/3DAssetPreview
npm install
npm run dev:httpsOpen the viewer with:
https://127.0.0.1:5173/?configUrl=https://your-config-host/binding-data.json
Expected config structure: /home/fangye100/Documents/projects/BabylonJS/specs/003-3d-mqtt-binding/contracts/binding-data.schema.json
Notes:
- Realtime is WSS-only.
- URL query params are redacted in the UI/logs by default.
https://127.0.0.1:5173/?modelUrl=https://example.com/model.glb
If configUrl or model.fileUrl is blocked by CORS, use the repo reverse proxy:
- Docs:
/home/fangye100/Documents/projects/BabylonJS/reverse-proxy/README.md - Quickstart:
/home/fangye100/Documents/projects/BabylonJS/specs/003-3d-mqtt-binding/quickstart.md