Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

145
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!