How to create an irregular ball shape?

What algorithms will generate random "misleading balls", like in World of Goo . I use Proccesing , but any universal algorithm will do.

I think it comes down to how to “arbitrarily” make balls that are kind of round, but not perfectly round and still look realistic?

Thanks in advance!

+3
source share
4 answers

The thing that makes objects realistic in World of Goo is not their shape, but the fact that the behavior of objects is (more or less) realistic modeling of 2D physics, especially

, , () .

+2

, , , .:)

ellipse, . - , . , .

+1

Unreason, World of Goo - , .

, n () V_1, V_2... V_n . , .

:

1) V_i, T, () V_i, T V_j, "" V_i ( j V_j V_i). f, 1 f (0) ( ).

for each V_j
   V_j = scalingFactor(distance(V_i, V_j)) * translationVector + V_j

2) V_i 1, , .

3) 1) 2) B-.

.

, ...

0

, Metaballs (wiki), .. .

Otherwise, I would suggest a particle approach , in which the ball consists of several particles that stick together with each other, which gives irregularity (remember that this requires a minimal physical engine for the spring body to keep all the particles together).

0
source

Source: https://habr.com/ru/post/1740541/


All Articles