04-11-2022 04:57 PM
I started experimenting with unity to grab and interact with objects. I am using Oculus Integration and available Oculus prefabs "OVRControllerPrefab" for quest 2 controllers and "OVRCustomHandPrefab" for hand tracking. The hand tracking works great the problem is when I switch to the controllers, the controller prefabs also display hand models attached to them. If I unselect the mesh of the prefab from the hierarchy then the hand models are not visible on both the controller and when I want them to. Should I do changes to the script or is there some wrong setting in the hierarchy?
When I use "OVRHandPrefab" instead they work as intended and do not appear attached to the controller but the custom hands look better. Additionally, OVRHandPrefab do not appear visible on the Scene screen unlike the other ones. Maybe I should be using "OVRRuntimeController"? But when I toggle only that one with controllers set as L Touch and Left Hand etc no prefab appears.
The Hierarchy is as follows:
All scripts are the original ones provided by Oculus and the Inspector settings should be as indicated by Oculus. After all, as I said OVRHandPrefab works as intended along with OVRControllerPrefab but I rather use the custom one. Thanks in advance for your help
04-13-2022 10:58 AM
Hierarchy looks fine I would check the scripting.
04-14-2022 03:17 PM
Having just started and still experimenting with unity, I highly doubt I can understand let alone fix a bug in Oculus's script. 😕
04-14-2022 04:06 PM
Hey, don't sell yourself short. I taught myself how to code when I was 16 and (this is going to sound ridiculous) but I did it without any real help and I practiced by making programs that would let you do fun stuff on AOL & AIM.
The biggest way I learned was by fixing bugs in other people's code.... And most of them didn't indent or comment.
It's also possible I'm wrong about the hierarchy. Im more of a cryengine guy with some UE4 & Red Engine mixed in.
I think valve has released lots of open vr documentation and while the index is different in many ways there are still plenty of things to learn because steam vr is just open vr with some tweaks.
04-15-2022 06:30 AM
Thanks for the motivational boost. Yeah, I am also learning mostly through youtube rn, Unity and Oculus documentation don't really help with 1 line code snippets, I would need visual and concrete examples.
I'm quite persistent so I'm sure I'll find a way somehow but I don't want to waste hours or days searching and scouring the net for a solution that would take 1 minute to fix. But I guess that's what Software Development is all about...yeyyy 😅😒
01-01-2024 11:25 AM
I take it that no solution has been found?
01-10-2024 07:48 AM
Hey @Alekstsnomad! We noticed you had some controller tracking issues when using Oculus Integration. We'd love to redirect them to our Developer Support site so that they can take a deeper look into why this is occurring. Please feel free to reach back out if you have anymore questions, as we'd love to answer them for you!