Heatmaps

Discussion in 'Site Discussion' started by Geit, Jul 10, 2014.

  1. Geit

    aa Geit 💜 I probably broke it 💜

    Messages:
    598
    Positive Ratings:
    1,122
    Thought I should do a quick recap of what's going on:

    • Kritzkast are now feeding data from their most popular server
    • The API is now limited to 20 requests/sec
    • Heatmap rendering is now 400% faster, on average.
      • Chrome will now rerender repeatedly during a slider event, instead of when sliding is finished (Firefox goes crazy if this is enabled).
    • API responses are now 100% faster, on average.
    • The victims/killers display modes now have buttons.
    • The map list is now paginated, allowing you to browse.
    • Enabled client side cache of data responses. Flicking between display modes (and different maps repeatedly) should be a lot faster now.
    • The site is now responsive and should work at lower screen widths.
    • Data providers are now acknowledged.
    • Cleaned up the code base slightly, still needs a lot of work
    The amount of data from maps such as Upward is becoming overwhelming and is actually quite difficult to analyze because of it, therefore I've decided to go ahead an implement a default filter of 3000 deaths (when filters are complete) to ensure that the data is still readable. This filter can be removed at the user's discretion.
     
    • Thanks Thanks x 4
    Last edited: Aug 3, 2014
  2. Fruity Snacks

    aa Fruity Snacks Creator of blackholes & memes. Destroyer of forums

    Messages:
    6,393
    Positive Ratings:
    5,479
    Awesome sauce.

    I'm also (slowly) working on a guide on how to properly use heatmaps for map analysis with varying amounts of data... so expect that out at some point.
     
    • Thanks Thanks x 1
  3. henke37

    aa henke37

    Messages:
    2,050
    Positive Ratings:
    494
    Could you do more filters now? I miss basics like teams and classes.
     
  4. Geit

    aa Geit 💜 I probably broke it 💜

    Messages:
    598
    Positive Ratings:
    1,122

    Filters are now implemented.
     
    • Thanks Thanks x 3
  5. stegarootbeer

    stegarootbeer L2: Junior Member

    Messages:
    78
    Positive Ratings:
    99
    Would it be possible to have the settings in the url so when you link it to someone they can see it how you see it? Also a quick toggle check box for the heatmap would be great so you can see the map underneath it better.
     
  6. Fruity Snacks

    aa Fruity Snacks Creator of blackholes & memes. Destroyer of forums

    Messages:
    6,393
    Positive Ratings:
    5,479
    You can do that now by reducing the intensity or Radius to 0.
     
  7. henke37

    aa henke37

    Messages:
    2,050
    Positive Ratings:
    494
    I guess next up would be sentry spots? Or perhaps sniper sight lines?

    The first one is tricky. One could simply put points where people put each type of building. Or one could track sentry effectiveness by treating it like a 10th class. Hmm, that would also make it easy to find where people are destroying things from.

    One possible filter could be conditions. Things like jarate, ├╝bers, being zoomed in and all that.

    Of course, there is the quick addition of per weapon filters.

    A possibly interesting filter would be the distance between the killer and victim.

    And a final suggestion, it could be interesting to track pick up popularity. That one could even overlay some icons where the pickups are on the map.

    There is one thing I wonder about, how are suicides reported?
     
  8. Fruity Snacks

    aa Fruity Snacks Creator of blackholes & memes. Destroyer of forums

    Messages:
    6,393
    Positive Ratings:
    5,479
    Engineer kills currently have sentry kills on them, with the sentry location counted as the killer. So they are there.
     
    Last edited: Aug 3, 2014
  9. YM

    aa YM LVL100 YM

    Messages:
    7,098
    Positive Ratings:
    5,933
    The 3k filter ought to be automatically reenabled when you change map, otherwise you're getting flooded with full-data requests once people remove the limit the first time.
     
  10. Geit

    aa Geit 💜 I probably broke it 💜

    Messages:
    598
    Positive Ratings:
    1,122
    Done, requires flash though.

    Sentries are currently tracked as an extended weapon for the enginieer.

    Not currently tracking this, but I could be. There is a small hitch though: condition flags used to be a 32 bit integer, so you could directly interact with it in SourcePawn, then it got larger than that so the SM team added convenience functions for checking conditions. Now it's 80 bit integer and I'm not entirely sure how you'd read it out of the player's entity. I'll have to do some research.

    Noted for later.

    May track pickups at a later date, but they don't exactly lend themselves to heatmapping so they'd just be an extra end-point on the API.

    Suicides are only reported if they're caused by the world (fall damage). Stuff like rocket jumping to death is just ignored.

    The result limit isn't really to protect my server, more just to make the data look reasonable when the page first loads.
     
    • Thanks Thanks x 1
  11. henke37

    aa henke37

    Messages:
    2,050
    Positive Ratings:
    494
    A very important filter, at least for TC, is which round is active. Similarly, the state of the control points.

    And perhaps something about the flag? I am not sure what exactly to do with it, but it is a fairly important game object. At the most basic, a filter for killer/victim holding it.

    Other filters would be overtime, sudden death and humiliation.
     
    Last edited: Aug 4, 2014
  12. Sergis

    aa Sergis L666: ])oo]v[

    Messages:
    1,873
    Positive Ratings:
    1,249
    i like the radius slider cuz it lets me custom fit the blob sizes to my areas and get meaningful info from even a single test

    one problem i see tho is vertically overlapping areas

    make 3d heatmaps plz
     
  13. henke37

    aa henke37

    Messages:
    2,050
    Positive Ratings:
    494
    Or, allow for a side viewpoint.
     
  14. YM

    aa YM LVL100 YM

    Messages:
    7,098
    Positive Ratings:
    5,933
    Geit was talking to me about this, the data is recorded with the full 3 axes, so the height info is there. We were discussing importing it into Unity for a sort of 3D view heatmap. I suggeted either making a bsp viewer for Unity, or turning the heatmap data into a mesh in unity and exporting it as a source model format so you could load it up in hammer. Both are somewhat ridiculous, but fun to discuss.
     
    • Thanks Thanks x 1
  15. Sergis

    aa Sergis L666: ])oo]v[

    Messages:
    1,873
    Positive Ratings:
    1,249
    save every death as env_sprite and import into map

    watch as hammer dies under the weight of rendering 3000 sprites

    then watch as it is all useless because hammer draws sprites thru walls anyway
     
    • Thanks Thanks x 2
  16. Geit

    aa Geit 💜 I probably broke it 💜

    Messages:
    598
    Positive Ratings:
    1,122
    http://mathematica.stackexchange.com/a/17267
     
    • Thanks Thanks x 1
  17. henke37

    aa henke37

    Messages:
    2,050
    Positive Ratings:
    494
    If you want to output png files, then you might want to use the pCAL chunk. Or assume that noone reads the chunk and not bother.
     
  18. Geit

    aa Geit 💜 I probably broke it 💜

    Messages:
    598
    Positive Ratings:
    1,122
    Not such a big update today, I tried to do zooming, failed miserably and threw the code away :C - I'll have to try again tomorrow.


    • Images are now rendered at a constant 1280x1024 and then rescaled by the browser. This will cause a rendering time impact on low power devices, but should be fairly inconsequential.
    • You can now right click on the heatmaps and save them to your computer. (Tested on Chrome and Firefox)
    • Because the rendering size is now constant you can now send someone a link and be 100% certain that they see what you see. (Radius would be in flux based on client resolution before)
     
  19. Idolon

    aa Idolon the worst admin

    Messages:
    1,928
    Positive Ratings:
    5,755
    Strangely enough, doesn't work on Opera. I wouldn't worry about trying to fix it immediately since there's only like 20 people who use it, but just FYI.
     
    • Thanks Thanks x 1
  20. Geit

    aa Geit 💜 I probably broke it 💜

    Messages:
    598
    Positive Ratings:
    1,122
    Opera is sexy. This is their implementation choice though - I'll have to add a button somewhere for downloading the image to make it work in Opera. (Will do that later on)