Forum Discussion
JoaquinGM
11 years agoHonored Guest
Stencil Optimization in Unity
Can I get the mask of unneeded pixel for the DK2 distorsion?
I want to make the stencil mesh optimization sugested by Valve in the "Advanced VR Rendering" conference.
http://www.roadtovr.com/valve-talks-advanced-vr-rendering-live-blog-5pm-pst/
Thanks!!
I want to make the stencil mesh optimization sugested by Valve in the "Advanced VR Rendering" conference.
http://www.roadtovr.com/valve-talks-advanced-vr-rendering-live-blog-5pm-pst/
Thanks!!
4 Replies
Replies have been turned off for this discussion
- AbdulVRHonored GuestI don't believe it's available anywhere, I am about to write some code to generate it regardless of the current kit you're running.
- owenwpExpert ProtegeDoing it right requires knowledge of both the distortion algorithm and the user's head shape, since the objective is to stencil out the exact pixels that wont be visible for a particular user through the lens. The oculus automatic camera configuration might help by providing a camera frustum that is already pretty optimal, but chances are you will still get reduction in FOV for some users with a naive implementation.
- cyberealityGrand ChampionI'm not sure if this will be included in the SDK integration. However you can probably hack it up youself.
Basically just draw a doughnut mesh around the viewable area in the scene. You should draw it first using DrawMeshNow ( http://docs.unity3d.com/ScriptReference ... shNow.html ). The polygons that are behind will fail the depth test (or the stencil test), which should be what you need.
Hope that helps. - JoaquinGMHonored GuestIt's seems that you can't use stencil optimization and time warp because you could to mask some useful pixels.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 years ago