From 12dd669f1e1a76900efb8aa53a48f829cc03e6cb Mon Sep 17 00:00:00 2001 From: Rik de Leeuw Date: Wed, 5 Jun 2024 15:23:32 +0200 Subject: [PATCH] - introduced release function to release/dispose 3d resources - introduced caching for gltfloader - introduced resource references - fixed protocol communication with multiple tools --- tools/gltfExample/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/gltfExample/index.js b/tools/gltfExample/index.js index 07dbe75..d95f38c 100644 --- a/tools/gltfExample/index.js +++ b/tools/gltfExample/index.js @@ -61,13 +61,13 @@ class GLTFExample2 { const gltfLoader = new GltfLoaderComponentNode(new GltfLoaderComponentStore()); gltfLoader.setUrl(self.location.href.substring(0, self.location.href.lastIndexOf('/')) + "/flagab.glb"); this.#gltfObject.addComponent(1, gltfLoader); - this.#gltfObject.addComponent(2, new SimpleAnimationComponentNode()); + //this.#gltfObject.addComponent(2, new SimpleAnimationComponentNode()); this.#gltfObject.setScale(1000, 1000, 1000); this.#baseTool.getTool().setChild("gltfObject", this.#gltfObject); } - this.#gltfObject.getComponentByType(SimpleAnimationComponentNode.TYPE).setAnimation((timestamp) => { + /*this.#gltfObject.getComponentByType(SimpleAnimationComponentNode.TYPE).setAnimation((timestamp) => { return {x: 0, y: this.#amplitude * Math.sin(2.0 * Math.PI * this.#frequency * timestamp), z: 0}; - }); + });*/ } /**