title: Model Viewer - GLB - retrieving data from object
body: <p>I have some GLB files that I can easily render in the browser and make it interactive (I can rotate it basically)</p>
  <pre><code>&lt;model-viewer 
    src=&quot;https://modelviewer.dev/shared-assets/models/Astronaut.glb&quot;
    alt=&quot;A 3D model of an astronaut&quot;
    auto-rotate
    camera-controls&gt;
  &lt;/model-viewer&gt;
  </code></pre>
  <p>This is a samle, externally hosted GLB file, obviously, but I have my own collection of much more simple GLB files.</p>
  <p>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 &quot;alert&quot; 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)?</p>