algorithmic modeling for Rhino
Hallo,
first I want to explain my question. I have an digital image, which I want a pattern of it by creating lines in a specific rectangular.
The dimension of the image and the regtangular is 3:4.
The boundary of each side is divided by several points. So the endpoints of the lines which should create the pattern shell cross these points.
In the attachment there is an example of what I want to create.
It would be great if anybody can help me
THX
Tags:
awesome
Hi Laurent, great work thank you.
May I ask you to try the same process with a black-white picture? Is it possible to define the grey tones of an image?
You need to play with 'Image Sampler'. Yes, it returns "grey tones" (color brightness) or RGBA colors.
I'm not sure to understand your algorithm... Could you please communicate some more details?
(This is quite funny I'm trying to do the same thing since yesterday, Grasshopper is a very small world)
This is fantastic. I've recently had the same idea but had no idea where to start. The application I thought of is actually to achieve this in 3 dimensions to eventually be printed using a robot arm and extruder. The result would essentially be similar to perspective murals that are only visible from a specific vantage point. I'd be most appreciative if I could chat with you about your process. I'm quite new to GH and even moreso with raw scripting. Great work! Cheers.
Took your pseudo code and tried to mock it out using anemone for the loop. Doesn't seem to have the same success as yours at 400 iterations (i think i see a face). I noticed if I limit the the number of test lines it can draw to test to a random set of N rather than all possible lines I got better results as it wont always go to the darkest spot on the image.
Takes about 12 seconds to run the loop.
hello,could you share the grasshopper file?
After one week, here is a quite proper solution to your problem. The most difficult part was optimisation as some method for Bitmap are quite long, here it was GetPixel. I first use a fast method but which not so fast. See in the code the references.
Hot to use the tool
Click Calculate, experiment. Normally Escape could work to stop the calculations
Thanks for sharing!
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
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by
Thanks Laurent, that's awesome
I have another question.
How is it possible to define the grey tones of the image if the image is black-white? Is it the same process?