Horse (How To)

26 Likes

First choose a picture.
Here a nice heightmap picture from Sharpfang

Then generate points on this image.
Solution 1)
Populate the image (a mesh here as I use Import Image) with Populate Geometry


Then search each color on the image for each point. Then evaluate Brightness using Split AHSV. I remap the value to have values between 0 and 1. Not mandatory.
The generate random numbers between 0 and 1.
I then use Graph Mapper in order to suppress some of the points depending on the brightness. Here this component is useful as you can “invert” the brightness or contrast without changing the image.
Then use a dispatch to keep just some points.


horse points.gh (7.9 KB)

Solution 2
use Kangaroo
The pattern will be more regular. It is just a matter of taste


Image_circlepacking_filepath.gh (12.8 KB)

14 Likes

I really think you are having too much fun with Grasshopper…

5 Likes

He’s leading people astray, into unknown territory… :wink:

// Rolf

1 Like

8 Likes

@dale @RIL I had a question from @shankar_ramakrishnan on this on the other forum, so it was a good occasion to post some free explanations. I just think this a good place to give some HowTo like on the old forum. Attracting people here rather than on Facebook seems to be more effective.

11 Likes

+1

// Rolf

2 Likes

And for the Gilbert tesselations, it is quite simple
I first limited the number of cracks to 2000.
Then generate a line with a random angle (just 10 random angles here because I use round)
The generate a line with a random angle from 150 to 180 from previous angle.
So there will be 2 lines to initiate the cracks.

Then Curves are used to split a surface.


Each surface is colored using a gradient
Human is used for the line drawing
GilbertTesselation horse v2.gh (249.8 KB)

You also can use Parakeet to generate Gilbert Tesselations

13 Likes

Thanks a lot Laurent. :slight_smile:

You can use my own Horses HeightMap

1 Like

Thanks for sharing. Nices horses, not sure it will be very simple to have a good result with 2 levels of grey.
And you, why not trying?