Rotation of Concrete Block based on Image Sampler

unhandled

(Rohan Mishra341) #1

Hi, I’m trying to achieve a rotation based on image sampler for a typical concrete block wall. I have created the the wall using blocks. But nothing is happening when i attach the image sampler. Please help. TIA. :slightly_smiling_face:
I have also attached the reference image for the same.


concrete block 1.3dm (115.6 KB)
concrete_block_1.gh (327.4 KB)


(Miguel Villegas Ballesta) #2

Haven´t opened your definition but I guess that the values from the image sampler must be remapped.
They come out from 0 to 255 and these are values that don´t work well with turns…


#3

Take a look at the attachment. Best.

concrete_block_1_re.gh (17.3 KB)


(Rohan Mishra341) #4

@HS_Kim Thanks Kim this is exactly what i hoped for. Thanks a lot.


(Rohan Mishra341) #5

Thanks for your input Miguel. I’ll keep this in mind for future projects.