RayMarching | RayMarching Visualiser

 by   nullopt JavaScript Version: Current License: No License

kandi X-RAY | RayMarching Summary

kandi X-RAY | RayMarching Summary

RayMarching is a JavaScript library. RayMarching has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

This project contains a tester project to explore vector collision (vectorcollision) and an implementation project that visualizes the ray marching algorithm (raymarch). As a gamer, this helped me learn about what goes into the games that I play. I’ve discovered the main differences between Ray Tracing and Ray Marching. Vector Collision allowed me to experiment with ways to detect if a vector collided with another. * I experimented with the initial idea of looping through all the positions between the origin position and the MAX_LENGTH of each ray casted and checking if the distance to each shape is within a certain threshold. * This proved to be pretty resource heavy as it would be O(n²) * ~javascript const getIntersections = () ⇒ { const theta = (angle * Math.PI) / 180; let x, y; for (let i = eye.origin.outerDistance(shapes[0].origin); i MAX_LENGTH; i) { x = eye.origin.x + i * Math.cos(theta); y = eye.origin.y + i * Math.sin(theta); const endPoint = new Vec2(x, y); for (let j = 0; j < shapes.length; j) { const s = shapes[j]; if (s.origin.isInArea(eye.origin)) { return; } if (endPoint.outerDistance(s.origin) < 1 && !s.origin.isInArea(endPoint)) { intersects.push(endPoint); return; } } } }; ~ * I relearnt vector math. * I ran investigations into OOP programming in JS which proved to be quite useful when paired with ES6 export.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              RayMarching has a low active ecosystem.
              It has 1 star(s) with 0 fork(s). There are 1 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              RayMarching has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of RayMarching is current.

            kandi-Quality Quality

              RayMarching has no bugs reported.

            kandi-Security Security

              RayMarching has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              RayMarching 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

              RayMarching releases are not available. You will need to build from source code and install.
              Installation instructions are not available. Examples and code snippets are available.

            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 RayMarching
            Get all kandi verified functions for this library.

            RayMarching Key Features

            No Key Features are available at this moment for RayMarching.

            RayMarching Examples and Code Snippets

            No Code Snippets are available at this moment for RayMarching.

            Community Discussions

            No Community Discussions are available at this moment for RayMarching.Refer to stack overflow page for discussions.

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

            Vulnerabilities

            No vulnerabilities reported

            Install RayMarching

            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/nullopt/RayMarching.git

          • CLI

            gh repo clone nullopt/RayMarching

          • sshUrl

            git@github.com:nullopt/RayMarching.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