2024-Adoor / Re_less

Re□less - 숭실대학교 글로벌미디어학부 2024 졸업작품
0 stars 0 forks source link

VR에서 플레이어 위치와 실제 트래킹 위치가 쉽게 달라짐 #20

Closed plwast-ints closed 5 months ago

plwast-ints commented 5 months ago

Recenter 관련

plwast-ints commented 5 months ago

플레이어 콜라이더에 디버그용 시각화 오브젝트 추가한 다음 빌드에서 직접 콜라이더 문제 확인이 필요합니다.

plwast-ints commented 5 months ago

화면 캡처 2024-05-13 001117 지금까지 VR 세계에서 바닥 위치가 실제보다 위로 올라와 있는 문제가 있었는데, 35db976 에서 그 문제를 해결했습니다.

콜라이더의 맨 아래가 y=0이 되도록 하는 것이 중요합니다. 즉 중앙의 y값을 크기 y의 절반으로 해서 오프셋되도록 해야 합니다. 이렇게 해야 크기가 아무 상관이 없고 카메라가 실제 착용자의 키높이로 맞추어집니다.

plwast-ints commented 5 months ago

이상하게도 OVRManager.display.RecenterPose()는 전혀 동작하지 않습니다.

plwast-ints commented 5 months ago

이상하게도 OVRManager.display.RecenterPose()는 전혀 동작하지 않습니다.

https://communityforums.atmeta.com/t5/Unity-VR-Development/OVRManager-display-RecenterPose-Can-t-work-on-Quest/td-p/783666

Per another thread here, Oculus has purposefully disabled recentering from within an app on Quest - apparently they want the user to do it manually.

아니 비활성화한걸 왜 아무 말도 없이 API에 그대로 넣어놓지

잠재적인 해결 방안:

plwast-ints commented 5 months ago

커밋 90133769839c93787717704ae72480266eca2487 이후 로드 후에 중심이 맞는 것을 확인했습니다. 게임 중에 틀어지는 것은 버튼을 누르게 하는 것 외엔 따로 방법이 없을것 같습니다.