3D motion compensation for an offshore crane