How to get a storage key from my 3D plan scene id?

I upload my 2D plan plan and receive the floor plan email. I can get the scene identifier from the URL plan of the 3d plan plan, but I can’t use it in my afar scene, since the key to store agran is required to store the scene. I can insert the scene ID into the creator of the application to get the storage key data. How can I get .data3d.buffer from a loaded 3d model via the storage API not through the application creator?

+4
source share
1 answer

we just released the scene API with the new version 3dio.js version 1.0.1

To get a baked model (data3d.buffer file), including furniture from the Archilogic scene in A-Frame, you can do:

const sceneId = '5dc58829-ecd3-4b33-bdaf-f798b7edecd4'
const sceneEl = document.querySelector('a-scene')
io3d.scene.getAframeElements(sceneId)
  .then(element => {
    sceneEl.appendChild(element)
  })

Take a look at the documentation here: https://3d.io/docs/api/1/scene.html

To enhance A-Frame lighting for interior spaces, you can add a component io3d-lightingto an A-Frame scene element.

<a-scene io3d-lighting>
</a-scene>
+3
source

Source: https://habr.com/ru/post/1686455/


All Articles