3D Tree Model Generator (L-Systems)
A downloadable proc-gen art project
Generate beautiful 3D tree models in the blink of an eye! Each tree is a procedurally generated model composed of up to millions of vertices, rendered in real-time using OpenGL.
I created this to test and develop my OpenGL skills after completing the following free tutorial: https://learnopengl.com/Getting-started/OpenGL
(For my fellow proc-gen programmers) How it works: each tree is drawn using a Lindenmayer System (L-System) of my own design. First a set of instructions is procedurally generated. The turtle then reads these instructions to placed points (vertices) in 3D space. Each point is connected to define triangles, which OpenGL draws. The turtle instructions are simple: draw a stem (a triangular prism), change the angle, or branch. If there is interest, I will make a video explaining in detail how this process works.
Basic Controls:
Space to make a new tree
'c' to cycle through color modes
'esc' to close the program
'r' to toggle toggle between rotating and flying camera
flying camera is controlled with WASD and mouse
Possible Future Additions:
I may develop this further to allow the models to be exported (as .obj files), allowing them to be used in blender, maya, unity, or other game engines. For now, however, I just want to share this project as a software-toy or art project.
Status | Released |
Category | Other |
Author | CeruleanBoolean141 |
Download
Click download now to get access to the following files:
Leave a comment
Log in with itch.io to leave a comment.