Repro:
-
Make a new VR project in 4.17.1
-
Set Forward Rendering to: true
-
Set Instanced Stereo to: true
-
Set Custom Depth-Stencil Pass to: Enabled with Stencil
-
Set Motion Blur to: False (probably not needed but I had it set in all my VR projects)
4a) This is the config dir .rar’d up: Dropbox - File Deleted - Simplify your life -
Make a PostProcess material which will show a silhouette of the character when occluded by something in the world (c.f. this material ( Dropbox - File Deleted - Simplify your life ) which uses the ‘Render CustomDepth Pass’ to make a silhouette)
-
Add a PostProcess Volume to the StartupMap and set the Material created in 5 to be in the PostProcess Materials List for the PPVolume
-
Add UE4’s SK_Mannequin (might need to copy this asset over) and Shape_NarrowCapsule to the StartupMap
-
Select SK_Mannequin and Shape_NarrowCapsule and set ‘Render CustomDepth Pass’ to true on each of those objects. Make certain each object shows its silhouette when something not using ‘Render CustomDepth Pass’ occludes it.
-
rebuild lighting ^^
-
Play the game with these options: -game -log -vr -emulatestereo -windowed (e.g. UE4Editor.exe “[path]VRInstancedStereoTes.uproject” -game -log -vr -emulatestereo -windowed )
-
If you need to do: ` open startupmap
-
Move around the scene with wasd and/or the just mouselook and notice that the Objects that have ‘Render CustomDepth Pass’ to on them have artifacts (flickering spots)
(c.f. these screen shots: Dropbox - File Deleted Dropbox - File Deleted - Simplify your life )
(c.f. this movie: Dropbox - File Deleted - Simplify your life ) (make certain you Download this as the dropbox compression makes it unusable)
Here is the uproject all .rar’d up: Dropbox - File Deleted
Here is the director with all of the files:
https://www.dropbox.com/sh/6zr5ps0ntgjk8mx/AABNWdakCAK7k4ttibJYc2hEa?dl=0