Skip to main content
Inspiring
January 24, 2014

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 :)
    This topic has been closed for replies.

    6 replies

    Up and Coming
    January 24, 2014
    Do you have more than 4 lights in Forward rendering?
    that may be your problem if you do.
    Ambient Flight Eagle Flight Experience Dinosaur Voyage Running from Dinosaurs
    WelbyAuthor
    Inspiring
    January 24, 2014
    "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..
    MIND LABYRINTH VR DREAMS MIND UNLEASHED
    WelbyAuthor
    Inspiring
    January 24, 2014
    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
    MIND LABYRINTH VR DREAMS MIND UNLEASHED
    Up and Coming
    January 24, 2014
    I've tried it with OVRCameraController and it worked just fine.
    Inspiring
    January 24, 2014
    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.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    WelbyAuthor
    Inspiring
    January 25, 2014
    "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 :)
    MIND LABYRINTH VR DREAMS MIND UNLEASHED