[REL] [CLIENT] Fog of War Lines

Discussion in 'Released Mods' started by dom314, April 30, 2016.

  1. dom314

    dom314 Post Master General

    Messages:
    893
    Likes Received:
    1,192
    Hello, this mod replaces the shader for the fog of war. This shader makes the edge of the fog of war a distinct cyan border, while the midst of the fog is an only slightly opaque black.
    [​IMG]
    You don't need to press any keys to clearly see the line of sight of any unit, it is active all the time.

    EDIT: Now in white to:
    [​IMG]

    <3
    Last edited: April 30, 2016
  2. xankar

    xankar Post Master General

    Messages:
    748
    Likes Received:
    1,023
    well it's not drugs but good enough
  3. cdrkf

    cdrkf Post Master General

    Messages:
    5,729
    Likes Received:
    4,798
    @dom314 is this a cure for the AMD gpu bug with fog of war?
    martianhunter and tunsel11 like this.
  4. dom314

    dom314 Post Master General

    Messages:
    893
    Likes Received:
    1,192
    It would be nice if someone who has the issue tried it...but I doubt it. I didn't do anything to avoid any floating point holes.
    martianhunter and tunsel11 like this.
  5. Ksgrip

    Ksgrip Active Member

    Messages:
    612
    Likes Received:
    242
    Dom, what do I have to change to make it white? I mean where is the file with the RGB values?

    Could you upload a white version?
    Also, THANKS¡¡
    Your mods are always awesome
    dom314 likes this.
  6. dom314

    dom314 Post Master General

    Messages:
    893
    Likes Received:
    1,192
    Thanks, :3
    Line 44 of shaders/fog_of_war_resolve.fs, change:
    Code:
    vec3 color = vec3(0, 1, 1);
    to:
    Code:
    vec3 color = vec3(1, 1, 1);
    Or download the new mod :)
    Last edited: April 30, 2016
    martianhunter, Nicb1 and Ksgrip like this.
  7. Ksgrip

    Ksgrip Active Member

    Messages:
    612
    Likes Received:
    242
    Dude you are awesome
    Nicb1 likes this.
  8. wpmarshall

    wpmarshall Planetary Moderator

    Messages:
    1,840
    Likes Received:
    2,941
    Might it be possible to have a version where the line colour is the same as your team colour?

    And possibly a version for spectators where the line is the same colour as the team of the unit that has vision?

    Awesome idea for a mod!
    cdrkf, martianhunter and mwreynolds like this.
  9. dom314

    dom314 Post Master General

    Messages:
    893
    Likes Received:
    1,192
    Oops, I missed this comment! Sorry! I will have to check, but I don't think this shader has access to that information. It all depends on what is bound to them when they are compiled. That is indeed a good idea for a mod.
    martianhunter likes this.
  10. MrTBSC

    MrTBSC Post Master General

    Messages:
    4,829
    Likes Received:
    1,818
    helps pretty well, nice work!
    dom314 likes this.
  11. Quitch

    Quitch Post Master General

    Messages:
    5,224
    Likes Received:
    5,963
    Unless I'm missing something, the white line mod seems to use cyan lines too.
  12. dom314

    dom314 Post Master General

    Messages:
    893
    Likes Received:
    1,192
    Neither of the mods have changed, so something else must be going on. I will see if I can reproduce.
  13. cdrkf

    cdrkf Post Master General

    Messages:
    5,729
    Likes Received:
    4,798
    You know that the 'bug' on AMD cards was actually an error on Ubers end. The reason it worked on nVidia was their OGL driver didn't follow the specs...
  14. Quitch

    Quitch Post Master General

    Messages:
    5,224
    Likes Received:
    5,963
    I use an nVidia GTX 980 Ti, driver version 390.77.
  15. dom314

    dom314 Post Master General

    Messages:
    893
    Likes Received:
    1,192
    @Quitch, I can reproduce the bug by changing from the cyan version to the white version, but if I then restart PA I correctly get the white version. It seems to me that it's sticky. I think I've encountered this previously with shaders not updating.
    Quitch likes this.
  16. stylisticsagittarius

    stylisticsagittarius Active Member

    Messages:
    173
    Likes Received:
    57
    Is it possible to create this with the green radar lines as wel?
    Not covering the whole area green but just so you can see the radar lines all the time?
  17. MrTBSC

    MrTBSC Post Master General

    Messages:
    4,829
    Likes Received:
    1,818
    then better with an option of turning it off .. cause i rather would not raderarings be on all the time ...
  18. stylisticsagittarius

    stylisticsagittarius Active Member

    Messages:
    173
    Likes Received:
    57
    Well this would be best a seperate mod wich so people can choose. And just like the vision radius lines it would only be the outer lines(again not covering the whole area green like what you see when you select a radar). so basicly these would go far outside your vision radius and shound not hinder you in any way and even be completly gone if you hav full radar view on a planet. But it does would create a much clearer picture of where the enemy still might be able to hide without having to search your radar units/buildings
  19. MrTBSC

    MrTBSC Post Master General

    Messages:
    4,829
    Likes Received:
    1,818
    i understand what you want out of it .. i personaly simply don´t want it ..

Share This Page