aframe-ar | Frame support for browser-based augmented reality | Augmented Reality library

 by   chenzlabs JavaScript Version: 0.2.1-a License: MPL-2.0

kandi X-RAY | aframe-ar Summary

kandi X-RAY | aframe-ar Summary

aframe-ar is a JavaScript library typically used in Virtual Reality, Augmented Reality, Three.js applications. aframe-ar has no bugs, it has no vulnerabilities, it has a Weak Copyleft License and it has low support. You can install using 'npm i aframe-ar' or download it from GitHub, npm.

Basic A-Frame support for browser-based augmented reality (AR), supporting the new WebXR AR support in Chrome v81+ as well as WebXR Viewer.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              aframe-ar has a low active ecosystem.
              It has 230 star(s) with 34 fork(s). There are 25 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 0 open issues and 29 have been closed. On average issues are closed in 63 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of aframe-ar is 0.2.1-a

            kandi-Quality Quality

              aframe-ar has 0 bugs and 0 code smells.

            kandi-Security Security

              aframe-ar has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              aframe-ar code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              aframe-ar is licensed under the MPL-2.0 License. This license is Weak Copyleft.
              Weak Copyleft licenses have some restrictions, but you can use them in commercial projects.

            kandi-Reuse Reuse

              aframe-ar releases are available to install and integrate.
              Deployable package is available in npm.
              Installation instructions are not available. Examples and code snippets are available.
              aframe-ar saves you 53 person hours of effort in developing the same functionality from scratch.
              It has 139 lines of code, 0 functions and 11 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed aframe-ar and discovered the below as its top functions. This is intended to give you an instant insight into aframe-ar implemented functionality, and help decide if they suit your requirements.
            • Encode a buffer
            • Require a module .
            • Convert vertices from vertices .
            • Describes a VR hit .
            • call fn
            • initialize e - matrix
            Get all kandi verified functions for this library.

            aframe-ar Key Features

            No Key Features are available at this moment for aframe-ar.

            aframe-ar Examples and Code Snippets

            No Code Snippets are available at this moment for aframe-ar.

            Community Discussions

            QUESTION

            Why does my video only play sound and no video with ARJS?
            Asked 2021-Dec-13 at 14:28

            I'm building an Augmented Reality app with ARJS. I'm using an image as a marker and it seems to be working. The goal is to play a video when the image tracker detects the correct image, however, it plays only the audio and not the whole video.

            index.html

            ...

            ANSWER

            Answered 2021-Dec-13 at 14:28

            There could be multiple reasons, here are some of them:

            1. Make sure there are no console errors and the scene loads properly (your sandbox gave me out of memory!!! issues, also there were some CORS issues).

            2. Make sure that the video is placed on top of the marker. I'd use an oversized box (or the inspector) to find out where is the item, and adjust the position / scale.

            I've made NFT descriptors with your car.jpg resized to 1024x1024, and it seems to be working link to the forked sandbox with new descriptors :

            Source https://stackoverflow.com/questions/70113819

            QUESTION

            AR.js animation doesn'i initialize
            Asked 2021-Oct-19 at 13:47

            Only the first animation(attribute "animation__1_0_f1" in code) work.

            And without the event 'onclick' doesn't initialize alone.

            The size and position doesn't same in the unity project

            Tutorial utilized:

            https://github.com/taylordigital13/ARjs_Unity

            https://www.youtube.com/watch?v=PYs_Y1U2_DI&feature=youtu.be

            ...

            ANSWER

            Answered 2021-Oct-19 at 13:47

            The animation id needs to be unique - you have four animations animation__1_0_f0

            Here only the first animation works (same ids)

            Source https://stackoverflow.com/questions/69631854

            QUESTION

            AFrame - Set Size of Camera Feed
            Asked 2021-Feb-27 at 21:34

            My last question was marked as duplicate: A-Frame AR - Set Size of Scene

            Here is the question that it was marked duplicate of: Aframe and aframe-ar: display video stream in div instead of fullscreen

            Using iframe is not the optimal solution for me, I need the AR to be present on my webpage. The answerer alludes to changing the source code to be able to resize the scene and camera video. Can someone help me achieve this?

            ...

            ANSWER

            Answered 2021-Feb-27 at 21:34

            tldr.

            Afaik arjs has hardcoded sizes and multiple boundaries all over the place to keep the library universal (different devices with different aspect ratios, mobile portrait vs landscape etc...).

            Re-creating it all with "embedding" options would be a huge project so I'll focus on a simple example with a non - resizable window.

            Disclaimer: most of the following is just my take, mostly showing which parts I changed and why. All of this could be done in many other ways.

            0. a wrapper element

            So the idea is to be able to embed the video + scene into some div, like here

            You can see both the video and scene are contained within a div - #arjs-cell. So just after the namespace I've added my variable for keeping my wrapper element, and a setter, which will also reparent the video:

            Source https://stackoverflow.com/questions/66358428

            QUESTION

            aframe glTF cube-env-map
            Asked 2020-Nov-20 at 08:44

            I'm unable to see any reflexion on my gtLF model using "cube-env-map". I'd like to get something like this : helmet from threejs.org examples I don't know if this is because of the .jpg files I use, or html or linked javascript scripts, or... anything else? Here's my html :

            ...

            ANSWER

            Answered 2020-Nov-19 at 23:29

            (Assuming there are no console errors suggesting incorrect cubemap paths, or wrong extensions)

            If your model looks like this:

            And you want it to be more like this:

            Then the answer lies in two factors - metalness, and roughness.

            • roughness determines whether the material is like a mirror (0), or completely diffuses the reflection (1).
            • metalness determines whether the material is metallic (1), or not (0).

            You can deal with this in at least two ways:

            • Modify the materials in a modelling software like blender, or maya.
            • Modify the properties within an a-frame custom component.

            A component would have to wait until the model is loaded, and change all (or some selected) model nodes. Like this:

            Source https://stackoverflow.com/questions/64917091

            QUESTION

            Disable the drag on screen in a-frame AR.js
            Asked 2020-Jul-31 at 06:50

            I am trying to disable the drag feature of A-frame so that if a object is in front of your screen the user can't just drag on the screen and remove it from your front to other place without even moving. Here is what i have tried with the camera, but still the drag is not disabled:

            ...

            ANSWER

            Answered 2020-Jul-31 at 06:50

            According to the documentation, you can set the look-controls "touchEnabled" property to false, it should solve your issue.

            https://aframe.io/docs/1.0.0/components/look-controls.html

            It should do with something like this

            Source https://stackoverflow.com/questions/63168270

            QUESTION

            Click on a button you add after the page is loaded
            Asked 2020-Jul-21 at 02:33

            I create the button through js and add it to the html when the user opens it adds a product to my order and adds a button to remove the same product, and it is in that button that I am giving the problem. The button has the class deletePrato but as it reads the .click () before creating the button it is not reacting as I want

            ...

            ANSWER

            Answered 2020-Jul-21 at 02:26

            You need to use event Delegation so your DOM is listening to the click event for dynamically appended element. by using .on

            Also to get the value of p you need to use attr to retrieve the value of clicked item.

            I have added some comments to each line as well. Change your click function to this below and it should work fine.

            Just FYI - You also do not need the function deletar. Its up-to to have it or not. Event delegation on click will call .deletePrato and will remove the that item you want to.

            Run snippet below.

            Source https://stackoverflow.com/questions/63006093

            QUESTION

            Augmented Reality iFrame in a WordPress Post
            Asked 2020-May-25 at 06:05

            I've got an HTML file hosted in cPanel - https://ar.tiagoperes.eu/ar.html

            ...

            ANSWER

            Answered 2020-May-25 at 06:05

            This problem happens because one needs to ask for camera permission. To fix it, I changed the iframe to

            Source https://stackoverflow.com/questions/61987024

            QUESTION

            Location Based ARJS Example constantly shows alert('Cannot retrieve GPS position. Signal is absent.')
            Asked 2020-Apr-21 at 02:25
            
            
            
            
                
                
                GeoAR.js demo
                
                
                
            
            
            
                
                    
                     
                
            
            
            
            
            ...

            ANSWER

            Answered 2020-Apr-21 at 02:25

            The simple way i can think of is to completely disable all alert by altering alert functionality when the document is "ready."

            Source https://stackoverflow.com/questions/61327663

            QUESTION

            Ar.js image tracking NFT - Error in loading marker on Worker 403
            Asked 2020-Apr-19 at 09:37

            I'm trying the Image Tracking example as explained here - https://github.com/AR-js-org/AR.js#get-started I've replaced the image and video with my own and added the whole project in an Amazon S3 bucket. When I run the html page, I get an error in the browser console "Error in loading marker on Worker 403". I'm assuming this indicates that the NFT image is somehow not loading. There are no CORS errors, or any other unauthorized errors indicated in the console.

            Things I've tried after going through some pages on stack overflow (but they didn't help)-

            • Initially the image I was using was very basic, so I changed to the Pinball image so that AR.js gets more descriptions.

            • Disabled my chrome extensions like Ad Blocker etc.

            Can someone help me with what is wrong or missing for the NFT to load properly?

            Here's my code -

            ...

            ANSWER

            Answered 2020-Apr-08 at 01:54

            The marker you are using is a .jpg image which is not what a-nft need. You need to make the NFT from your image using this Carnaux NFT Marker Creator (which takes time)

            Or follow this docs for Node version AR.js NFT Marker Creator Docs


            Edit: Also, you are using but with .mp4 (video).

            gltf-model is for .gltf or .glb format (3D model). If you want to use video use a-video

            Source https://stackoverflow.com/questions/61047886

            QUESTION

            ar.js 3d model doesn't show up
            Asked 2020-Mar-24 at 10:53

            I've just started learning to create AR scenes with AR.js and I'm having some trouble with loading custom 3D models. I've tried many examples and all of them work perfectly, but once I insert my own model, it just doesn't show up. I used almost the same exact code for the given example and for my 3D model, which is this one:

            ...

            ANSWER

            Answered 2020-Mar-24 at 10:53

            The model won't show up because of two factors:

            1. The model is huge and off - centered. Scaling it by 0.01 moves it a bit towards the center.

            If your model shows up in Dons gltf-viewer - always try out your model in vanilla a-frame - at least in a fiddle. Its easy to inspect, debug, and you can be sure whether a-frame is causing the trouble.

            1. Glitch assets is not a folder. It may look this way for our convenience, but it's just a bunch of links. So scene.gltf is searching for scene.bin in its current directory (edit and search the gltf file - its human readable), but it's not there.

            Replacing the paths with glitch urls is a bad idea (usually there are way more paths than just the .bin). You should push the model into a github repository, where the directories work as expected.

            Working arjs glitch here.

            Source https://stackoverflow.com/questions/60816750

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install aframe-ar

            You can install using 'npm i aframe-ar' or download it from GitHub, npm.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • npm

            npm i aframe-ar

          • CLONE
          • HTTPS

            https://github.com/chenzlabs/aframe-ar.git

          • CLI

            gh repo clone chenzlabs/aframe-ar

          • sshUrl

            git@github.com:chenzlabs/aframe-ar.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link