Demo of a 3D cube with back-face culling Look, you can see inside the cube?! ;-)
My attempt at back-face culling. Haven't completed the math for more dynamic sizes and positions yet, but It's doable. Still need to make some kind of object-sorting algorithm... Now I'm using triangles instead of squares/rectangles to make the faces. Putting together two triangles makes a square/rectangle. Also added some light-effects depending on the visible face-side. Can still be faster if I optimize the filler, but this will do for now. And then there is clipping, phew, still some skills to master here...