Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/s-litvin/raycasting
Browse files Browse the repository at this point in the history
  • Loading branch information
s-litvin committed Sep 17, 2020
2 parents 9db380b + 50d9b06 commit 8073c36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

Ray casting is the most basic of many computer graphics rendering algorithms that use the geometric algorithm of ray tracing. Ray tracing-based rendering algorithms operate in image order to render three-dimensional scenes to two-dimensional images. Geometric rays are traced from the eye of the observer to sample the light (radiance) travelling toward the observer from the ray direction. The speed and simplicity of ray casting comes from computing the color of the light without recursively tracing additional rays that sample the radiance incident on the point that the ray hit. This eliminates the possibility of accurately rendering reflections, refractions, or the natural falloff of shadows; however all of these elements can be faked to a degree, by creative use of texture maps or other methods. The high speed of calculation made ray casting a handy rendering method in early real-time 3D video games.

For monochrome displays added ordered dithering algorithm of wall drawing.

## Demo
Control the camera view with the keyboard arrow and the mouse.

Check demo on GitHub page: https://s-litvin.github.io/raycasting/

![alt text](https://raw.githubusercontent.com/s-litvin/raycasting/master/preview.png)

![alt text](https://raw.githubusercontent.com/s-litvin/raycasting/master/preview2.png)
Binary file added preview2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8073c36

Please sign in to comment.