"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

I want use two(or more)AR camera in one project(Active ARCamera Change!)

Hello.

 

First of all I question.

- Vuforia version: 7.0(Use Free)

- Unity version: 2017.3.0f(Use Personal)

 

Now Let's get Main Question.

 

Actually my intention

1. Run application.

2. when my smart phone distinguish target -> maker is apperence.

3. second ARcamera is active and than trace maker. Main ARcamera is unactive.

4. When target is Out of camera. Main ARcamera is active second ARcamera is unactive.

 

So I make two AR Camera at the one Scene.

And than play button.....

oh no all objects are gone!

this is error list.(attach picture - multiARCamera.JPG)

-----------------------------------------------------------

It's not possible to have two ARCameras at the same time UnityEngine.Debug:LogError(Object) Vuforia.ARController:RegisterCamera(VuforiaBehaviour) Vuforia.<>c__DisplayClass11_0:<Register>b__0(VuforiaBehaviour) System.Delegate:DynamicInvoke(Object[]) Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object[]) Vuforia.DelegateHelper:InvokeWithExceptionHandling(Action`1, VuforiaBehaviour) Vuforia.VuforiaBehaviour:Awake() -----------------------------------------------------------

 

 

Thank you.

 

 

 

 

 

You can only have one ARCamera.

However, you can have multiple regular unity cameras. In your single ARCamera, have it look for any and all targets that you need. Turn off the objects you don't care about -- you can logically change things based on whether you see a target or not.

milkerz says

You will have to think of another way of doing this that requires only one ARCamera

 

Do you have another way or sample? 

Hi 

Did you manage to implement multiple ARCamera in single scene?

I want to use 3 ARCamera kept in 3 places too do single target image recognization using single app.

mcotora

Mon, 05/18/2020 - 11:45

In reply to by audry19

Hi @audrey,

Could you please provide us more deails on your use-case for 3 AR Cameras in the same scene? Why is 1 not enough?

Thank you.

Vuforia Engine Support

Attachment