aframe-html-shader | A shader to render DOM Element for A-Frame VR | Augmented Reality library

 by   mayognaise JavaScript Version: 0.2.0 License: MIT

kandi X-RAY | aframe-html-shader Summary

kandi X-RAY | aframe-html-shader Summary

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

A shader to render DOM Element for A-Frame VR.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              aframe-html-shader has a low active ecosystem.
              It has 236 star(s) with 70 fork(s). There are 9 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 11 open issues and 6 have been closed. On average issues are closed in 170 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of aframe-html-shader is 0.2.0

            kandi-Quality Quality

              aframe-html-shader has 0 bugs and 0 code smells.

            kandi-Security Security

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

            kandi-License License

              aframe-html-shader is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              aframe-html-shader releases are not available. You will need to build from source code and install.
              Deployable package is available in npm.
              Installation instructions, examples and code snippets are available.
              aframe-html-shader saves you 143 person hours of effort in developing the same functionality from scratch.
              It has 358 lines of code, 0 functions and 35 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed aframe-html-shader and discovered the below as its top functions. This is intended to give you an instant insight into aframe-html-shader implemented functionality, and help decide if they suit your requirements.
            • Encode an array of characters into a string
            • Decode characters in ASCII code .
            • Container for a gradient
            • Calculates the borders of a node
            • Creates a NodeParser object .
            • Font family
            • Calculates the points of a bounding box
            • Creates a Bezier curve for a Bezier curve .
            • Draws a side line
            • Create document from HTML string .
            Get all kandi verified functions for this library.

            aframe-html-shader Key Features

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

            aframe-html-shader Examples and Code Snippets

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

            Community Discussions

            Trending Discussions on aframe-html-shader

            QUESTION

            A-frame mirror the code in my div on a 2d plane
            Asked 2021-Jun-11 at 21:19
            Problem

            I'm creating a 3d scene using a-frame (https://aframe.io) and I need some sort of way to mirror an html div onto a plane inside a-frame. For example, lets say that there is a div with some code where I can draw on it similar a whiteboard on the bottom left corner of the screen. Everything that I draw on the whiteboard should be mirrored to the a-frame plane. That way I should be able to see my whiteboard drawing in my a-frame scene.

            What I've tried

            I've tried using two components the a-frame html embed component (https://github.com/supereggbert/aframe-htmlembed-component) and the a-frame shader component (https://github.com/mayognaise/aframe-html-shader) and both work for displaying html in my scene on a 2d plane however the 2d plane in my scene doesn't mirror the whiteboard and doesn't update. That means when I draw something on my whiteboard, instead of mirroring onto 2d plane and showing what I've drawn in vr, there is just a whiteboard with nothing drawn on it.

            Problem I need solved and the ideal solution

            I need to be able to create a div in html with a whiteboard or other code on it and have the same html be displayed on a 2d plane in my scene. The 2d html on the plane should update meaning if I draw the letter "a" on my whiteboard, the letter a will appear on the 2d plane in my scene. As long as there is a div where I am able to put my 2d html (my whiteboard) and the div mirrors in vr, that would be the ideal solution. Is there some code that could accomplish this?

            Am I missing something with the two component I've tried that allow me to accomplish this? (Two components: https://github.com/supereggbert/aframe-htmlembed-component and https://github.com/mayognaise/aframe-html-shader) Or maybe a different A-frame component?

            Ideally I am seeking the code for a component that allows me to mirror a div onto a 3d plane in my scene, or recommend a component that allows me to display interactable content on a 2d div.

            ...

            ANSWER

            Answered 2021-Jun-11 at 21:19

            Since your whiteboard uses canvas, you can make use of the aframe canvas component.

            Then at the end of your handleUpdate() function you want to call the component's updateTexture() function to update your aframe texture to the current state of the whiteboard.

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install aframe-html-shader

            Install and use by directly including the browser files:.
            Then register and use.

            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-html-shader

          • CLONE
          • HTTPS

            https://github.com/mayognaise/aframe-html-shader.git

          • CLI

            gh repo clone mayognaise/aframe-html-shader

          • sshUrl

            git@github.com:mayognaise/aframe-html-shader.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