Skip to content

A visualization and calculation of Ray Marching inside a 2D space

Notifications You must be signed in to change notification settings

jetsonblack/raymarcher-java-2D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Built 2D Ray Marcher

The ray marching algorithm uses a signed distance function (SDF) to determine the distance from the current point along the ray to the nearest object in the scene. The SDF takes the position of a point in space as input and returns a value that is negative inside an object, positive outside it, and zero at the object's surface.

The ray marching algorithm iteratively steps along the ray in small increments, computing the SDF at each point, until it finds a point where the SDF is zero, indicating that the ray has intersected with an object.

Demo

Authors

Features

  • Real Time Calculations and Visualizations based on Mouse Movement
  • Angle can be changed by either Mouse Clicks, or the Arrow Keys
  • Random Generation of Shapes in a given JPanel
  • Visualization of Ray Marching as a concept in a 2D Space

About

A visualization and calculation of Ray Marching inside a 2D space

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages