- Home /
Heatmap for tracking enemy threat.
Good afternoon, I am curious about how to go about creating a heatmap tracking multiple enemy agents line of sight, then overlaying that information over the terrain. The clutch is that it needs to be able to track upwards of 50 or so agents at a time.
I don't need specific scripting help, but where to start would be really welcome.
$$anonymous$$aking a heatmap is easy, all you have to do is implement a grid with some kind of gridspace-to-worldspace transformation. As for overlaying 50 different agents at a time, that depends on how fast you can make the raycasting algorithm that deter$$anonymous$$es their line-of-sight! As long as the heatmap is additive, it shouldn't be a problem. Look up simplified pixel lighting models, it should give you some pointers in the right direction (since it's basically the same problem).