Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

kingy

Fog of war

This topic is 5930 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Im wondering how the graphical fog of war effect is achieved in games such as baldurs gate, which removes the jaggedness of the tiles.

Share this post


Link to post
Share on other sites
Advertisement
I don''t know, but in some games (Cossacks f.e.) you can select a unit and then move the mouse over the fog and it will change to the attack symbol. Probably a major bug, but I''d think that they just render a layer of black tiles over the map.

Share this post


Link to post
Share on other sites
One technique is to blit another image on top of the terrain. That image would look like:

101010101
010101010
101010101
010101010
101010101

where 1''s are black and 0''s are transparent. This makes the terrain look like it''s shadowed, and it''s especially nice in high res.

Share this post


Link to post
Share on other sites
nickm your solution is quite usable but i think most developer uses lighting, in their most recent games, but alpha blending can be a good solution either...

Share this post


Link to post
Share on other sites
I haven''t seen Bioware''s latest games but for Baldurs Gate the just used images in the shape of black blobs for the unexplored areas and dotted black blobs for the explored but out of range areas. nickm is correct.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!