Don't use euler angles for pipeline rotatation, use rotation matrix instead. Don't represent model orientation with euler angles either, use quaternions.