leoncvlt / ar-button Goto Github PK
View Code? Open in Web Editor NEW๐ฒ Web component to easily display 3D models in native AR across browsers and mobile devices
License: Apache License 2.0
๐ฒ Web component to easily display 3D models in native AR across browsers and mobile devices
License: Apache License 2.0
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 ?
:)
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!
I really like this project and wanted to know how this could be used for webxr ar viewing instead of scene viewer?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.