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.
I have also attached the reference image for the same.
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…
The ‘uvP’ points for the reparameterized surface have X/Y values in the range (domain) 0 to 1, so the Image Sampler domain must be set to match that (the Image Sampler default):
When I modify someone else’s GH file that has an Image Sampler, that component (and image) will disappear from my saved file. It must be copy/pasted from the original file to see my changes.
Aspect ratio and resolution matter!
Work at low resolution until you are certain about your code.
Adding Scale after the fact, as below, can be done differently, as each box is created, but I didn’t change that much. You didn’t internalize your surface so I created one.