just a technical question, i see that you use fog of war in your game, i've been looking every where for an answer to how is fog of war done in 3d?
would really appreciate if you could help me, thx.
fog of war
- zuzuf
- Administrateur - Site Admin
- Posts: 3281
- Joined: Mon Oct 30, 2006 8:49 pm
- Location: Toulouse, France
- Contact:
TA3D's fog of war is simple:
there are 3 sort of zones:
_not discovered, map is rendered in black, no units, no features
_discovered but not seen by any unit, map in gray, no units, features in gray
_seen by at least one unit, map with normal colors, units and features are drawn
Here the principle is basic:
an array stores which zone has been discovered, and how long it has not been seen by a unit. every 0.2 sec this array is updated.
there are 3 sort of zones:
_not discovered, map is rendered in black, no units, no features
_discovered but not seen by any unit, map in gray, no units, features in gray
_seen by at least one unit, map with normal colors, units and features are drawn
Here the principle is basic:
an array stores which zone has been discovered, and how long it has not been seen by a unit. every 0.2 sec this array is updated.
=>;-D Penguin Powered
Who is online
Users browsing this forum: No registered users and 33 guests