Import a 3D Model and automatically assign and export animations
TypeScript
Upgrade three.js from 159 to 175
Scott Petrovic1f2704704ab7
diff --git a/package-lock.json b/package-lock.jsonindex d28d571..8f32c7e 100644--- a/package-lock.json+++ b/package-lock.json@@ -8,11 +8,10 @@"name": "model-motionizer","version": "0.0.0","dependencies": {- "three": "^0.159.0",+ "three": "0.175.0","vite-plugin-glsl": "^1.1.2"},"devDependencies": {- "@types/three": "^0.159.0","@typescript-eslint/eslint-plugin": "^6.15.0","eslint": "^8.56.0","eslint-config-standard-with-typescript": "^43.0.0",@@ -530,30 +529,6 @@"integrity": "sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==","dev": true},- "node_modules/@types/stats.js": {- "version": "0.17.3",- "resolved": "https://registry.npmjs.org/@types/stats.js/-/stats.js-0.17.3.tgz",- "integrity": "sha512-pXNfAD3KHOdif9EQXZ9deK82HVNaXP5ZIF5RP2QG6OQFNTaY2YIetfrE9t528vEreGQvEPRDDc8muaoYeK0SxQ==",- "dev": true- },- "node_modules/@types/three": {- "version": "0.159.0",- "resolved": "https://registry.npmjs.org/@types/three/-/three-0.159.0.tgz",- "integrity": "sha512-2gybdh7HtX+rGUgslzK7QEJfzD2I0qrbUGzKk+dK0FDx49UHkNX0rqZVRzIgeFjBd1HzzhNNgwNoMacm3Wyc7w==",- "dev": true,- "dependencies": {- "@types/stats.js": "*",- "@types/webxr": "*",- "fflate": "~0.6.10",- "meshoptimizer": "~0.18.1"- }- },- "node_modules/@types/webxr": {- "version": "0.5.10",- "resolved": "https://registry.npmjs.org/@types/webxr/-/webxr-0.5.10.tgz",- "integrity": "sha512-n3u5sqXQJhf1CS68mw3Wf16FQ4cRPNBBwdYLFzq3UddiADOim1Pn3Y6PBdDilz1vOJF3ybLxJ8ZEDlLIzrOQZg==",- "dev": true- },"node_modules/@typescript-eslint/eslint-plugin": {"version": "6.15.0","resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.15.0.tgz",@@ -1717,12 +1692,6 @@"reusify": "^1.0.4"}},- "node_modules/fflate": {- "version": "0.6.10",- "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.6.10.tgz",- "integrity": "sha512-IQrh3lEPM93wVCEczc9SaAOvkmcoQn/G8Bo1e8ZPlY3X3bnAxWaBdvTdvM1hP62iZp0BXWDy4vTAy4fF0+Dlpg==",- "dev": true- },"node_modules/file-entry-cache": {"version": "6.0.1","resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz",@@ -2500,12 +2469,6 @@"node": ">= 8"}},- "node_modules/meshoptimizer": {- "version": "0.18.1",- "resolved": "https://registry.npmjs.org/meshoptimizer/-/meshoptimizer-0.18.1.tgz",- "integrity": "sha512-ZhoIoL7TNV4s5B6+rx5mC//fw8/POGyNxS/DZyCJeiZ12ScLfVwRE/GfsxwiTkMYYD5DmK2/JXnEVXqL4rF+Sw==",- "dev": true- },"node_modules/micromatch": {"version": "4.0.5","resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz",@@ -3194,9 +3157,9 @@"dev": true},"node_modules/three": {- "version": "0.159.0",- "resolved": "https://registry.npmjs.org/three/-/three-0.159.0.tgz",- "integrity": "sha512-eCmhlLGbBgucuo4VEA9IO3Qpc7dh8Bd4VKzr7WfW4+8hMcIfoAVi1ev0pJYN9PTTsCslbcKgBwr2wNZ1EvLInA=="+ "version": "0.175.0",+ "resolved": "https://registry.npmjs.org/three/-/three-0.175.0.tgz",+ "integrity": "sha512-nNE3pnTHxXN/Phw768u0Grr7W4+rumGg/H6PgeseNJojkJtmeHJfZWi41Gp2mpXl1pg1pf1zjwR4McM1jTqkpg=="},"node_modules/to-regex-range": {"version": "5.0.1",diff --git a/package.json b/package.jsonindex b499f26..9125394 100644--- a/package.json+++ b/package.json@@ -8,7 +8,6 @@"build": "vite build"},"devDependencies": {- "@types/three": "^0.159.0","@typescript-eslint/eslint-plugin": "^6.15.0","eslint": "^8.56.0","eslint-config-standard-with-typescript": "^43.0.0",@@ -19,7 +18,7 @@"vite": "^4.5.0"},"dependencies": {- "three": "^0.159.0",+ "three": "0.175.0","vite-plugin-glsl": "^1.1.2"}}diff --git a/src/script.ts b/src/script.tsindex 5dcdf27..48208fc 100644--- a/src/script.ts+++ b/src/script.ts@@ -1,10 +1,10 @@import * as THREE from 'three'import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js'+import { TransformControls } from 'three/examples/jsm/controls/TransformControls.js'import { Utility } from './lib/Utilities.ts'import { Generators } from './lib/Generators.ts'-import { TransformControls } from 'three/examples/jsm/controls/TransformControls.js'import { UI } from './lib/UI.ts'@@ -85,7 +85,7 @@ export class Bootstrap {this.controls.target.set(0, 0.9, 0)this.controls.update()- this.scene.add(this.transform_controls)+ this.scene.add(this.transform_controls.getHelper())// basic things in another group, to better isolate what we are working onthis.environment_container.name = 'Setup objects'