diff --git a/public/admin.html b/public/admin.html index fb64245..1d9c6c7 100644 --- a/public/admin.html +++ b/public/admin.html @@ -161,6 +161,17 @@
- + + + + diff --git a/public/ar-head.html b/public/ar-head.html index 2b4aced..baf8604 100644 --- a/public/ar-head.html +++ b/public/ar-head.html @@ -78,6 +78,14 @@ + diff --git a/public/index.html b/public/index.html index bbe502d..cd72821 100644 --- a/public/index.html +++ b/public/index.html @@ -25,6 +25,14 @@
link: connecting… · ghosts: 0
drag to orbit · scroll to zoom
+ diff --git a/public/js/admin.js b/public/js/admin.js index 01d0216..f7c747a 100644 --- a/public/js/admin.js +++ b/public/js/admin.js @@ -8,8 +8,8 @@ * Coordinates: world millimetres, origin at the front-left table corner. * X = length (1500), Z = depth (700), Y = height. Three.js uses metres (×0.001). */ -import * as THREE from 'https://cdn.jsdelivr.net/npm/three@0.160.0/build/three.module.js'; -import { OrbitControls } from 'https://cdn.jsdelivr.net/npm/three@0.160.0/examples/jsm/controls/OrbitControls.js'; +import * as THREE from 'three'; +import { OrbitControls } from 'three/addons/controls/OrbitControls.js'; const MM = 0.001; const LURE = { diff --git a/public/js/ar-head.js b/public/js/ar-head.js index 84d2049..f3d56df 100644 --- a/public/js/ar-head.js +++ b/public/js/ar-head.js @@ -7,7 +7,7 @@ * * This is the real-3D successor to ar-test.js (which was a flat sprite). */ -import * as THREE from 'https://cdn.jsdelivr.net/npm/three@0.160.0/build/three.module.js'; +import * as THREE from 'three'; import { buildLegoHeadGhost } from './lego-head-ghost.js?v=1'; import { TunedDetector, MarkerTracker } from './detect-tuned.js?v=1'; diff --git a/public/js/viewer.js b/public/js/viewer.js index 35620b5..e044f64 100644 --- a/public/js/viewer.js +++ b/public/js/viewer.js @@ -1,5 +1,5 @@ -import * as THREE from 'https://cdn.jsdelivr.net/npm/three@0.160.0/build/three.module.js'; -import { OrbitControls } from 'https://cdn.jsdelivr.net/npm/three@0.160.0/examples/jsm/controls/OrbitControls.js'; +import * as THREE from 'three'; +import { OrbitControls } from 'three/addons/controls/OrbitControls.js'; // ---- Config -------------------------------------------------------------- const MM = 0.001; // millimetre -> Three.js metre scale