#3 Extra bits
Bonsai » Devlog
Wanted to go over the extra things I added to this visualizer, mainly for aesthetic purposes.
TREE SWAYING
- The tree swaying is simply done by applying a sine wave to the angle parameter that that ”+” and ”-” commands use.
LEAVES
- I wanted some of the presets to have leaves so I simply added that on certain presets, every time the drawing turtle LOADS we place a leaf sprite at that position.
GRASS
- The swaying grass was done by drawing individual triangle primitives to the screen, generating a weight gradient from the bottom of each blade to the top(the bottom being the heaviest and the top being the lightest) based on this gradient, I applied a modified sine wave wind shader to the primitives where the lighter areas of the grass are affected more by the wind than the heavier areas. All these things work together to make the grass appear that it is blowing in the wind.
FISH
- The koi fish were simply made by using particle effects. A simple orange circle that gets smaller over its lifespan. The particle emitter is then moving in a sine wave pattern from left to right across the screen, creating the effect of a fish swimming through the water.
Bonsai
L-System Visualizer / Virtual Bonsai Terrarium
Status | Released |
Author | Jason Accardo |
More posts
- #2 How To Use L Systems For Plant-Like StructuresOct 01, 2021
- #1 What Are L-Systems and How Do They Work?Oct 01, 2021
Leave a comment
Log in with itch.io to leave a comment.