# Creating a heatmap visualiztion in a pointcloud

**URL:** <https://discourse.threejs.org/t/creating-a-heatmap-visualiztion-in-a-pointcloud/66208>\
**Category:** Questions\
**Tags:** data-visualization, heatmap, geometry\
**Created:** [May 30, 2024, 2:40pm UTC](https://discourse.threejs.org/t/creating-a-heatmap-visualiztion-in-a-pointcloud/66208 "2024-05-30T14:40:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soham\_Bhaumik](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/soham_bhaumik/32/38540_2.png) [@Soham\_Bhaumik](https://discourse.threejs.org/u/Soham_Bhaumik)\
**Post date:** [May 30, 2024, 2:40pm UTC](https://discourse.threejs.org/t/creating-a-heatmap-visualiztion-in-a-pointcloud/66208/1 "2024-05-30T14:40:13Z")

</div>

Hi,  
I am having a very tough visualizing and therefore, implementing a heatmap within a sparse point cloud.i have to basically create a gaze-heatmap (on the inner walls of the room) out of the look directions of a player who has been playing within a room.  
I have created the room as a pointcloud (implemented with a instanced mesh that uses box geometries). and then I have found out the intersection points of the player’s forward direction and the instanced mesh by performing a raycast. the room could be of any shape, or have amny different objects inside.

Any ideas as to how i can implement a heatmap visualization? will paramteric geometry be of any help?
