does anybody know a way to develop a marker based AR Unity 3D application receiving two simultaneous webcam inputs?
Inspired by the AR-Rift project of William Steptoe (https://www.youtube.com/watch?v=y5eLRz-DHos) I am developing an AR+VR application, which displays the video streaming of two webcams attached to the front of a Oculus Rift headset in a stereoscopic view. To turn the Oculus Rift into an AR Headset I am searching for a way to make an AR application receiving two camera inputs.
As far as I have seen all AR SDKs that can be used as extension to Unity3D are only supporting one camera input. Does anybody know a way to extend an AR SDK like Vuforia for the usage of two webcams or another way/another AR SDK that solves this problem?
Many thanks in advance, I am grateful about any help.
Here is a summary of my setup and my implementation so far:
-Oculus Rift CV1
-2 Logitech C310 HD webcams
-Unity Game Engine 2017.1
-In Unity I created two GameObjects each holding one plane as a child. The planes are positioned and rotated so that they are facing the main camera and are completely captured by the view frustum of the main camera. Next I created prefabs of the two GameObjects.
-I created a new GameObject holding a C#-Script which renders the video streaming of two webcams onto the planes, whereby the prefabs are used as components for the GameObject.
-The video streaming of the two webcams is displayed on the Oculus Rift.