Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

445
Vistas
'404 not found' error when loading .glb/.gltf file

I created a model in Blender and saved it as .glb file. When I try to load it to Three.js (using Vue.js and to be precise Trois.js) then I encounter some 404 (not found) error. Seems like path is wrong but I tried every single option to make proper relative path, however none of them works. Have no idea what's wrong. Here is my code:

BaseModel.vue

<template>
    <Renderer ref="renderer" 
      antialias 
      resize=true
      shadow
      :orbit-ctrl="{ enableDamping: true, target }"
      >
      <Camera ref="camera" :position="camera.position" />
      <Scene ref="scene" :background='bg_color'>
        <PointLight ref="light1" 
            :intensity="scene.pointLight.intensity"
            :position="scene.pointLight.position" />
        <GltfModel src="~assets/test.glb" />
      </Scene>
    </Renderer>
</template>

and my directory:

enter image description here

I also tried ~/assets/test.glb, /src/assets/test.glb, ../../assets/test.glb but in vain. Always the same error:

enter image description here

I also checked this issues but it didn't help: GLTF file 404 not found

EDIT: I'm adding folders structure taken from dev tools, I can't see 'text'glb' model loaded to assets folder where I normally store it. Seems it hasn't been loaded, don't know why. And yes, I refreshed the sources (Ctrl+R)

enter image description here

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda