Skip to main content
Up and Coming
December 16, 2013

Game Fog Issue

Hello.

I am having an issue where I apply the Global Fog effect to the left and right camera for the OVR in Unity and it often comes with some off offset, not aligning properly with the terrain or models. I have provided to pictures below:

http://i.imgur.com/LqotTlt.png

http://i.imgur.com/MpfZlkE.png

Has anyone experienced this issue or know a possible fix?
    This topic has been closed for replies.

    4 replies

    Inspiring
    December 17, 2013
    Yes, this is a known issue.

    As far as I know it has to do with the way we are altering the projection matrix to do the stereo.

    Unfortunately I don't know of a fix right now. I can try to bug one of our Unity developers to see if there has been any progress here. Otherwise you may have to write a custom shader for the fog.
    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
    Up and Coming
    December 17, 2013
    Yeah the fog shader would need to be rewritten for the Rift's offset projection matrix. Too bad I don't have all the time in the world..
    Up and Coming
    December 17, 2013
    Dreadhalls has a fog effect, how do they do it?
    Up and Coming
    December 17, 2013
    Thanks for letting me know, guys.

    If Dreadhalls has it working, I assume the edited the shader.