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

255
Visualizações
ar.js/Aframe multiple objects on location based tracking not working properly

Im using ar.js with aframe to load multiple objects into an a-scene but instead of seeing the objects where they are supposed to be (according to map coord/latlng), i'm getting all of them towards the same location. For example, I have an a-entity with latlng values towards south and one more a-entity with latlng towards north. What happens is that both entities appear on the north or the south side, not where they are supposed to be. Here is my code:

    <a-scene
        vr-mode-ui="enabled: false"
        embedded
        arjs='sourceType: webcam; sourceWidth:1280; sourceHeight:960; displayWidth: 1280; displayHeight: 960; debugUIEnabled: false;'>
        <a-camera gps-camera rotation-reader far="5000"></a-camera>
        <a-entity gltf-model="/path/to/model" rotation="0 180 0" scale="0.70 0.70 0.70" gps-entity-place="<here are values of lat and long towards north>" animation-mixer/>
        <a-entity gltf-model="/path/to/model" rotation="0 180 0" scale="0.70 0.70 0.70" gps-entity-place="<here are values of lat and long towards south>" animation-mixer/>
    </a-scene>
about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

I believe you need to use gps-projected-camera instead of gps-camera within your <a-camera /> element.

about 4 years ago · Juan Pablo Isaza Relatório

0

You can put they all in the same location and use the position argument: for example

    <a-scene
        vr-mode-ui="enabled: false"
        embedded
        arjs='sourceType: webcam; sourceWidth:1280; sourceHeight:960; displayWidth: 1280; displayHeight: 960; debugUIEnabled: false;'>
        <a-camera gps-camera rotation-reader far="5000"></a-camera>
        <a-entity gltf-model="/path/to/model" rotation="0 180 0" scale="0.70 0.70 0.70" gps-entity-place="<here are values of lat and long towards north>" position="3 45 0" animation-mixer/>
        <a-entity gltf-model="/path/to/model" rotation="0 180 0" scale="0.70 0.70 0.70" gps-entity-place="<here are values of lat and long towards south>" position="0 45 0" animation-mixer/>
    </a-scene>

In my experience sometime if you are fine tuning the position the GPS coordinates may not be very precise. Then it's better to use the same coord for all the object and position them relative to each other.

about 4 years ago · Juan Pablo Isaza Relatório
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