Forum Discussion
sh0v0r
12 years agoProtege
Realtime Shadows Broken in 4.3 (Forward Rendering)
Firstly this is a great release, I'm happy to report my Camera Layering & Image Effects are working nicely, but shadows seem to be broken. I can see them in the Scene View but not in the Rift.
I am using Unity 4.5.5f1
Edit
Just discovered that if I enable 'Skybox' in the camera clear field the shadows appear. However I can only enable them on the World cameras which are at depth layer 0, if I try that on the Cockpit layer, depth 1 the skybox writes on top of the first layer.
I am using Unity 4.5.5f1
Edit
Just discovered that if I enable 'Skybox' in the camera clear field the shadows appear. However I can only enable them on the World cameras which are at depth layer 0, if I try that on the Cockpit layer, depth 1 the skybox writes on top of the first layer.
5 Replies
Replies have been turned off for this discussion
- vrdavebOculus StaffDo you see a very faint version of them? Are you using OVRMainMenu or modifying RenderTexutre.active during the frame? We have seen some cases where setting RenderTexture.active at any point during the frame will make shadow intensities (and other rendering state) take unexpected values.
- sh0v0rProtege
"vrdaveb" wrote:
Do you see a very faint version of them? Are you using OVRMainMenu or modifying RenderTexutre.active during the frame? We have seen some cases where setting RenderTexture.active at any point during the frame will make shadow intensities (and other rendering state) take unexpected values.
No they are completely missing... I'm not using Main Menu or fiddling with the render targets.
I tried to use DX11 thinking that might fix it but Unity just crashes. - vrdavebOculus StaffHave you tried varying the shadow distance and clipping planes or the number of cascades? Unity's shadows may be doing something unexpected for the clear-to-depth case.
- sh0v0rProtege
"vrdaveb" wrote:
Have you tried varying the shadow distance and clipping planes or the number of cascades? Unity's shadows may be doing something unexpected for the clear-to-depth case.
Tried playing around with those settings but nothing makes them appear other than setting the Clear Flags to Skybox or Solid Color.
It used to work fine, I'll do some tests with a normal Unity camera layered setup, with render targets. - vrdavebOculus StaffWere you able to reproduce this with a layered camera setup that doesn't include the Oculus integration?
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
- 12 months ago
- 6 months ago
- 3 years ago