Log in or register to post comments

Combining Vuforia AR and Dive (3D) cameras

March 15, 2014 - 8:25am #1

Hello,

Im struggling with this issue and didnt find proper solution.

I would like the Dive camera to see the Vuforia AR augmented video to allow see it in 3D by Dive googles. I tried to combine the two cameras settings like position, rotation, fow and clipping and tried set different depth parameters for the cameras and set Depth Only rendering but I failed to see the video camera image splitted to right and left eye views. It always shown monoscopic. In the same time I see properly the gui layer for two eyes splitted.

Dive camera prefab has two child cameras with the proper viewport rects. But I assume other VR libraries use the same technique for 3D.

If anyone has idea or just a helper link, please comment. I found only this which is the most close to my problem but didnt help or I missed sth.

http://kwazylabs.com/blog/unity_sync_ar_camera_with_2nd_camera/

thanks,

Gábor

Combining Vuforia AR and Dive (3D) cameras

April 10, 2015 - 7:43am #9

Anybody still working on this? I am facing the same problem now! Hints in the right direction highly appreciated!

Combining Vuforia AR and Dive (3D) cameras

March 20, 2014 - 9:32am #8

while Vuforia uses a camera attached to a camera. 

Not sure I fully understand how the two webcam approach works with your code above...

 

However one thing that may be worth investigating is the Background Texture Access sample.  We recommend this for more complex render setups (e.g. use of Render textures), and I am wondering you may be able to use some of the techniques there to accomplish your goals?

 

N

 

Combining Vuforia AR and Dive (3D) cameras

March 20, 2014 - 9:10am #7

yes I have put WebCam input to a plane, and it showed twice correctly with using the attached script.

but if I understand it correctly, it is a different approach. here I change the texture of a Plane for example to show web camera input, while Vuforia uses a camera attached to a camera. 

 

using UnityEngine;
using System.Collections;

 

public class WebCamera : MonoBehaviour {

 
  private WebCamDevice[] devices;
    private WebCamTexture webCam;   
    

    // Use this for initialization

    void Start () {
        devices = WebCamTexture.devices;
        webCam = new WebCamTexture(WebCamTexture.devices[0].name);
        

        // Starts the webcam.

        webCam.Play ();

        // Applies texture to object.

        transform.renderer.material.mainTexture = webCam;

    }

}

 

 

Combining Vuforia AR and Dive (3D) cameras

March 18, 2014 - 6:45am #6

Regarding the picture I attached I wanted to see the image of web camera similarly splitted into two copies.

 

Are you able to make this work without Vuforia using Unity WebCamTexture ?

 

N

Combining Vuforia AR and Dive (3D) cameras

March 18, 2014 - 6:29am #5

I get two augmentations at the moment. That is fine.

The augmented layer properly split by Dive camera to two eyes. So it works. One thing is wrong:

Regarding the picture I attached I wanted to see the image of web camera similarly splitted into two copies. 

It should show the video image with TREX image target also doubled.

But this part doesnt work, I dont get why. 

Combining Vuforia AR and Dive (3D) cameras

March 18, 2014 - 5:18am #4
Technically it has a Dive sensor script which detects head motion and show the proper view for Unity camera. It has two child cameras with the proper viewport rects to generate two images separately for eyes.
 
I wanted this to combine with AR using Vuforia SDK. Technically it means I have to combine AR and Dive cameras in Unity. 
 
 
Am I right in thinking you get two augmentations at the moment?  What exactly do you want to happen here?
 
 
N

Combining Vuforia AR and Dive (3D) cameras

March 18, 2014 - 5:09am #3

Hello,

I have a Dive headset which is a very simple "holder" can hold most mobiles to allow to see games or applications in 3D. It doesnt use any built in screens just has a splitted area to see two images on mobile screen for right and left eye and lenses to enhance the view. Simple as cheap, I put the mobiles to headset, adjust the lenses and gives a fine 3D environment (of course due to splitting, X resolution is half, so better with mobiles using HD ready or HD resolution)

It has SDK for Unity which allows to create Unity scenes in 3D for Dive googles.

Technically it has a Dive sensor script which detects head motion and show the proper view for Unity camera. It has two child cameras with the proper viewport rects to generate two images separately for eyes.

I wanted this to combine with AR using Vuforia SDK. Technically it means I have to combine AR and Dive cameras in Unity. 

The best I could achieve I see two 3models augmented on image target for each eyes. My only concern is that the web camera image which added by Web Cam Behaviour script I assume, always shown without duplication. Web camera should shown also twice.

cheers,

Gábor

AttachmentSize
Image icon camera2.png471.86 KB

Combining Vuforia AR and Dive (3D) cameras

March 17, 2014 - 4:47am #2

I would like the Dive camera to see the Vuforia AR augmented video to allow see it in 3D by Dive googles

 

Can you go back a step and explain what you meant, because this means nothing to me at present.

N

Log in or register to post comments