Author Topic: [SOLVED] Fog of war version 1.0 black screen issue  (Read 6743 times)

CastorHolyday

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 20
    • View Profile
[SOLVED] Fog of war version 1.0 black screen issue
« on: January 02, 2014, 06:29:27 AM »
Hello Folks hope everyone is fine, I have some troubles with the fog of war asset, indeed, it has some strange behaviours when I move the camera, I didn't modified anything from the example scene so here is a video that displays the problem it's really short (30secondes);

The problem is that I see black screen that shouldn't be black..not in regular RTS games anyways, I'm looking for a LoL or Dota fog of war effect so try to compare in your mind this kind of FoW and the one in the video above.

=> Video link : http://www.youtube.com/watch?v=NuJr4ZSpB-Q&feature=youtu.be

=> Looking for such result : http://anomalousunderdog.herobo.com/Unity/FogOfWarTest.html
unfortunately : this one lags so bad only with the FoW system it drops fps to 15-24, is it possible with the Tasharen asset ? (original post) http://forum.unity3d.com/threads/39837-Fog-of-war-Mesh

Any response would be welcome.

Happy new year.
« Last Edit: January 12, 2014, 07:24:03 PM by CastorHolyday »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Fog of war version 1.0 black screen issue
« Reply #1 on: January 02, 2014, 11:42:21 AM »
It's up to you to specify the 3 colors -- explored, unexplored, and visible. You can make them be whatever you want. By default unexplored color is pure black, but you can set it to gray as well.

CastorHolyday

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 20
    • View Profile
Re: Fog of war version 1.0 black screen issue
« Reply #2 on: January 02, 2014, 02:19:27 PM »
Sir, thanks for your answer but, the problem is else where, all i'm doing in my video is moving the mouse not the units, it shouldn't affect anything, is it due to my low graphic card or is it due to a scripting line ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Fog of war version 1.0 black screen issue
« Reply #3 on: January 03, 2014, 06:09:44 AM »
Sorry somehow I totally missed your video link. o_O

Are your shaders actually enabled there? FOW won't work if the shaders are not functional. Quality settings set to "fastest" or targeting ARMv6 / GLES 1.1 effectively disables shaders.

If it is, what target settings are you using? The example was written with DX9 forward rendering in mind.

CastorHolyday

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 20
    • View Profile
Re: Fog of war version 1.0 black screen issue
« Reply #4 on: January 04, 2014, 07:48:43 AM »
Hi ArenMook, I builded the example run it with a full screen mode Fantastic quality, with same result, I'm thinking that it's due to my old graphic card, I need to test it in a more sophisticated machine, the one I'm using it in is a Pentium 4 2007 with a shipset GC, that would maybe explain the problem, if this is true the asset can't run in old computers :(

and do you mean by : "Are your shaders actually enabled there?" I didn't modified anything in the scene implemented in the original package, even in the demo webplayer version I have the same problem, I did run a dxdiag test of my video/graphic card it can reach the DirectX 9, so now I'm lost 'cause I can't figure out where is the problem :(

Here is a screen of the project opened : https://www.dropbox.com/s/imi9xgp2syqlw8w/ScreenShotUnityFogOfWar.PNG

I tried all emulations down there with no result (it's worst).

Do you agree with the theory of the old graphical/video card ?
Name : (Intel(R) 82945G Express Chipset Family).
DirectX version : DirectX 9.0c installed.

or is the problem else where ?

Sorry for the troubles, best regards.
« Last Edit: January 04, 2014, 07:59:51 AM by CastorHolyday »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Fog of war version 1.0 black screen issue
« Reply #5 on: January 04, 2014, 10:01:42 AM »
http://software.intel.com/en-us/forums/topic/293996

Your videocard doesn't support shaders properly. Pixel shader 2, but no vertex shaders? Not sure how that's supposed to work at all. So yes -- your videocard is at fault here.

CastorHolyday

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 20
    • View Profile
Re: Fog of war version 1.0 black screen issue
« Reply #6 on: January 04, 2014, 11:26:42 AM »
Awesome (at least I know why it doesn't work).
And is there a solution for me ? like modifying the shader so it supports older machines ?
or I'm hopeless and I should target only modern machines to make it work ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Fog of war version 1.0 black screen issue
« Reply #7 on: January 04, 2014, 12:57:42 PM »
You can't do anything. No hardware support means no way to do it.

You don't need modern machines. Anything made in the past decade should support shaders -- starting with GeForce 4 (2002)... except Intel. Intel have always made shit for graphics, to put it lightly. They didn't clean up their act until GMA 3000 series (2007?).

Even mobile devices have supported shaders since iPhone 3GS (2009).

These days you can buy a $5 videocard and it will do shaders fine. 82945G = Intel 945 series. It's too old. After 945 came 950, and after that came Intel 3000 -- which finally had proper shader support. There was a lot of Dramaâ„¢ about Intel making shit cards that couldn't run Windows Vista properly back in the day. This is why.

CastorHolyday

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 20
    • View Profile
Re: Fog of war version 1.0 black screen issue
« Reply #8 on: January 05, 2014, 08:35:51 AM »
Thank you (y)