Add 3D graphics functions