Skip to main content
Up and Coming
July 3, 2013

Depth Mask with duel cameras ?

Hi, I'm trying to create a scene that has uses a depth mask in Unity to overlay a separate camera's footage. The camera has a script attached to it that creates a vector line around objects I choose to be rendered as a line vector ( like an x-ray)

Imagine looking into the Rift & seeing a HUD in front of you that displays the x-ray.. in my case a vector mask of certain objects in the scene... it looks like an x-ray allowing you to see through objects. The problem arises when you move your head and you as you track across the screen you see an x-ray object come into the HUD's view ... but as you keep panning across screen ( the other Oculus lens will now see the same object so you get the x-ray appear again even though you have turned your head away from the actual object.

[EDIT] A simple ANALOGY:
You are walking through a field with a metal detector & a pair of special glasses. The detector has a small TV screen that let's you view metal objects 20m underground when you look at the detector's screen. You can actually see the shape of the object deep below as you move the metal detector over it..
Now you move away from the area and you are no longer over the object. You keep looking at the metal detector screen & then you begin to see the same object appear but its not right because the metal detector is targeting a tree & the sky ...but you also notice that you can only view the object on the screen through one of the lenses of the glasses you are wearing. That's strange as you know the actual object is buried deep beneath the ground in the other spot... not up in the trees !
So this is my problem... I can see the vector x-ray in several locations when viewed through each Oculus Rift L/R Camera.

So my question is how can I get both Oculus cameras when viewed through the Rift to display the X-Ray in both lenses ??
    This topic has been closed for replies.

    6 replies

    Up and Coming
    July 3, 2013
    step 1 - get a rift with cameras
    check out my Mobile VR Jam 2015 title Guns N' Dragons
    MickmanAuthor
    Up and Coming
    July 5, 2013
    Hi Gerard,

    I'm referring to the O.R virtual cameras.. The Rift has two virtual cameras slightly offset.
    http://www.mickbanks.com
    Up and Coming
    July 5, 2013
    *removed* ... virtual cameras, just got it
    check out my Mobile VR Jam 2015 title Guns N' Dragons
    Inspiring
    July 5, 2013
    I want to try to help but I can't seem to wrap my head around exactly what the issue is, despite reading your description several times. :-/
    Titans of Space PLUS for Quest is now available on DrashVR.com
    MickmanAuthor
    Up and Coming
    August 2, 2013
    I will try and create an analogy..

    You are walking through a field with a metal detector & a pair of special glasses. The detector has a small TV screen that let's you view metal objects 20m underground when you look at the detector's screen. You can actually see the shape of the object deep below as you move the metal detector over it..

    Now you move away from the area and you are no longer over the object. You keep looking at the metal detector screen & then you begin to see the same object appear but its not right because the metal detector is targeting a tree & the sky ...but you also notice that you can only view the object on the screen through one of the lenses of the glasses you are wearing. That's strange as you know the actual object is buried deep beneath the ground in the other spot... not up in the trees !

    So this is my problem... I can see the vector x-ray in several locations when viewed through each Oculus Rift L/R Camera.


    note: I updated the 1st message to contain the Analogy I just wrote.... so any other readers will understand from the beginning.

    Hope someone can help me out ....
    http://www.mickbanks.com
    New Participant
    September 18, 2013
    Was this every resolved? If so i am interested in how you did, as i am also trying to simulate a similar effect.