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

147
Vistas
Model Viewer - GLB - retrieving data from object

I have some GLB files that I can easily render in the browser and make it interactive (I can rotate it basically)

<model-viewer 
  src="https://modelviewer.dev/shared-assets/models/Astronaut.glb"
  alt="A 3D model of an astronaut"
  auto-rotate
  camera-controls>
</model-viewer>

This is a samle, externally hosted GLB file, obviously, but I have my own collection of much more simple GLB files.

Does anyone know a way to not just interact with the GLB, but to retrieve data about the part of the object you're clicking on and pass it to the client side? For example if I have a simple square rendered, is there a way, where if I click on part of it, I can get an "alert" javascript command with the coordinates of where I clicked, or the shape of what I clicked on, or the name of a node (essentially any data from the original GLTF JSON format)?

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