Comments (13)
@elalish please see my device that is mobile details
from model-viewer.
This is discussed in #3989
from model-viewer.
Thanks for your reply. But I am working on Android not ios.
from model-viewer.
VID_20240506_150905_0_COMPRESSED.1.mp4
from model-viewer.
From the video, it seems to be an issue with SceneViewer on Android. In this case please check only the correct checkboxes on the issue. Not sure if we can do anything about it.
You can set ar-modes="webxr quick-look"
to force using webxr and not scene-viewer on Android. I didn't have an issue with webxr mode on Android.
from model-viewer.
<model-viewer
id="change-speed-demo"
camera-controls
touch-action="pan-y"
src={glbFile}
ar
ar-placement={placement}
alt="A 3D model of a helmet"
ref={modelViewerRef}
animation-name="Dance"
ar-modes="webxr scene-viewer quick-look"
shadow-intensity="1">
<button
slot="ar-button"
id="ar-button"
onClick={handlearclick}>
View in your space
</button>
{showOverlay && (
<div className="overlay">
<p>Move your device to place the object in AR</p>
<button onClick={handlePlaceObject}>Start AR</button>
</div>
)}
<div id="ar-prompt">
<img src="https://modelviewer.dev/shared-assets/icons/hand.png" />
<div id="wall_floor">
Move Camera on the <span>{placement}</span>
</div>
</div>
<div id="ar-failure">AR is not tracking!</div>
{hasAnimation && (
<div id="controls">
<button onClick={handleToggleAnimation}>
{isPlaying ? <FaPause /> : <FaPlay />}
</button>
</div>
)}
</model-viewer>
this is my code for ios its not flipping but when opening on android its flipping the model.
from model-viewer.
No, that's WebXR mode alright. Weird! Does that repro reliably even on other walls? The only thing I can imagine is that the returned hit matrix has an inverted normal. @bialpio Have you ever seen anything like this, or have a thought as to where in the code that could happen? The relevant piece of MV code is:
if (this.placeOnWall === true) {
// Orient the model to the wall's normal vector.
this.goalYaw = Math.atan2(hitMatrix.elements[4], hitMatrix.elements[6]);
}
which I don't see any problems with. hitMatrix
is returned right from the WebXR API.
from model-viewer.
@anil-arnxt Can you fill in the device and OS/browser version info so we can try to repro?
from model-viewer.
@elalish I am using Android version 12 and chrome browser.
from model-viewer.
@anil-arnxt Can we have more details on your device type and browser version? (the xx.x.xxxx.xxx are intended to be filled in by you as part of the issue template).
from model-viewer.
Related Issues (20)
- Is is possible to launch AR mode automatically?
- Missing propagation of the progress event reason
- Frames Rendering to Incorrect Canvas - Multiple Model-Viewers on Page HOT 6
- Ar button problem HOT 1
- How to access the hierarchy and then Three.js changes each object. HOT 1
- When I use scene viewer the model is placed sideways. HOT 1
- Setup lantern demo : bulb light should be visible outside of lantern box
- Generated usdz has a random y rotation when the auto-rotate attribute is used HOT 2
- Generated USDZ files don't work anymore on VisionOS 1.2 beta HOT 5
- AutoUSDZ broken in iOS 17.5 beta HOT 18
- xr-environment attribute causes errors the second time a webxr session is started HOT 6
- WebXR mode does not time out when it fails HOT 4
- iOS REGRESSION: Apple Pay banner fails to render when opening AR QuickLook with USDZ blob
- Object requires a newer version of iOS HOT 13
- safari artifact issue HOT 4
- Microsoft Edge app browser does not launch AR Quick Look on iOS
- addon boilerplate?
- Invisible occlusion mesh !
- Upgrade to latest version of threejs (r164.1) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from model-viewer.