전체 글 292

[Meta Quest, VR, Oculus] 유령 Icon, Mesh, Line, Hand 만들기 (Create Ghost Reticles, Create Ghost Icon Reticle, Create Ghost Mesh Reticle, Create Ghost Line Reticle, Create Ghost Hand Reticle)

시작 전 멀리있는 물체 잡기 상호작용이 되어있어야함 https://developer.oculus.com/documentation/unity/unity-isdk-create-ghost-reticles/ Create Ghost Reticles | Oculus Developers developer.oculus.com 유령 아이콘 십자선 만들기(Create Ghost Icon Reticle) 1. 빈 오브젝트를 만들고 ReticleLeftHand, ReticleRightHand, ReticleLeftControllerHand, ReticleRightControllerHand 총 4개 빈오브젝트 이름 수정해서 만들기 2. 만든 빈 오브젝트 4개에 ReticleIcon prefab 집어넣기 3. ReticleIco..

VR 콘텐츠 기초 2023.10.25

[Meta Quest, VR, Oculus] 멀리있는 물체 잡기 (Create Distance Grab Interactions)

1. OVRHands > LeftHand > HandInteractorsLeft 에 DistanceHandGrabInteractor prefab 추가하기 2. HandInteractorsLeft의 Inspector에서 Best Hover Interactor Group Scripts에 DistanceHandGrabInteractor 추가하기 3. RightHand에도 적용해주기 - ControllerHands에도 똑같이 적용가능 큐브구성 HandGrabInteractable은 빈 오브젝트로 만들어서 이름 수정해준 것 그리고 빌드하면 큐브가 따라온다. 만약 큐브가 멀리서 따라오지않는다면 큐브구성에서 큐브 자체에 y축과 z축을 변경한게 아닌지 확인

VR 콘텐츠 기초 2023.10.25

[Meta Quest, VR, Oculus] Oculus Link 연결 없이 손 잡는 포즈 만들기 (Create a Hand Grab Pose)

그냥 Hands만 사용하는 경우, OVRLeftHandSynthetic과 OVRRightHandSynthetic을 OVRHands에 부착 각각의 손들로 들어가서 HandVisualsXXX를 비활성화한다. 각각 손들의 HandInteractorsXXX로 들어간다. HandGrabInteractor에 접근한다. HandGrabInteractor의 자식 Visuals에 접근한다. Visuals의 자식 2개가 비활성화 되어 있는데 활성화 시킨다. 그리고 HandGrabVisual에 인스펙터를 들어간다. Synthetic Hand가 비어 있는데 여기에 각각 손에 맞는 OVRXXXHandSynthetic을 assign 해준다. 그 다음 HandGrabGlow의 인스펙터로 접근한다. Hand Renderer, Mat..

VR 콘텐츠 기초 2023.10.24

[Meta Quest, VR, Oculus] 던지기(Throw an Object)

1. Interaction SDK 초기설정과 잡기(Create Hand Grab Interactions)를 설정 완료해야한다. 2. Cube에 Physics Grabbable을 추가해준다. (Grabbable 삭제 X) 3. Physics Grabbable에서 Grabbable, Rigidbody에 Cube를 추가해준다. 4. Hand Grab Interactable이나 Grab Interactable의 하단 Optionals를 펼쳐서 Physics Grabbable에 Cube를 추가한다. 5. OVRInteraction > OVRHands > LeftHand 의 자식으로 HandVelocityCalculator prefab을 추가해준다. 6. LeftHand > HandInteractorsLeft > ..

VR 콘텐츠 기초 2023.10.20

[Meta Quest, VR, Oculus] 잡기(Create Grab Interactions) - 초기설정

1. Interaction SDK 초기설정을 마쳐야함 2. OVRCameraRig > OVRInteraction > OVRHands> LeftHand > HandInteractorsLeft 에 HandGrabInteractor를 넣어준다. 3. Right에도 마찬가지로 해준다. 4. HandGrabInteractor를 HandInteractorsLeft의 Best Hove Interactor Group의 Interactors로 넣어준다. 5. Right에도 마찬가지로 해준다. 6. OVRControllerHands와 OVRControllers도 마찬가지이다. 7. Cube를 생성해주고 Box Collider의 is Trigger를 체크해준다. 8. Cube에 Rigidbody를 추가해주고 Use Grav..

VR 콘텐츠 기초 2023.10.20

[Meta Quest, VR, Oculus] OVRCameraRig 설정, Interaction SDK 시작하기

https://developer.oculus.com/documentation/unity/unity-isdk-getting-started/ Getting Started with Interaction SDK | Oculus Developers developer.oculus.com 1. OVRCameraRig 추가 , MainCamera 삭제 2. OVRCameraRig의 Inscpector> OVRManager에서 Tracking Origin Type을 Floor Type으로 변환 3. OVRCameraRig의 자식으로 OVRInteraction 추가 4. OVRCameraRig의 Inspector> Hand Tracking Suppor, Hand Tracking Frequency, Hand Tracking..

VR 콘텐츠 기초 2023.10.20

OculusVR - 큐브 만지면 가운데 있는 큐브 색 변경

큐브 색 조정 만지면 가운데 큐브가 그 내가 만진 큐브의 색으로 변하게 만들어줬다. 대리자사용 X using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class Cube : MonoBehaviour { [SerializeField] private Material matUnSelect; [SerializeField] private Material matSelect; [SerializeField] private TestCube cube; private MeshRenderer meshRenderer; private void Start() { this.meshRenderer = this..

VR 콘텐츠 기초 2023.10.20

OVRCameraRig, OVRHandPrefab, OVRHands - 초기설정

https://developer.oculus.com/documentation/unity/unity-isdk-getting-started Getting Started with Interaction SDK | Oculus Developers developer.oculus.com https://developer.oculus.com/documentation/unity/unity-isdk-create-hand-grab-interactions/ Create Grab Interactions | Oculus Developers developer.oculus.com LeftHandAnchor와 RightHandAnchor에만 붙여서 사용하면됌 핸드트래킹 설정 OVRHandPrefab 설정 큐브 설정 VR 버튼 using..

VR 콘텐츠 기초 2023.10.19

InMindVR - OnGvrPointerHover, OnPointerEnter, OnPointerExit Hover[보는 상태일 때 Infomation 창 띄우기], Enter[들어갔을 때 btnYes or No를 봤으면 Popup창을 띄우거나 안띄우기], Exit[Popup창 삭제하기]

Player의 Body Mesh Renderer 끄기 - 360도 돌 때 내 몸이 보임 카페에 있는 GoogleVRForUnity Import하기 메인카메라에 부착 대리자 사용 X 일단 구현을 해봤고, 잘되었다. using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; public class Car : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler, IGvrPointerHoverHandler { [SerializeField] private PlayerAI playerAi; [Serial..

VR 콘텐츠 기초 2023.10.18

InMindVR - AI Navigation, NavMeshAgent, NavMeshSurface, WayPoint 이동

using System; using System.Collections; using System.Collections.Generic; using System.Text; using UnityEngine; public class Player : MonoBehaviour { [SerializeField] private Transform[] wayPoints; [SerializeField] protected float moveSpeed = 1f; protected Transform nextPoint; protected System.Action onMoveComplete; protected Coroutine coroutine; protected Queue queue = new Queue(); void Start()..

VR 콘텐츠 기초 2023.10.18