10 nat­u­ral ef­fects

3D World - - TUTORIALS -

For a more nat­u­ral look, add the WAN­DER force. On each step cal­cu­late a ran­dom di­rec­tion based on a noise func­tion. This ran­dom vec­tor adds to the di­rec­tion the seed gets moved. For bet­ter bal­anc­ing, also in­tro­duce two weight­ing fac­tors to the in­ter­face, scal­ing our forces up or down. The re­sult is vines grow­ing with a lot more vari­a­tion, but they now pen­e­trate ob­sta­cles they meet. To avoid this, the third type of force comes in handy, the WALL di­rec­tion.

Newspapers in English

Newspapers from Australia

© PressReader. All rights reserved.