Git Product home page Git Product logo

Comments (4)

VikAdvani avatar VikAdvani commented on May 17, 2024 2

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.

dam00n avatar dam00n commented on May 17, 2024

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.

ashtonlance avatar ashtonlance commented on May 17, 2024

Is there way to do this dynamically within the app?

from viro.

achuvm avatar achuvm commented on May 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.