Page 2 of 4
Re: Fog of War
Posted: 19 Oct 2008, 01:55
by Gnomre
Google_Frog wrote:This one I do know! Hit ; after hitting L, it changes to just LOS and radar in different shades of grey that way.
This doesn't show radar though.
Oh, what is it then? AirLOS I guess? Can't really be much else...
Also, all-black shrouds suck. They're pointless; people just memorize the maps anyway, giving a huge advantage to those who have played on the map even once. It's only partially mitigated if things like resources are moved around, because positioning and terrain is just as important and just as easily memorized. Shrouds are really only acceptable for sp missions and even then they're annoying because you have to go map the place out before you can ever queue anything to build there...
Re: Fog of War
Posted: 19 Oct 2008, 02:43
by REVENGE
Anybody willing to revamp the "L" key los visualizer?
Oh wait, nope!

Re: Fog of War
Posted: 19 Oct 2008, 13:45
by Warlord Zsinj
I agree with gnome re: black shrounds. But having a semi-opaque fog of war would be nice, as it'd make the breaks between units popping into and out of view far less ugly, as well as being more intuitive for players.
Re: Fog of War
Posted: 19 Oct 2008, 22:27
by REVENGE
Is it for cost reasons that the losmap is updated really slowly? What would be the implication of having it update, say, once every 5 - 10 gameframes?
Re: Fog of War
Posted: 19 Oct 2008, 22:35
by pktm
Brain Damage wrote:press L ingame
That sucks. I don't need cool grahpics if I turn them into a colored mess.
Re: Fog of War
Posted: 20 Oct 2008, 00:08
by Kloot
REVENGE wrote:Is it for cost reasons that the losmap is updated really slowly?
Yes.
What would be the implication of having it update, say, once every 5 - 10 gameframes?
The cost would rise 1.5 to 3 times (LOS states are updated every 16 frames).
Re: Fog of War
Posted: 20 Oct 2008, 00:34
by jK
A solution would be to use the GPU for the los visualization.
It would even allow much higer resolutions and would be ways faster.
Re: Fog of War
Posted: 25 Oct 2008, 07:30
by PhailQuail
Maybe this is the sort of thing that could be done on another CPU core? Spring needs better multi-core optimisations.
Re: Fog of War
Posted: 26 Oct 2008, 11:22
by REVENGE
Both of the above two suggestions sound great, although I have to question why jK's recommendation isn't the default way of doing things.
Re: Fog of War
Posted: 26 Oct 2008, 11:41
by Tobi
Because it didn't fit the original goal of the feature, which is being able to debug the LOS map and LOS update/check code.
Re: Fog of War
Posted: 26 Oct 2008, 11:43
by REVENGE
Tobi wrote:Because it didn't fit the original goal of the feature, which is being able to debug the LOS map and LOS update/check code.
Interesting, seems to correspond to one of the reasons why the original hardcore TA player base didn't quite take to the Spring engine.

Re: Fog of War
Posted: 26 Oct 2008, 11:46
by Tobi
Huh, because LOS map is originally ment for debugging they don't switch over? So if it was ment as ugly fog of war they would have switched over?

Re: Fog of War
Posted: 26 Oct 2008, 11:47
by dizekat
L shows the radar range all right. The dark blue/purple color by default. Just build a radar and look.
BTW, a while ago i made widget to change los colors.
Widget:
http://dmytry.pandromeda.com/tmp/lua_fo ... colors.lua
Add into cmdcolors.txt :
alwayscolor 0.2 0.2 0.2 1
loscolor 0.2 0.2 0.2 1
radarcolor 0.1 0.25 0.1 1
jamcolor 0.3 0.0 0.0 1
It depends on some stuff tho, for loading cmdcolors.txt . I'll update it sometime to use new way to store widget settings.
REVENGE wrote:Both of the above two suggestions sound great, although I have to question why jK's recommendation isn't the default way of doing things.
Think about it a little and you'll realize why none of above great sounding suggestions can even be the way of doing things, let alone default way.
LOS (line of sight)
is synced - it affects how units are automatically attacking (or not attacking) enemy units.
Consequently, any new LOS thing
must give identical results for all players. Suppose LOS was to be updated more often, suppose, even using extra cores. At the multi-player game, rate of LOS updates per real world second will be determined by player with worst CPU anyway, same as it is now.
Sync also totally rules out use of GPU for actual LOS computations. Things don't work identical on ATI and NVidia, and not even between different NVidia cards. Should be proof enough that presently synced stuff can not be done on GPU.
However, its true that GPU can be used to draw "fake" fog of war at much higher resolution and update rate, but which doesn't correspond to the synced LOS used for game simulation. I would never use it though. I'm not interested in seeing some fake LOS at all.
I don't think that many players want that either.
Re: Fog of War
Posted: 26 Oct 2008, 11:53
by REVENGE
dizekat wrote:L shows the radar range all right. The dark blue/purple color by default. Just build a radar and look.
BTW, a while ago i made widget to change los colors.
Widget:
http://dmytry.pandromeda.com/tmp/lua_fo ... colors.lua
Add into cmdcolors.txt :
alwayscolor 0.2 0.2 0.2 1
loscolor 0.2 0.2 0.2 1
radarcolor 0.1 0.25 0.1 1
jamcolor 0.3 0.0 0.0 1
It depends on some stuff tho, for loading cmdcolors.txt . I'll update it sometime to use new way to store widget settings.
REVENGE wrote:Both of the above two suggestions sound great, although I have to question why jK's recommendation isn't the default way of doing things.
Think about it a little and you'll realize why.
LOS (line of sight)
is synced - it affects how units are automatically attacking (or not attacking) enemy units.
Consequently, any new LOS thing
must give identical results for all players. Suppose LOS was to be updated more often, suppose, even using extra cores. At the multiplayer game, rate of LOS updates per real world second will be determined by player with worst CPU.
Syncness also totally rules out use of GPU for actual LOS computations. Things don't work identical on ATI and NVidia, and not even between different NVidia cards, should be proof enough that presently synced stuff can not be done on GPU.
However, its true that GPU can be used to draw "fake" LOS at much higher resolution and update rate, but which doesnt correspond to the synced LOS used for game simulation. I would never use it though. I'm not interested in seeing some fake LOS.
Holdon a second, you're confusing me now.
My belief was that the actual los code with the current los state is updated more or less constantly, every frame; however, the los VISUALIZER as depicted by the L key is only updated every 16 frames. Therefore, I took jK's idea to mean that we could have a nice traditional "fog of war" styled los visualizer drawn by the GPU. If I am wrong, then well...

.
Tobi, my point was that the hardcore TA players didn't like not having a proper PRETTY fog of war los display, instead getting only radar dots and whatnot.
Re: Fog of War
Posted: 26 Oct 2008, 12:03
by dizekat
REVENGE wrote:
Holdon a second, you're confusing me now.
My belief was that the actual los code with the current los state is updated more or less constantly, every frame; however, the los VISUALIZER as depicted by the L key is only updated every 16 frames. Therefore, I took jK's idea to mean that we could have a nice traditional "fog of war" styled los visualizer drawn by the GPU. If I am wrong, then well...

.
Yea, you're wrong.
'Visualizer' currently just displays things as them are.
Re: Fog of War
Posted: 26 Oct 2008, 12:04
by REVENGE
dizekat wrote:REVENGE wrote:
Holdon a second, you're confusing me now.
My belief was that the actual los code with the current los state is updated more or less constantly, every frame; however, the los VISUALIZER as depicted by the L key is only updated every 16 frames. Therefore, I took jK's idea to mean that we could have a nice traditional "fog of war" styled los visualizer drawn by the GPU. If I am wrong, then well...

.
Yea, you're wrong.
'Visualizer' currently just displays things as them are.
Ah damn, that's too bad then.

Re: Fog of War
Posted: 26 Oct 2008, 12:51
by lurker
interpretation 1 {So there is a copy of the los map for visualization updated twice per game second? If so, then can that actually be what's displayed, rather than having a third los map that only updates in parts every once in a while? When I forced it to update the displayed view by holding the L key midgame I didn't notice a significant fps drop. }
interpretation 2 {Is that twice-per-second update only a very small portion of the map? If so, then I would welcome the small performance drop to do the entire map instead. When I forced it to update the displayed view by holding the L key midgame I didn't notice a significant fps drop. }
Re: Fog of War
Posted: 26 Oct 2008, 13:27
by Kloot
1. a copy (overlay texture) of the LOS map is used for visualization
2. the LOS map is updated every 16 simulation frames (per unit)
3. not all unit SlowUpdate()'s happen on the same frame
Re: Fog of War
Posted: 27 Oct 2008, 03:11
by CarRepairer
Gnome wrote:
I have that set to 1 and it still disables shadows. (also tried 0 since it was already 1 when I checked, still disables). Also, whenever I enable LOS view, it not only disables shadows, it makes any units (including my own, which have their own LOS) not on-screen when it was enabled really dark.
I have good news for you. I had this very same problem till I upgraded my video drivers. If upgrade doesn't work for you, turn off reflective units.
To be more specific this only happened after I middle clicked the minimap, and toggling fog of war off/on would fix it, but that makes the game unplayable. So I played without reflective units forever till nvidia upgraded drivers. Fixed now.
Re: Fog of War
Posted: 27 Oct 2008, 04:03
by lurker
Kloot wrote:1. a copy (overlay texture) of the LOS map is used for visualization
2. the LOS map is updated every 16 simulation frames (per unit)
3. not all unit SlowUpdate()'s happen on the same frame
Makes sense. I highly suggest updating the entire copy every 1-2 seconds, or at least having an option to do so.