Convert frame number to z coordination

Like by