DIY 3D engine relying on matrix transformations