I’ve got a gltf file. When I import it inside the Three.js editor (https://threejs.org/editor/) I get a correct result when I add an environment map. On the other hand, when I import my gltf in my project scene I’ve a different result. Even when I use the very same HDRI image. The metalness is way too shinny in this case.
Tag: gltf
How to control .glb model animations in A-FRAME via Three.js
I’m trying to play a glb animation in A-FRAME with Three.js, now it works just for a second and then it stop, could someone help me please? this is my code: Answer Wait until the model is loaded with: update the animation in the renderloop – on each tick. You could use an interval or something else, but aframe has
Three.js basics – Can’t find variable – GLTFLoader animation
I’ve got very basic knowledge of JS. Following three.js docs Loading 3D models I have succesfully rendered 3D object and centered it: I would like to animate it now, begining with simple rotation: But the problem is console returns: Answer You have declared model variable inside the functional scope, try to declare it outside Hopefully, this will work! Edited as
A-Frame Asset Management System blocks JavaScript code
I’m coding an A-Frame project for our University at the moment with a PHP Backend. Whenever I try to load an a-asset-item in the a-assets section, my JavaScript code stops working. I tried changing the gltf model to a glb and to a obj/mtl and I tried using a CDN model from a A-Frame tutorial. If I don’t load the