Grasshopper

algorithmic modeling for Rhino

Is it possible to concentrate or disperse a population of points according to an image map?

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?

Views: 566

Replies to This Discussion

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.

Ah, so I'd need to do something like this?

That's really interesting, if a bit beyond me.  Thanks for the info!

Oh hey, the more I look into this, it seems like a circle packing problem that Kangaroo might be able to handle.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service