https://www.youtube.com/playlist?list=PLpEoiloH-4eMRR8wAfy22ecQeCT2tIuMD
https://www.youtube.com/watch?v=1FRqniErAfs&list=PLpEoiloH-4eMRR8wAfy22ecQeCT2tIuMD&index=1&ab_channel=ValemTutorials
在project setting设置XR plug-in management - 勾选oculus(桌面&安卓)
Download the Oculus Integration Package :https://assetstore.unity.com/packages/tools/integration/oculus-integration-82022
删除原相机,添加OVRCameraRig prefab到场景
添加控制器模型并指定
添加手部模型,prefab 组件属性中需指定对应左右手
添加 inputOVR - 包含控制器与手势的数据传递
for V39 integration update, you first need to add the "interactaction OVR Camera Rig" script to the OVRCameraRig gameobject before adding the reference to InputOVR - that may be the reason some of you don't see your hands
EDIT: TO UPGRADE TO V2 HAND TRACKING !!!
Go to your OVR Camera Rig and inside the OVR manager script in the inspector, go down to the "quest features" menu. Under Hand Tracking Version, change it to "V2". Use this time to also make sure hand tracking support is enabled in the menu and also feel free to mess with hand tracking frequency. I'm not sure it even works for me yet since V1 and V2 feel the same but it may work for you
将cameraRig拖拽指定,you need to add first a "Interaction OVR Camera Rig" component to the OVR Camera Rig and then you will be able to drag it.
由于模型重叠,需要移除rig下的渲染组件;剩下两个组件inputOVR仍然需要
思路:设置 interactor & interactable
设置控制器抓取
添加ControllerGrabInteractor 到inputOVR下的控制器
组件中指定左右控制器(both
在controllerInteractor的列表中指定子集的controllerGrabInteractor(both
设置手抓取
添加prefab
指定手部(both
设置互动物件
设置手柄抓取
为物件添加属性
可手柄的关掉debug指示
设置手抓取
为物件添加属性
If you still can't grab the object by hand, select the InputOVR from the scene then go to the input data provider update component and make sure to untick Enable Update & Enable Fixed update options. 如果手抓取不生效,关掉这两个选项
设置手柄 & 手抓取
限制物体抓取的移动范围(translation movement
添加 one grab translate transformer
在grabbable中指定约束(拖拽上去
限制物体抓取的旋转范围
添加 two grab free transformer
指定到grabbale的two grab transformer
添加 one grab free transformer 并指定以添加对单手的支持
hand grab interactable 需要设置snap type为none
https://blog.immersive-insiders.com/setting-up-oculus-hand-interaction/
https://developer.oculus.com/documentation/unity/unity-isdk-grabbable/
https://www.youtube.com/watch?v=67hPv3C11Rk&list=PLpEoiloH-4eMRR8wAfy22ecQeCT2tIuMD&index=3&ab_channel=ValemTutorials
https://blog.immersive-insiders.com/oculus-hand-interaction-basic-grab-part-2/
There is no more Hand Recordable and Hand Recorder, now to record a pose you can simply go at the top > Oculus > Interaction > Hand Pose Recorder and the rest is the same as shown in this video !
为需要设置的物体,如马克杯添加属性
Add a Rigidbody, a Mesh Collider and a Grabbable component to it → make sure to check the box for Is Kinematic parameter of the Rigidbody component and also the check the box for Convex parameter of the Mesh Collider component.
To record the hand pose:
Oculus
→ Interaction
→ Hand Pose Recorder
. This will open up the hand pose recorder window.mugMesh
GameObject into the Recordable parameter of the hand pose recorder. Basically, the object for which we are recording a hand pose should be set as a Recordable.GhostProvider
.Record Pose
button.Store Poses
button.打开录制面板
指定录制手(under play state
添加存储位置
打开 ghost provider
打开Gizmos视图微调位置
可以设置抓取状态手指关节位置、约束
创建镜像手
修正抓取错位
The Hand Synthetic prefab has been changed slightly, Now instead of dragging the Left hand or the right hand in the Synthetic Hand Modifier component, you need to drag them in the Synthetic Hand component of the Hand Modifier children. Then, the "Hand Grab Interactor Visual" component used at 6:47 is missing, you can add it back to the Hand Modifier gameobject and do the same setup as shown in the video
关闭原先的 hand visual
添加 left/right hand synthetic 到原先子集
设置 modify data
添加 Hand Grab Interactor Visual 在 handModifier 下,拉取参数
https://www.youtube.com/watch?v=bkn-daQzALQ&list=PLpEoiloH-4eMRR8wAfy22ecQeCT2tIuMD&index=4&ab_channel=ValemTutorials