Author Topic: Tasharen Fog of War in Linux Game Builds  (Read 4285 times)

Velo

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 2
  • Posts: 13
    • View Profile
Tasharen Fog of War in Linux Game Builds
« on: April 18, 2015, 12:26:26 PM »
Hi Aren,

First let me say thank you for offering your Tasharen Fog of War system.  It's working wonders for my RTS game :)

I'm having an issue that I just came across though when I had a friend test my game on his Linux system.  In Windows, the fog of war works as expected with no issues.  But in Linux, the fog effect seems to shroud the players camera even more than it should.  So places where you should be able to see the terrain and units, you cannot because the fog of war is covering it.

Let me say though that it could be something unrelated to your system, I havn't tried to debug every angle on this problem, but wanted to ask you about your opinion on it?

I also noticed in linux that the camera culling distance (for the camera frustrum) seemed to be off as well.  Perhaps it's an issue with the camera (and maybe on Unity's end), and has nothing to do with your fog of war image effect.

Anyways, just wanted to let you know about this, and maybe it's not a problem with the fog of war itself, but maybe it is??

Thanks Aren.


P.S. Is there any chance you might make a version "2.0" in the future for this fog of war asset?  It really is a great system.  I like it.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Tasharen Fog of War in Linux Game Builds
« Reply #1 on: April 18, 2015, 01:35:19 PM »
I can't remember the last time I put out an update to the FoW system... it may be prior to the changes in Windward. If so, then it's likely checking the wrong value. Linux + Intel card = no depth texture support.

FOWImageEffect's Start() function needs to be this:
  1.         void Start ()
  2.         {
  3.                 if (!SystemInfo.SupportsRenderTextureFormat(RenderTextureFormat.Depth) || !shader || !shader.isSupported)
  4.                         enabled = false;
  5.         }

Velo

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 2
  • Posts: 13
    • View Profile
Re: Tasharen Fog of War in Linux Game Builds
« Reply #2 on: April 18, 2015, 11:49:32 PM »
Cool thanks.  Yep, as far as I know, my friends laptop was Intel, so I hope that might be it.  I'll test this and see what happens.  I may not have access to a linux testing platform for quite awhile though or even need to be concerned about it until my game is almost finished, so you might see me ask a follow-up question a year from now lol.

I hope your suggestion works though.  Good luck with your game release.