Forum Discussion

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

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?

4 Replies

Replies have been turned off for this discussion
  • 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.
  • 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..
  • smx's avatar
    smx
    Honored Guest
    Dreadhalls has a fog effect, how do they do it?
  • Thanks for letting me know, guys.

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