Hi guys i am building a website using django and 3.js, i am facing some difficulties to load a 3d model in the website. Please guide me how to give the path.
Error
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1:8000/3d/home/INO.glb
when i click this link it show page not found
HTML
{% load static %}
3D ModelJS
let scene, camera, renderer, hlight;
function init(){
scene = new THREE.Scene();
camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.01, 1000);
hlight = new THREE.AmbientLight (0x404040, 100);
scene.add(hlight);
renderer = new THREE.WebGLRenderer({antialias: true});
renderer.setSize(window.innerWidth, window.innerHeight);
document.body.appendChild(renderer.domElement);
var loader = new THREE.GLTFLoader();
loader.load('home/INO.glb', function(gltf){
scene.add(gltf.scene);
renderer.render(scene,camera);
},
undefined, function ( error ) {
console.error( error );
});
}
init();