Forum Discussion

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

Stereoscopic UI

Hello,

Is there a way to render UI (canvas) elements in Unity per eye? 

I have image buttons and I'd like to have a separate image for each eye. I assigned each image to it's own layer and added or removed that layer from camera's culling mask but It doesn't work. It works for 3d objects (like sphere that I use to render 360 stereo video). I can assign the whole Canvas to an eye, but not it's children. 

One of the solutions I came up with is to replace images with plane objects, but this is my last resort since buttons contain other children and this would complicate things.

Any suggestion or solution very much appreciated!

5 Replies

Replies have been turned off for this discussion
  • Anonymous's avatar
    Anonymous
    I already have Target Eye Left for the left camera and Target Eye Right for the right camera. Left camera renders leftEye layer and right camera renders rightEye layer. But if I set button's layer to ie. leftLayer, the button is still visible on both cameras. It seem as if this camera separation only works for non-ui elements (besides Canvas)
  • Sounds like either not all of your Renderers are in the right layers or Unity's not respecting Camera.layerMask for UI objects. Can you click Help > Report a bug... and share the case number it emails you here?
  • Anonymous's avatar
    Anonymous
    Okay, I reported the bug. Case number 825252.