Raycaster v2.1.1

10,152
0
Published 2021-06-24
Use Chrome or Edge to increase FPS

Demonstration Controls
- WASD, Arrow Keys, or Touchscreen to move
- L/R Arrow Keys or Touchscreen to turn
- M to view a minimap

FPS is displayed in the top right corner.

Unlike other raycasters, this raycaster uses an adaptive method in order to achieve higher framerates. This means that instead of casting one ray for every column, local geometry and interpolation are used to skip over most rays. The Show Rays Only option is available in this demonstration, showing only the columns where rays were cast. All columns hidden using this setting were calculated using either interpolation or local geometry.

This raycaster uses the third version of my adaptive raycaster algorithm. This algorithm uses fewer rays than before for higher and more consistent performance.

Version 1 may be viewed at https://scratch.mit.edu/projects/414675446/ or https://scratch.mit.edu/projects/415120036/
Version 2 (beta) may be viewed at https://scratch.mit.edu/projects/474173882/

Other raycasters (not created by me)
- https://scratch.mit.edu/projects/321563697/
- https://scratch.mit.edu/projects/196528109/
These raycasters inspired the overall look of this raycaster.

Changelog

v2.1.1 (2021-06-25)
- Slightly increased reflection rendering performance
- Made very minor optimizations to casting rays

v2.1 (2021-06-24)
+ Added reflections option that works only when fast mode is disabled
- Improved fog when fast mode is disabled
- Fixed horizontal alignment bug with fast mode disabled
- Gridlines are now less detailed and faster to render when fast mode is enabled

v2.0.1 (2021-06-23)
- Fixed a minor bug with adaptive sampling

v2.0 (2021-06-23)
- Released