Forum Discussion

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

Bug Report: Changing HMD sp in VR preview

I was working on a surface shader the other day that uses 'ScreenPos' and was getting some very strange results that had me doubting my own sanity and my ability to do simple arithmatic and it turns out that it was due to me playing around with the screen percentage while in VR preview.

Changing the screen percentage while in VR preview seems to screw up screen coordinates for any shader that uses
the ScreenPos node.

Below is a list of screenshots to illustrate the problem.



Default startup SP = 100%.


SP reduced to 90%


SP set back to 100%


SP was then set to 115% and looked correct.


SP set back to 100%


sp was the set up to 115% then 135% and then to 150% Which all look correct.


Then back down to 135%


And finally back to 100%.

As you can see it seems fine al long as you are setting it to a new maximum.

Im assuming this must be something to do with the fact that VR preview isnt using the SDK rendering pipline as hmdwarp on/off work within VR Preview. And there this isnt an issue with standalone and packaged games.

11 Replies

Replies have been turned off for this discussion