I'm making a mosaic using geometry nodes, and I'm trying to make each stone a singular color from a texture. Currently I'm able to project an image texture onto the object, which looks pretty good, but it makes each stone multiple colors rather than each stone being one color. I know how to do a random color based on island, but I would like to pull color from an image texture instead.
Think of these Iberian mosaic cobblestones.
There is slight variation of the three colors in this mosaic, but each stone is distinctly one color rather than a stone between two colors having more than one color. I know the size and placement of each stone in real life is exact and specific based on the design, but I'm not too worried about the details like that for this.
Is it possible to get the average color of the texture at the center of a mesh island, or any single color from the texture within the mesh island? It doesn't have to be too exact, just an overall simplification of an image to have one color per mesh island that has been created by the geometry node -- without having to manipulate the texture in photoshop.
I'm thinking of the way the mosaic effect in photoshop gets an average color of an area and makes it into a square, but I'm not sure how I would translate that to irregular sized and shapes meshes.
This is my blend file:
Thank you