algorithmic modeling for Rhino
Hiya. I'd like to use an image map (say a simple gradient) to move the points in a 'Populate 2D' region so that they are more concentrated in (for example) the dark areas, and less in the light.
My only idea was to move the points in random directions to an amplitude determined by the image map... but that's a pretty lousy approximation of what I'd like to do.
Can anyone help?
Tags:
It's easy enough to move a point based on the colour of the pixel 'underneath' it, it's much harder to make a point move along a trajectory that 'follows' the image map. That would require consecutive evaluations where each iteration depends on the previous one.
An in between solution might be to pick the direction of motion based on the local region of the image. For example you could turn the image into a heighfield surface, then evaluate the normal of that heighfield at each point location and use that normal direction as a guide for your motion direction.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by