This was my old plan to work with images in Grasshopper. Certainly that was not the result I expected, but this could be counted as a starting point. After seeing beautiful circle packing compositions here, I decided to program Grasshopper, so that it’ll create a subdivision, based on an image data.
This was the initial version, just subdividing a plane with voronoi points and visualizing it according to image’s color values of proper UV coordinates: [GHX: 0.9.0014] There is no interpretation on the points, they are just “random”. (Although I’m looking at the “random” computer functions differently after I studied Mandelbrot here), we may say, yes they are random and they are out of my intention to associate them to the content of the image.
The second challenge was to understand if Grasshopper can interpret not only the colors, but the actual context of the image. In this example, I tried to tell GH that, density of voronoi points should be based on the image contrast. Therefore, this definition checks the closest 5 points for each one, getting their average hue value, and sorting all points based on the contrast fof surrounding points. By selecting a % of these points and performing a voronoi stuff, this definition creates subdivisions, somehow related with the contrast within the image. The results are as expected but still interesting. At first, overall look of the image is identified, then eventually, more detailed areas are processed. Here are two experiments with famous paintings:
This is the latest definition if you want to try; [GHX: 0.9.0014]
QQ截图20180523143407.png (276.1 KB, 下载次数: 40)
欢迎光临 摩登犀牛 (http://rhino3d.us/) | Powered by Discuz! X3.2 |