Open sinano1107 opened 2 years ago
<!DOCTYPE html>
<html>
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<!-- we import arjs version without NFT but with marker + location based support -->
<script src="https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar.js"></script>
<body style="margin: 0px; overflow: hidden">
<a-scene embedded arjs>
<a-marker preset="hiro">
<a-entity
position="0 0 0"
scale="0.05 0.05 0.05"
gltf-model="https://arjs-cors-proxy.herokuapp.com/https://raw.githack.com/AR-js-org/AR.js/master/aframe/examples/image-tracking/nft/trex/scene.gltf"
></a-entity>
</a-marker>
<a-entity camera></a-entity>
</a-scene>
<script></script>
</body>
</html>
It also occurs in this code
Does anyone have a solution for this? I continue to be stumped by this issue. Does this function have anything to do with it?
https://github.com/jeromeetienne/AR.js/issues/749 My problem is probably the same as this report
Why not just run this process in the orientationChange event listener as well? @kalwalt
I'm sorry. Changing the orientation of the context every time the screen orientation changes makes it even stranger. I am not really understanding what the code means. Not many people have mentioned this issue. What do you think is the cause of this problem? I would appreciate any advice you could give me. @kalwalt
I am using location based ar.js. I am also facing this issue when I change from portrait to landscape the object changes its position on Ipad .But while checking with android device it is working fine. If anybody have the solution please share with me
Do you want to request a feature or report a bug? bug
What is the current behavior?
Run this EXAMPLE on a mobile device. It works fine immediately after loading, but if you change the orientation of the device (i.e., switch between portrait and landscape mode), the t-lex will be oriented incorrectly, as shown in the image.
It may have something to do with this issue as well.
If the current behavior is a bug, please provide the steps to reproduce. Please access the HTML above from your mobile device
Please mention other relevant information such as the browser version, Operating System and Device Name iphone 13 pro safari and chrome google pixel 5 chrome
What is the expected behavior? The t-lex should be displayed in the correct orientation even if the phone changes orientation