I have a black-and-white JPG image (attached) that I want to turn into a topographic mesh, with the white areas raised higher and the black areas remaining flat. I’ve been trying to create this in Grasshopper, but since I’m still new to it, I’m struggling to get it right. I’ve attached my attempt here, does anyone know what I’m doing wrong? Or even better, is there an easier way to achieve this? I’m currently using brightness in the Image Sampler.
Assuming this is literal:
I like the Import Image (IMG) component—nothing wrong with image sampler, just a preference, plus it gives you a colored mesh from the image, which you can adjust resolution for (or leave 1:1 if you remove XY sliders). Using ‘half’ the resolution here:
mesh_brightness_bump.gh (28.1 KB)
Where was that thread where we made the rectangles from the black and white picture?
Wow! Thank you so much, René! This is incredibly helpful and exactly what I meant. It looks great! These are essentially salt particles, and I’m using height to represent their intensity.
Hi again everyone, one other thing what would be the quickest way for me to give this a colour gradient so the tallest (most white parts) would be a darker shade of lets say blue for example?
Perfect! Thank you so much for all your help! I’m feeling more confident about replicating this now!








