Forum Discussion

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

Problem with Directional Light

Hi everyone.

I've a little problem about Directional Light. Obviusly i've used a lot of time some directional lights but in this specific scene i can't understand the problem that i have. When i put a directional light and press PLAY, i can't see the light i saw in the editor but for example if i see to the ground i can see the "light" but if i look another time in the sky or in front of me the light disappear.

Sometimes when i walk around there is like a flash where the light appear and disappear more times.

Obviusly if i remove the directional light all works fine.

What's the problem? Something went wrong with the shadow of Directional light or something like that? :?:

Thanks in advance :)

6 Replies

Replies have been turned off for this discussion
  • Do you have more than 4 lights in Forward rendering?
    that may be your problem if you do.
  • "basedeltazero" wrote:
    Do you have more than 4 lights in Forward rendering?
    that may be your problem if you do.


    I'm using Deferred Lighting also i put only one light on the scene and it's the directional light itself.

    "If i see on the ground,the directional light appear,if i see in front of me the directional light disappear"

    Too weird :O

    Edit: Ok the problem is for sure something with OVR camera because if i see with a normal camera or in the editor all work fine instead if i click on the OVR camera also in the editor and "move" the visual i see the light on the ground change with weird flash..
  • Ok hm.. i hadn't already try the solution more simple..

    I've changed my OVR Character Prefab with the OVR character by default and all works fine. It's weird because on my prefabs i hadn't any scripts.

    Oh well.. now all works fine :D
  • I've tried it with OVRCameraController and it worked just fine.
  • If I remember correct, deferred rendering has issues with the Oculus integration. Specifically problems with dynamic lighting and shadowing. This may be related. It's recommended to us forward rendering.
  • "cybereality" wrote:
    If I remember correct, deferred rendering has issues with the Oculus integration. Specifically problems with dynamic lighting and shadowing. This may be related. It's recommended to us forward rendering.


    Thanks very much. This really help,infact after some minutes i had the same problem than before with light and shadow.

    Thanks to advise me :)