Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using MRTK and Vuforia in Unity - What Camera to choose?

Im new to AR and set up the last days MRTK and Vuforia on Unity. Both operated fine independently and now I want to use both in one project. But the problem is that both have a camera. MRTK has its own MixedRealityCamera and Vuforia the ARCamera. How to use one camera, using MRTK and Vuforia? I guess using two cameras in one scene is not good.

I found this post: https://github.com/Microsoft/MixedRealityToolkit-Unity/issues/1461#issuecomment-373714387

So I tried to transfer the components from the MRTKCamera to the ARCamera and in reverse. But Vuforia wont recognize the images anymore. If I delete the MRTKCamera and create the ARCamera it works fine.

like image 594
Perazim Avatar asked Jan 22 '26 18:01

Perazim


1 Answers

I solved it, the problem was the clipping plane value.

"Basically don't attach mrtk scripts to vuforia camera, instead use vuforia scripts attached to a copy of MRTK camera prefab. I made a copy of MRTK Mixed Reality Camera prefab and attached Vuforia Behavior script to it.

Then make sure to change the near clipping plane value in camera manager script component to something very less, say 0.0001." by Roopesh Reddy

like image 64
Perazim Avatar answered Jan 25 '26 15:01

Perazim



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!