Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3D model display issue - Stuck above #815

Open
morriarty999 opened this issue Aug 15, 2022 · 3 comments
Open

3D model display issue - Stuck above #815

morriarty999 opened this issue Aug 15, 2022 · 3 comments

Comments

@morriarty999
Copy link

morriarty999 commented Aug 15, 2022

Hi,

I am using the base code to display a 3D model but I have a problem. The 3D model is still stuck on top.

I tried with all versions of A-FRAME (1.2.0, 1.1.0...) but the problem is still there.
I reduced the size, changed the model.

`<script src='https://aframe.io/releases/0.9.2/aframe.min.js'></script>
<script src="https://raw.githack.com/jeromeetienne/AR.js/master/aframe/build/aframe-ar.min.js"></script>
<script src="https://raw.githack.com/donmccurdy/aframe-extras/master/dist/aframe-extras.loaders.min.js"></script>
<script>
THREEx.ArToolkitContext.baseURL = 'https://raw.githack.com/jeromeetienne/ar.js/master/three.js/'
</script>

vr-mode-ui="enabled: false" embedded arjs='sourceType: webcam; sourceWidth:1280; sourceHeight:960; displayWidth: 1280; displayHeight: 960; debugUIEnabled: false;'> <a-entity gltf-model="assets/dragonite/scene.gltf" rotation="0 180 0" scale="0.08 0.08 0.08" gps-entity-place="longitude: *.*****; latitude: **.******;" animation-mixer/> <a-camera gps-camera rotation-reader></a-camera> </a-scene>`

I tried with several smartphones/tablet (galaxy A10, huawey... )and browsers (brave, firefox, chrome, opera) but still the same

I also tried the latest version Location Based Example:
https://ar-js-org.github.io/AR.js-Docs/

it is displayed very slightly better the model no longer animates :

`<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="https://unpkg.com/aframe-look-at-component@0.8.0/dist/aframe-look-at-component.min.js"></script>
<script src="https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar-nft.js"></script>

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

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

Do you know how I can fix the problem?

Thank you very much.
Nice day.

@gsasiambarrena
Copy link

Hola... estimo que es el valor del (eje y) que deberias modificar. Aqui un ejemplo sobre una caja amarilla:

Saludos Gabriel
PD. paso bastanmte tiempo, jeje, pero recien estoy entrando en estos temas, muy interesantes.

@elmaxicero4
Copy link

Hello, I also have the same problem, in addition to the fact that the pokemon does not stay fixed wherever I move my camera, it leaves without having to touch it. I want it to stay as fixed as possible at the point of the coordinate that I set, how can I do that? I am new at this.

@morriarty999
Copy link
Author

Hello,
I have already tried to modify the coordinates but it does not change anything. The 3d model is sometimes even outside the screen (left or right).

I also tried to use the version with GPS coordinates so that the 3d model appears at a specific location but it still appears, even if we are not at that location. It's strange.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants