Category : ar.js

Sorry in advance, I am a complete beginner regarding programming, but I cant seem to find an answer to my problem. I made this basic setup from AR.js: <html> <script src="https://aframe.io/releases/1.2.0/aframe.min.js"></script> <script src="https://rawgit.com/donmccurdy/aframe-extras/master/dist/aframe-extras.loaders.min.js"></script> <script src="https://cdn.rawgit.com/jeromeetienne/AR.js/1.5.0/aframe/build/aframe-ar.js"> </script> <a-assets> <a-asset-item id="rub" src="models/rubcube.gltf"></a-asset-item> </a-assets> <body style=’margin : 0px; overflow: hidden;’> <a-scene arjs="debugUIEnabled: false;"> <a-marker-camera preset="hiro"> <a-entity gltf-model="#rub" scale=" ..

Read more

BUG Android is working fine but IOS seems not working or has no result with nft. Testing with an android device, it can show the ar image, but nothing with IOS chrome. Would anyone kindly help to test or know the problem? thank you. Here is the sample: https://wardhk.xyz/ar/1code.html the image targe: https://wardhk.xyz/ar/3.jpeg Source: Ask ..

Read more

Hey I have set up a Scene, where I use the simulate Coordinates property of the gps-camera. Like this: <a-scene embedded arjs renderer="logarithmicDepthBuffer: true;" vr-mode-ui="enabled: false" gesture-detector id="scene"> <a-marker type="pattern" preset="custom" url="pattern/ifgi-pattern.patt" id="ifgi-marker"> </a-marker> <a-entity position="0 0 0" scale="0.5 0.5 0.5" gps-entity-place="latitude: <lat>; longitude: <lon>;" gltf-model="/gltf/truck_model/scene.gltf"> </a-entity> <a-camera gps-camera="simulateLatitude: <lat>; simulateLongitude: <lon>;" rotation-reader id="camera"> </a-scene> ..

Read more

I’m trying to play a sound just once when a marker is detected with the A-frame and AR.JS libraries. I’m trying the code lines below but the sound is playing indefinite. <a-scene embedded arjs=’sourceType: webcam; debugUIEnabled: false;’;> <a-assets> <audio id="sound" src="audio.mp3" preload="auto"></audio> </a-assets> <a-marker preset="hiro"> <a-entity id="examplemodel" gltf-model="./models/Example.glb" soundhandler></a-entity> </a-marker> <a-entity sound="src: #sound" autoplay="false"></a-entity> <a-entity ..

Read more