Heatmap
Note: Heatmap only works currently for single user, and full integration is only available as of version 1.8. Alternate Static Heatmap is as of version 1.9.5
After running a session, run the "SessionReplay" file (or SessionReplay_360 for 360 video content).
Heatmap - Static/ Alternate version
This heatmap will display heatmap points for the entire scene at once. This requires a session that is generated with 1.9.5 or higher. When you start Session Replay there will be two sliders on the bottom left. The top one will adjust the radius of the heatmap and the lower one will adjust the opacity. The original heatmap slider will appear below these two. You can have both heatmaps displayed at once. Press the "i" key to toggle on or off this heatmap. You can also adjust where the data file is located for this heatmap in the session replay under data_dir = 'utils/data' (the default location is utils/data).
Additionally you can find a HeatMap_Visualizer example in the ExampleScripts folder that will allow you to generate a heatmap for the multi-user (individual clients) as well as generate a heatmap for all trials within a folder or all trials using a specified condition (for instance this could also just run an aggregated heatmap for a specific user if you've given them a unique participant id)
For the latest version of the HeatMap_Visualizer click here
Heatmap - Dynamic/ Original version
To generate the heatmap press the "H" key. This will generate a heatmap in first person view. After the heatmap is generated, press "J" to display a static heatmap and a slider will appear that lets you change the intensity.
By default the heatmap will need to be generated first, but you can go into the settings.py file and change HEATMAP_FLAG = 0 to HEATMAP_FLAG = 1 for the heatmap to generate alongside running the main SighLab experiment. The heatmap can change the look of some environments though (due to the shader being used).
To save a video recording of the heatmap playback, press the Windows Key + "G" and press record. This will save a video recording in your "Videos" folder in Windows.
HEATMAP_VISUAL_FLAG will allow you to see a live view of the heatmap while running an experiment.
For the heatmap visualizer of all trials you can adjust these options in the heatmap_visualizer_config.py file
#Environment to use for heatmap visualizer playback
ENVIRONMENT = 'utils/resources/environment/dojo2.osgb'
#Directory to pull data from
DIRECTORY = 'utils/data'
#Set to true to pull only trials using a certain condition
USE_CONDITION = False
#Name of condition to use if USE_CONDITION is set to True
CONDITION_VALUE = "condition"
USE_WALK_PATH = False
USE_PASSTHROUGH = False