3D

Some examples of 3d graphical systems coded from scratch.

three_d

View frustumn

Below is a view frustum. It works by a complex series of cross products between a variety of matrices. each cross product changes the co-ordinates into a different axis system, until finally they're reformatted to the screen x and y coordinates given the perspective of the camera.
This system works to some degree but i'm still working on more features it needs. It mainly just needs the clipping system completed for when vertices are off-screen.
I've recently abandoned work on my JavaScript view frustum in favor of a c++ version due to the ridiculous difference in performance. my c++ script can easily run at over 1000 frames per second. (i doubt my tv even refreshes anything like that, but still, this type of thing is clearly done best in c++)

Click the box above to make sure it's the active element and use the wasd keys to control the camera.