In-class

That Creative Code Page


Homework

I want to create a tree/bonsai that looks like it is moving in the wind. I based it on the Fractal Tree Tutorial from Coding Train, as well as some initial branching concepts from this Recursive Trees tutorial to try and make the tree look more “natural”.

Initial Results

Initial Results

Initial Results

Initial Results

Then, to mimic the motion of the branches being affected by the force of wind I decided to add some perlin noise to the angle of rotation each branch has.

Note: remember to add an offset to the noise every time a new branch is created, otherwise the branches all be rotated in the same direction as in the example on the right

Noise WITH offset

Noise WITH offset

Noise WITHOUT offset (might work for plants like foxtails or rice plants)

Noise WITHOUT offset (might work for plants like foxtails or rice plants)

Lastly, I added some stylistic choices such as adding flowers/leaves and a vase to make it look more like a plant/bonsai.

Sketch

Final Output Example

Final Output Example

Next steps: I didn’t get to use any vector for this week’s assignment but might use it to add the same organisms to create an ecosystem for next week.