Grasshopper image sampler

Hi all,

I’m trying to do image sampling in Grasshopper to create a heightfield from an image. The image was originally generated in Grasshopper (sun path / analysis), then edited in Photoshop. The aim is for brighter areas to generate greater heights, while black areas remain flat.

I’ve set up an Image Sampler based on brightness, but it seems to only read the image as black vs white rather than picking up the full range of greys. As a result, I’m not getting smooth height variation.

Has anyone run into this before or know how to fix it? I’m wondering if it’s an image format / grayscale issue, Image Sampler settings, or something to do with remapping values.

Any help would be much appreciated, thanks!

GH_Imagesampler_bricktexture_P01.gh (15.1 KB)

You may give it a try with Image Sapmler, and for your reference.

ImageSampler.gh (185.4 KB)