Forum Discussion
chrisbibb
12 years agoHonored Guest
Integrating OVR Camera + Vuforia AR in Unity 4
Has anybody integrated the Vuforia sdk for augmented reality with the OVR camera warping in Unity?
crevver
12 years agoExplorer
I've had a pretty good amount of success building rigs and getting AR, gestures and Oculus all working together. The effect is pretty solid and very playable. There are some framerate issues, and I'm sure there are tons of optimizations I can do on the live feed rendering side to make it cheaper. My current rig is a single camera (I have 2 very different quality webcams and they don't work well for binocular vision with different resolutions and focus etc.). That said, I know how to build a 2 camera rig and got it working, but 1 camera works fine and the effect is pretty good. I'm using a stereoscopy hack which duplicates and offsets the single camera image to emulate a 2 camera rig, and it works well for the visual effect, and for recognition of AR targets etc.
Now, the problem is there is a build issue with Oculus and Vuforia in the same Unity build. It will compile fine, but it dies when loading either the Windows exe, or the web player version. There is some conflict in the dlls or loading up the video streams etc. So I'm guessing some manipulation on the OVR and QCAR dlls needed to make this happy. You can prototype and test in the full screen play mode within the editor and it works fine, but it's not ideal. Really need to be able to build standalone demos and dragging my project folder everywhere is a bit clunky, so hoping either Vuforia or Oculus can find a solution here. In the mean time, I downloaded a bunch of other AR toolsets and am going to experiment to see if I can publish with any of them and Oculus.
Here's a link to my thread in the Vuforia forums with pics etc of some of my progress: https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/oculus-vuforia#comment-2040051
Now, the problem is there is a build issue with Oculus and Vuforia in the same Unity build. It will compile fine, but it dies when loading either the Windows exe, or the web player version. There is some conflict in the dlls or loading up the video streams etc. So I'm guessing some manipulation on the OVR and QCAR dlls needed to make this happy. You can prototype and test in the full screen play mode within the editor and it works fine, but it's not ideal. Really need to be able to build standalone demos and dragging my project folder everywhere is a bit clunky, so hoping either Vuforia or Oculus can find a solution here. In the mean time, I downloaded a bunch of other AR toolsets and am going to experiment to see if I can publish with any of them and Oculus.
Here's a link to my thread in the Vuforia forums with pics etc of some of my progress: https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/oculus-vuforia#comment-2040051
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 11 months ago
- 2 years ago