Comments (4)
Hi @atlance01,
Good question! Once you are displaying a Viro scene there isn't a way as of now to switch between mono and VR mode dynamically. However it is something we'll look to support.
You can get functionality working much like our testbed app where you have a native dialog asking the user if they have a headset, then depending on what they answer, set the proper mode before they enter the scene. Let me know if you have any more questions regarding this issue. Thanks!
from viro.
To enable mono (or non-VR) mode, add the highlighted line below to your index.android.js or index.ios.js file. This will let you view the app without a headset. Documentation for this prop can be found under ViroSceneNavigator.
<ViroSceneNavigator apiKey="YOUR API KEY"
initialScene={{scene: InitialScene}}
vrModeEnabled={false}
/>
from viro.
Is there way to do this dynamically within the app?
from viro.
Closing this issue due to lack of activity.
Feel free to reopen this issue, create another issue or contact us at [email protected].
Thanks!
from viro.
Related Issues (20)
- I want to use this in React-Native Web. is that possible ?
- Can I use viro use build app clip for iOS ? HOT 2
- extrusionDepth in ViroText renders wrong when it located inside of ViroFlexView
- Problem with Viro and RN 0.72 HOT 4
- Video crashes on Android due to some wrong exoplayer2 dependency
- Video doesn't stop on most of iPhone/iOS versions when AR scene is unmounted causing memory leaks
- App crashes when navigating to ViroARSceneNavigator from StackNavigator. HOT 1
- React-native version HOT 8
- My texture of Viro3DObject doesn't work properly.
- Rigged 3D models disappearing in AR depending on camera angle (Skeletal animation)
- Move object along detected ground plane via camera center (without dragging/touch events)
- Background AR wide angle camera ?
- Get measure of items via ARKit
- Viro3DObject always moves with the phone, not fixed to one position HOT 1
- i can't access to viro document.
- How to render body tracking with ARkit and ARCore
- ViroVideo playing videos very slow after some seconds
- App crashes on using ViroVideo! HOT 4
- Invariant Violation: requireNativeComponent: "VRT3DObject" was not found in the UIManager in React Native 0.72.4 HOT 1
- ViroVideo sound doesn't work
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 viro.