Created MOSAIC

(Ruben) #1

I have more information about the script need to do the MOSAIC

0 Likes

#2

image

6 Likes

(IVELIN PEYCHEV) #3

:rofl::joy::grin::grinning:

0 Likes

(Laurent Delrieu) #4

Hello Ruben,
your multiple posts lower the quality of the initial question. So try to avoid multiple posting as it looks like spamming.
Meanwhile there are some good papers on this subjects and many strategies. The first ans simpliest one is Voronoi !!!
https://www.researchgate.net/figure/Differences-in-mosaic-generation-algorithms-a-Hausners-method-b-improved-tile_fig6_30012778
https://cs.uwaterloo.ca/~me2thorn/courses/cs791/project/index.html

It is important that you explain what are the constrains, number of sides, free space allowed , minimum maximum area …

0 Likes

(Michael Pryor) #5
0 Likes

(Ruben) #6

This is what the script need to do it


Sem vírus.
www.avg.com

MOSAIC.pdf (860 KB)

0 Likes

#7

Clipper library with multiple offsets and divisions will do the job here

0 Likes

(Ruben) #8

Thank you for your email and information the point is this offsett is standart with the some dimension, in the presentation I send you is diferentes dimension offset and diferente geometry of elements, you have some ideia to improved it.


Sem vírus.
www.avg.com

MOSAIC.pdf (860 KB)

0 Likes

(Laurent Delrieu) #9

I don’t know if somebody asked Ruben, but yes @Petras_Vestartas Clipper is doing the job but it is not enough (to my point of view).
I did make something not very far from the need
Take an image, for example Marilyn Monroe, by Andy Warhol
https://www.eternels-eclairs.fr/tableaux-warhol.php

Draw some curves on it


Make some transformations
See this page


6 Likes

(Pavel M) #11

@laurent_delrieu your script is amazing!! I’ve tried many mosaics algorithms in the past, but this is remarkable!

Would you, by any chance, still have this wonderfull script?

0 Likes

(Laurent Delrieu) #12

Yes I still have it is not so simple but you will have to follow the flow because they are many Dam Looping is also used


You will need Clipper plugin, 4d noise …
20190322_mosaic_v3.gh (201.9 KB)

1 Like

(Pavel M) #13

Thank you very much!

At a first glance it resembles Dr. Di Blasi algorithm on creating such mosaics.

Very nice work! thank you again! I will try to extend your work to create opus tesselatum or musivum like patterns.

0 Likes

(Laurent Delrieu) #14

Cool to see a specialist, I like old mosaics but neither search for their slyles, mames …
If you want it is also possible to make some rectangles


I used a Voronoi tessellation, then each Voronoi polygon is transformed in rectangle using one of my program to search for maximum inscribed rectangle

The only problem is that the script is awfully long !!!
Updated, faster version, with other version for inscribed rectangle 4 s vs more than 2 minutes.
20190322_mosaic_v4.gh (560.3 KB)
With n=1, cubes are aligned and it is the fastest.


20190322_mosaic_v4.gh (559.9 KB)

Some other Iconic picture from Steve Mc Curry
http://www.technocrazed.com/top-10-iconic-photographs-that-marked-our-modern-history


And a very simplified script
20190322_mosaic_v5.gh (1.5 MB)

6 Likes

(Pavel M) #15

You are true maestro!!

Here is a comparison picture with Di Blasi work and i must say that your script does the job far better.!

1 Like

(Ruben) #16

Dear Laurent

Is possble get the mosaic more details with the shape of the picture?

Is posssible get another shape of the mosaic and not only squares?

Best reagrds

Jose

0 Likes

(Laurent Delrieu) #17

Hello Ruben,
there are many possibilities, I already plublished script with things different from rectangle (square is just a special case of square).
In general if someone wants a single shape it will be best to use a nesting program. At the moment for Free one of the best is OpenNest


The only problem of OpenNest is that it doesn’t follow guides curves. But if you deconstruct the image it must work.

1 Like

(Ruben) #18

Hello Pavel

Can you send to me the software Artifical Mosaic Creator to tests with my pictures.

Ruben

0 Likes

How to get the radii from imagecircles node?
(Laurent Delrieu) #19

Here is a way using circle packing in Kangaroo and curve guides. All squares have the same size.

Orienting squares with the curves


Orienting with Voronoi polygon

3 Likes

(Pavel M) #20

@laurent_delrieu you are the best!!!
@ruben here is the link with software and papers http://web.archive.org/web/20080409213801/http://www.dmi.unict.it/~gdiblasi/pubblicazioni/mosaic.php

My problem now is how can i assign numbers to the square/tiles based on that color to make manual installation sheets. Something like Paint-by-Number.

132

0 Likes

(Laurent Delrieu) #21

Hello here is a little script that puts number instead of color.



color number.gh (707.8 KB)

5 Likes