Added 3D rendering code.