The actual rendering code for the 3DEngine rendering engine