Skip to content

A physics-inspired algorithm that packs and deforms shapes to automatically generate mosaic artwork.

Notifications You must be signed in to change notification settings

azer89/RepulsionPak

Repository files navigation

RepulsionPak is a method to fill a container shape with deformable elements, creating 2D artistic packings/mosaics. Since the elements are pliable, they can deform to achieve a better fit with their neighbours and the container. The simulation starts with an initial random placement of small elements and gradually transform them using repulsion forces that trade off between the evenness of the packing and the deformations of the individual elements.

Publications

Gallery

image image

Simulation process

01_animals.mp4
02_butterfly_skull.mp4
03_cats_in_a_fish.mp4

Adobe MAX Presentation

https://www.youtube.com/watch?v=oIRz9cuDbSc

Source code

Environment: Windows 10 x64 and Visual Studio 2017 (C++14)

Dependencies:

Additional tools:

About

A physics-inspired algorithm that packs and deforms shapes to automatically generate mosaic artwork.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages