Code Monkey home page Code Monkey logo

ar-button's People

Contributors

leoncvlt avatar mtdmali avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

adrianb-ens

ar-button's Issues

src must be a glb file not a gltf?

Ive been experimenting with this repo trying to replicate the examples on my own server inside a react app. A couple of hurdles but we got there eventually and are able to launch a .glb file fine just like the example.

However we noticed that gltf files dont work (Object could not be loaded.) - The same object works in the native model-viewer. Is there a reason behind this or a workaround? The authoring process we have makes use of easily produced gltf files, but not so much glb.

E* - Is it also possible to make use of model-viewers auto-generating USDZ ?

:)

quick-look-button-tapped

Hey, thanks for this code. However the eventlistener doesn't work on your example or when trying on my end.
Any suggestions?

YOUR CODE:

  <script>
    const arButton = document.querySelector("ar-button");
    arButton.addEventListener("quick-look-button-tapped", () => {
      window.location.href = "https://https://www.nasa.gov/";
    });
  </script>

APPLE DEV CODE which works using a regular A link, but just not using your ar-button

<script>
document.getDocumentbyID("ar-link-2").addEventListener("message", function (event) {   
    if (event.data == "_apple_ar_quicklook_button_tapped") {
        window.location.assign("https://google.com");
    }
}, false);
</script>

Any assistance would be great. Thanks!

Using this for webxr?

I really like this project and wanted to know how this could be used for webxr ar viewing instead of scene viewer?

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.