Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

VR Instanced Stereo breaks ScreenPosition material node

I need to render different textures for each eye for a stereo 3d effect. This is the simplified material: alt text

This is what it should look like in VR with Instanced Stereo On: alt text

And this is what it looks like with Instanced Stereo Off: alt text

I tested this with both the deferred and the forward renderer.

I hope this can be resolved soon.

Product Version: UE 4.15
more ▼

asked Apr 15 '17 at 03:04 PM in Bug Reports

avatar image

135 5 9 14

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hey Congaz2,

So I believe this is expected due to how the Instanced Stereo Rendering works. Instead of drawing each eye sequentially (the left and then the right eye), they are drawn simultaneously (left and right at same time).

Since we stretch the viewport out that technique wont work, but I do have a way to determine which eye is being rendered if you want to do eye specific shader work that will work with and without ISR.

There's a view uniform called stereo pass index you can access with a custom shader. You'll want to use ResolvedView.StereoPassIndex. It will be 0 for the left eye or mono and 1 for the right eye. Here's an example which makes the material red in the left eye and green in the right (or just red in mono):

alt text

This should work as you want for Mono, Stereo, and ISR.


Andrew Hurley

more ▼

answered Apr 19 '17 at 06:17 PM

avatar image Congaz2 Apr 19 '17 at 06:37 PM

Thanks Andrew! That should work for me

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question