This is something i wanted to do for a long time. Primcount Heatmaps! When i first thought of it i hoped it would be a matter of some LSL scripting, dumping the results in a database and create a little image afterwards. Well.. Wrong! LSL is too limited in too many ways. Luckily there is always my good friend Dafne Lednev. Dafne is running my own libopenmetaverse based Second Life bot originally called ChiparusBot/0.1. Together with some perl i created some experimental heatmaps for my own sim Ten Thousand Shadows.
Doing primcounts using bots is a little more flexible, since you have all the information available about prims. However, for now i decided that only storing the prim positions would be enough data. The other option was to also calculate the actual prim sizes in the graph, but that was not my goal for now. Still there was one little annoyance to overcome using a bot to do primcounts. The bot doesn’t seem to track all prims in the sim, only within a certain range. This was hackingly solved by using a little LSL script to teleport the bot to several places in the sim and take snapshots of the primdata to process it afterwards.
This is the result after a few experiments.
Which is exactly i was hoping for. The white dots show areas of high prim concentrations and the blue dots are just single or just a few prims stacked together.

