3D
Some examples of 3d graphical systems coded from scratch.
raycasting
This is a first person shooter made from scratch in js.(click anywhere in this section to play it). It is a basic zombie survival game, all of the assets were drawn in paint. This game uses raycasting techniques to produce its graphics.
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++)