Different UI for each eye

Hello.

I need a different dynamic UI for different eyes in VR. I am trying to create some thing that is working with eye tracker and I have to draw an image on the location that player is looking. Problem is when I use a single UMG it is only drawn for the left eye and if I use a stereo layer it is exatcly the same and it is a problem when player try to focus on some thing that is in the middle of the screen.

I’m not exactly sure what you are trying to do but if stereo layers aren’t working for you you can create a couple of materials that only display in the right or left eye using screen position. You can then take each UMG and override its material with either the “right only” or “Left only” material.

In the screenshot I’ve attached the Opacity mask is configured so the material will only display on the left side of the screen. You can reverse the IF node to make one for right only.

With this method you can do a bunch of things that only display in either eye.

That’s seems to work only if you are at the origin and looking forward…
How can we add the helmet direction?

The ScreenPosition node is supposed to output values in screen space. Are you sure you are using the correct node?

An option is to use a Custom node with this code, and check if it outputs 0 or 1.
ResolvedView.StereoPassIndex

Hmm maybe not, i have to check again tonight.
Mine have 2 outputs.
I tought it was coz a version upgrade.
sceenpo

Testing it out on 4.27, that node works, but the value to check for needs to be 1.

hey! thank you!