Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

149
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda