codelab-webxr
codelab-webxr copied to clipboard
Changing the sunflower to another gltf
I had a gltf, and I changed the link here:
window.gltfLoader.load("https://immersive-web.github.io/webxr-samples/media/gltf/sunflower/sunflower.gltf", function(gltf) {
const flower = gltf.scene.children.find(c => c.name === 'sunflower')
flower.castShadow = true;
window.sunflower = gltf.scene;
});
to something like http://mysite.com/mymodel.gltf and it is not working. I have no idea how I can change the sunflower properly. Now, I can successfully instantiate nothing on the screen 😂
Same problem would like to change the sunflower model with a different model of mine
Hi, maybe its because of http. I think that https is required if working with non-localhost resources.