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!
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
, , () .
, , , .:)
ellipse, . - , . , .
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-.
.
, ...
, 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).
Source: https://habr.com/ru/post/1740541/More articles:Android: more scrolling - androidМожете ли вы использовать команду PackageMaker для создания установщика из списка файлов? - installerLaTeX symbol under nabla - latexHow to install more than one version of iPhone SDK? - iphoneWhat is wrong with this method? - javaHow to return MVC View to $ .Ajax JSON POST - jsonС#.NET 4.0 и Generics - genericshow to get all group images on facebook using the FACEBOOK API - phpОшибка пакетного сценария Windows - цитирование переменных, содержащих пробелы - variablesHow to distinguish new elements from existing elements in a SharePoint workflow - workflowAll Articles