2D and 3D rendering system