Giter Site home page Giter Site logo

java-swing-raymarching-multithreaded's Introduction

Java-Swing-Raymarching-Multithreaded

Video: https://www.youtube.com/watch?v=0KcN5l9NG0Q

This is a simple Java Swing project where we take a voxel bitmap (array of bits), convert it to a distance field (array of double) using the marching parabolas algorithm, generate a normal field from the distance field (array of doubles, 3 doubles per normal). The distance field tells us how far away the closest voxel is, allowing rays from the camera to be marched through the voxel grid in an optimal manner. Once a hit is found, diffuse lighting calculations are made and reflections are done via the normal field, and a 360 degree photosphere is sampled for environmental reflections. Example models are included, with instructions in the Main.java file to achieve the renders shown in the video. This application is realtime and multithreaded and is set to 12 threads by default, change this in the Main.java file.

java-swing-raymarching-multithreaded's People

Contributors

fuzzycat444 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.