Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Mickman's avatar
Mickman
Protege
12 years ago

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 ??

6 Replies

Replies have been turned off for this discussion
  • Hi Gerard,

    I'm referring to the O.R virtual cameras.. The Rift has two virtual cameras slightly offset.
  • drash's avatar
    drash
    Heroic Explorer
    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. :-/
  • 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 ....
  • keyze3's avatar
    keyze3
    Honored Guest
    Was this every resolved? If so i am interested in how you did, as i am also trying to simulate a similar effect.