spark-ar-lookat-example | How to use the Look AT api in Spark AR

 by   aferriss JavaScript Version: Current License: No License

kandi X-RAY | spark-ar-lookat-example Summary

kandi X-RAY | spark-ar-lookat-example Summary

spark-ar-lookat-example is a JavaScript library typically used in Big Data, Spark applications. spark-ar-lookat-example has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

How to use the Look AT api in Spark AR
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              spark-ar-lookat-example has a low active ecosystem.
              It has 19 star(s) with 7 fork(s). There are 3 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 0 open issues and 2 have been closed. On average issues are closed in 14 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of spark-ar-lookat-example is current.

            kandi-Quality Quality

              spark-ar-lookat-example has 0 bugs and 0 code smells.

            kandi-Security Security

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

            kandi-License License

              spark-ar-lookat-example does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              spark-ar-lookat-example releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of spark-ar-lookat-example
            Get all kandi verified functions for this library.

            spark-ar-lookat-example Key Features

            No Key Features are available at this moment for spark-ar-lookat-example.

            spark-ar-lookat-example Examples and Code Snippets

            No Code Snippets are available at this moment for spark-ar-lookat-example.

            Community Discussions

            QUESTION

            How to use SparkAR's LookAt when parents of the object to rotate have a rotation
            Asked 2021-Feb-01 at 14:07

            In SparkAR I want to have an element (called toRotate) that always looks at the camera, similarly to what already asked here (but the accepted solution is not satisfactory to me and I do not have enough reputation to answer with a comment to it).

            The catch is that this element is in a hierarchy that cannot be modified: the order must absolutely be root->planeTracker->parent->toRotate as shown in this screenshot (seems like I do not have enough reputation to inbed the image).

            By using the lookAt function (thanks to this github repo I understood that I had to create a toRotateDuplicate sibiling to toRotate and with same local position, and then use its transform instead) I can have it working just fine when in the Editor but once I try it on device my toRotate has a weird rotation instead..

            After some tests, I could tell that the issue was coming from the fact that the planeTracker has a rotaion equal to Quaternion.Identity only on editor, while on device the value varies.
            This is also proved by the fact that if replacing the planeTracker by an empty node and applying a not-identity rotation to it, we have the "weird rotation" issue even on editor.

            This is my code:

            ...

            ANSWER

            Answered 2021-Feb-01 at 12:34

            I've found an "hacky" solution:
            Create another sibiling to our toRotate called cameraDuplicate, which mirrors the worldPosition of the Camera object.. Since all used transform in the lookAt logic are on the same hierarchy level now, I can use local transforms instead of the world ones ^^'

            This is the updated code:

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install spark-ar-lookat-example

            You can download it from GitHub.

            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
            CLONE
          • HTTPS

            https://github.com/aferriss/spark-ar-lookat-example.git

          • CLI

            gh repo clone aferriss/spark-ar-lookat-example

          • sshUrl

            git@github.com:aferriss/spark-ar-lookat-example.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