The most basic form of a tri based 3d engine. Controls: WASD for movement QE to move up and down arrow keys to look around Problems with this version: 1. [fixed] When any points are offscreen the cube "squishes." This can be solved with the Sutherland-Hodgman algorithm (or with a big costume trick). 2. Points behind the camera are rendered in front. This causes issues when the cube is behind you, when the cube is to your side, and you are inside the cube. I have been working on a solution, I will post it when it is complete. 3. This renderer has not Z-sorting. You can't tell because I'm using wireframes, but the renderer does not draw the triangles in the correct order. I will not be solving this problem in the next video, but I will for the video after that. The math is a little more complicated and I want to dedicate more time to this problem.
NOTE: THIS IS NOT THE FINAL PROJECT. v2 is out: https://scratch.mit.edu/projects/1035836128/ Credits: All me Notes: X is forward according to the starting orientation, Z is left/right, Y is up and down. I suppose I should start working on the video pretty soon :\