https://threejs.org/docs/#manual/ko/introduction/Loading-3D-models
I’m doing this page, and I download model in Sea Keep "Lonely Watcher" - Download Free 3D model by Artjoms Horosilovs (@Artjoms_Horosilovs) [09a15a0] - Sketchfab here for gltf file.
this is my code and I can’t see anything in webpage ToT
My first three.js app body { margin: 0; } canvas { display: block; } import { GLTFLoader } from "three/addons/loaders/GLTFLoader.js"; const loader = new GLTFLoader(); loader.load(
"sea_keep_lonely_watcher/scene.gltf",
function (gltf) {
scene.add(gltf.scene);
},
undefined,
function (error) {
console.error(error);
}
);
</script>