Research Article

Effects of Wind on Virtual Plants in Animation

Algorithm 1

The general algorithm for branch growth and movement.
Input: time , branch vector b, and wind velocity w.
Output: branch girth , branch length , and branch growth angle , all at time .
  Set the wind growth factor (see (6)).
  Set the branch radius (see (7)).
  Set the branch length (see (8)).
  If , then .
  Set the growth angle (see (9)).
  Determine the axis of rotation for the branch as .
  Rotate the branch around axis according to the growth angle .
  Additionally rotate the branch around axis according to wind velocity w (1).