Pure background camera in unity

April 19, 2015 - 4:37pm #1

Hi!

I want to make a second camera that renders only background. How I can I achieve it with Vuforia 4.0?

Placing a second camera inside ARCamera and copying projection matrix from main camera in Update works fine. But I want to set projection matrix only when necessary.

This is my code:

    public Camera OtherCam;

    void Update()
    {
        GetComponent<Camera>().projectionMatrix = OtherCam.projectionMatrix;
    }

 

Thank you!

Pure background camera in unity

April 23, 2015 - 5:38pm #2

If you are using Vuforia 3.0, you can use the steps in this post:

https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/background-texture-black-strip-iphone-6#comment-2044967

In Vuforia 4.0, the technique from BackgroundTextureAccess is applied to all the samples. Using QCARRenderer.SetVideoBackgroundTexture() you can set your own texture to be the plane where the background feed renders. You can create a separate orthographic camera to view the texture.

 

Log in or register to post comments