About Store Forum Documentation Contact



Post Reply 
Fog of war
Author Message
s.padikov Offline
Member

Post: #1
Fog of war
Hello,

is there a build-in support for fog of war feature? If not, what is easiest way to implement this? I want to have a fog of war like by a RTS game!!!

Regards
(This post was last modified: 01-19-2021 05:38 PM by s.padikov.)
01-19-2021 05:36 PM
Find all posts by this user Quote this message in a reply
Argoon Offline
Member

Post: #2
RE: Fog of war
Don't know if the engine has any built in fog of war because I don't use it personally, even thou I follow this forum time to time. About how it can be done, I saw the following video some time ago, of someone making a version of it on a custom engine, the visuals are not that good because is a place holder work in progress but the way he does it may help you, the dev is also a fantastic programmer and worth following.

https://www.youtube.com/watch?v=1NId62Y6llQ&t=4936s
(This post was last modified: 01-19-2021 08:58 PM by Argoon.)
01-19-2021 08:54 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #3
RE: Fog of war
If the game is mostly top-down, then you can just draw a fullscreen image with mask, same like I did in Esenthel RTS.

If the game has views not only top-down, then you might try decal, or use a custom shader.
01-23-2021 01:55 PM
Find all posts by this user Quote this message in a reply
s.padikov Offline
Member

Post: #4
RE: Fog of war
Thank you @Argoon und @Esenthel.

I've bought the Esenthel RTS source code and have already took the fog of war implementation from there and adapted for my needs. It works for 80% of the use cases.
I'll try with decal.
According the custom shader - is there any way to use for world(terrain rendering) dynamic texture, which holds the fog of war?

Regards
01-25-2021 10:25 AM
Find all posts by this user Quote this message in a reply
s.padikov Offline
Member

Post: #5
RE: Fog of war
@Esenthel, how I could make a decal the same size( xz ) as the world(terrain)?
01-25-2021 04:21 PM
Find all posts by this user Quote this message in a reply
Post Reply