ValveSoftware / openvr

OpenVR SDK
http://steamvr.com
BSD 3-Clause "New" or "Revised" License
6.06k stars 1.27k forks source link

Shadow of terrain flickering when player back to the tree or grass #1104

Open AdenWhite opened 5 years ago

AdenWhite commented 5 years ago

I found that when I start my steamvr and use openvr in unity, the shadow of terrain and all objects I made in terrain(terrrain is a unity component) will flicker when I turn my head.the shadow was seen normal when I don't use openVR.but if I add openVR in player setting,only the shadow of terrain and all objects I made in terrain will flicker,other objects' shadow is work well. Below is the steps how to reappear this bug: 1:open unity and start a project 2:add steamvr plugin 3:add a terrain in the scene 4:use terrain to add a tree or grass 5:add player prefab near the tree in the scene 6:play,and look around,the tree's shadow is flickering 7:disable steamvr or remove openVR,then play, the tree's shadow works well In my picture,flickering when i turn around. I try this action in many different version unity and different computer,I can sure this is openvr's or steamvr's bug

peroht commented 5 years ago

Hard to know what is causing this without looking into it. . Do you have the project avail for testing somewhere? Do you have a movie of how it looks?

AdenWhite commented 5 years ago

@peroht https://youtu.be/5-YvPwPu-bg this is the video

peroht commented 5 years ago

I see.

Have you looked into the Unity QualitySettings to know which level is being used for your standalone- and for your steamvr build?

AdenWhite commented 5 years ago

@peroht i use default setting first,and i change quality setting but still flickering,i have tried almost any setting in the unity for 2days,and when delete openvr support,the shadow works well in none vr mode. if you start steamvr,the terrain's shadow will flickering.close steamvr then play,it works well,this bug will happen in all projects,i try 3 computer and different version unity,still happen.

peroht commented 5 years ago

old occlusion culling bake?

AdenWhite commented 5 years ago

@peroht no,bake and disable occlusion culling won't help. can you try it in your computer? Use a cube as a tree,then use terrain component brush the tree, the cube prefab's shadow is see well in the game,but the shadow of cube made by terrain is flickering. I finally use prefabs to instead of terrain's tree,but in this way I can't create trees and grass easily.