AR.js icon indicating copy to clipboard operation
AR.js copied to clipboard

Problem display Model 3D + Explanation display several 3d objects

Open morriarty999 opened this issue 3 years ago • 0 comments

Hi,

I'm having display issues with 3D models.

The size of the 3d object is displayed differently. It is sometimes large and then resumes an initial size or vice versa :

Also, when I change location and come back, sometimes the model doesn't want to display anymore. I have to reload the web page for the 3d model to reappear.

`

<a-scene
  vr-mode-ui="enabled: false"
  arjs="sourceType: webcam; videoTexture: true; debugUIEnabled: false;"
>
  
  	<a-entity gltf-model="assets/newspaper/scene.gltf" rotation="0 180 0" scale="0.10 0.10 0.10" gps-entity-place="longitude: 6.9844582; latitude: 47.5357541;" animation-mixer/>

  <a-camera gps-camera rotation-reader> </a-camera>
</a-scene>`

I would like to do something like this like on the site :

I would like people to follow a path materialized by 3d points to arrive at their destination for a treasure hunt.

Can I simply use the html "Location Based" file for displaying multiple 3D objects?

If yes, what are the parameters to use to see the whole thing well when you scan the place as in the photo?

Where do I have to add a js file like this:

`function staticLoadPlaces() { return [ { name: 'model', location: { // lat: , // lng: , }, }, ]; }

var models = [ { url: 'objet.gltf', scale: '0.5 0.5 0.5', rotation: '0 180 0', },`

Thank you very much for your answers and help.

If you have a tutorial for me on how to do that, don't hesitate.

morriarty999 avatar Aug 15 '22 12:08 morriarty999