Pseudo 3D (RayCasting) in GameLab

Hello all,
I made a demo of a pseudo-3D rendering technique called RayCasting. Not to be confused with RayTracing, RayCasting sends out rays in a 2D area, and uses the distance of the first collision for the corresponding columns height.

here’s a link to the project, use Left/Right arrow keys to turn, and Up/Down to move.

1 Like

Edit:
I have changed some of the code to make it run a bit faster.
Edit 2:
This is the same rendering method that retro games like Wolfenstein 3D and the original DooM used.
Edit 3:
You could probably make this more accurate with some form of ray marching.

1 Like

Very cool! Thanks for sharing!

–Michael K.

1 Like