Grasshopper

algorithmic modeling for Rhino

Script to convert image to frit pattern (image to pointalism)

I was thinking that there must be a GH script to convert an image to a pattern of dots that could be used as a fritting pattern on glass. similar to what some architects have done with various glass frit patterns... for example: the perforation patterns in San Franciscos deyoung museum by herzog and demueron.

Anyone have insight how we could use grasshopper to convert an image into a series of points that still resemble that image?

I would imageing it would be a combination of converting the image into variable densities and sizes of points/holes/circles.

Thanks for all your help!

Views: 5208

Replies to This Discussion

You can get mesh based on image, get its colors and apply them as parameters to your geometry. 

You can use image sampler as well, but then you'll need to set image ratio manually.

Attachments:

Wow that is awesome!! thanks for the help Mkr!!!

It's exactly what I was looking for but I wasnt sure how to approach setting up the script

Hey mkr,

I am trying to find the import image plugin that you have to allow the image to come into GH.

i get an error message when I load your script and in details it just says unrecognized object.... may have been generated by a plugin and in the description of the unidentified object it just says "import image"

I attached a screenshot

Let me know if you know the problem. I tried searching for it but only found other people talking about using the feature, not the plugin/feature itself.

Thanks!

Attachments:

By the way,

This is what the script looks like when I open it. There are components missing as you can tell

Attachments:

Hmm, I thought that it's native grasshoppers component. Anyway here's another definition that's using sampler. You need to check and enter xy domain of the image (by clicking on mona lisa icon) and choose 'color brightness' channel. 

Attachments:

Great! this works fine. I updated my grasshopper yet still did not get the first script you posted to work.

This one is awesome and super efficient. I found another one from someone else that produced strange results and took forever to process in rhino. Your script is super accurate and super fast.

Thanks a ton for this. It would have taken me ages to figure out on my own (I'm a GH noob if you havent noticed)

Best,
Andrew

How could I decide what are the sizes of the circles. For example: I want the circles to be ONLY 2mm, 4mm, 6mm and 8mm diameters...And I want the minimum to be 2mm, and the maximum to be 8mm...

Thanks !

You need to update to the latest grasshopper - you have a very old version. 

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service