Raycast Engine Progress 1
I’ve recently started building a raycasting engine using QT. Here are my (simple) results so far.
Implementation
I created a View based on QGraphicsView. I then added a scene to this (inherited from QGraphicsScene) which contains 240 rectangles. Each rectangle represents a slice from the raycasting algorithm (one ray = one rectangle).
The math was from a tutorial I found online. It’s really a great source to getting started.
Results so far
So far, I have a rectangular room that renders a solid color for walls. You are able to rotate using the mouse right now, but there are still some bugs to fix!
Check out the source on github.


