ok here's this. i want the edges to be clearer cos right now the view is fisheye. and idk how i should add clarity to the walls to distinguish them from walls behind them. thanks!
arrow keys to move, c to switch to overhead view
P#125258 2023-02-03 21:51 ( Edited 2023-02-03 22:03)

1

The fish-eye is caused because you're using the actual distance (ray length) from the camera to the wall to calculate the height of the wall. What you actually want is the perpenicular distance.
This might help: https://permadi.com/tutorial/raycast/rayc8.html
P#125297 2023-02-04 09:40


thanks @dw817 and @jasondelaat ! the article really helped and it's looking much better now :)
P#125340 2023-02-05 03:41
[Please log in to post a comment]