I have a high-level challenge I'm trying to work out, and feel I'm very close but missing some Geometry Nodes knowledge to get what I want out of it, and would really appreciate some help or direction.
The goal is to take an object consisting of a 'cloud' of unconnected vertices, each with a custom attribute value on them, and create a 3D graph that groups the points into a grid and assigns height based on this custom attribute, summed for each point in the grid square.
For some background I'm using this script to convert a csv file into the vertex cloud: https://blender.stackexchange.com/a/241870/76672
I can easily turn this into a bar chart by instancing cubes on each point and moving the bottom face, but the issue is the bars will often overlap, so I want to have a grid underneath that groups points near each other and shows the amount by summing the number of points, or the combined value of the attributes.
This is a top-down view showing an example point distribution over a small grid (3 points over the green square, 1 over the blue, 1 over the red, and none over the yellow):
and the expected result:
I have been trying to use Raycasting from the points downwards onto a grid in Geometry nodes, as well as the Attribute Statistic node to sum attributes, but I'm getting a bit stuck, and if anyone is up for giving me some pointers for this challenge (im using Blender 3.1) Id really appreciate :-)