Skip to content

A Three.js WebGL implementation of L-systems to generate multiple trees in a forest in 3D

License

Notifications You must be signed in to change notification settings

muraliavarma/forest_lsystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

L-systems and Forests 🌳

A Three.js implementation of L-systems using Turtle Graphics to generate beautiful procedural forest scenes.

Overview

This project implements Lindenmayer systems (L-systems) using Three.js and Turtle Graphics to create procedurally generated forest scenes. L-systems are a mathematical formalism used to model the growth processes of plant development and fractal patterns.

Features

  • Procedural generation of trees using L-systems
  • Realistic 3D rendering using Three.js
  • Interactive controls for customizing tree parameters
  • Multiple tree species and growth patterns
  • Beautiful forest scene generation

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/forest_lsystem.git
cd forest_lsystem
  1. Open index.html in your web browser or serve it using a local web server:
# Using Python's built-in server
python -m http.server

# Or using Node.js
npx serve

Usage

  1. Open the application in your web browser
  2. Use the interactive controls to adjust tree parameters
  3. Generate new forest scenes with different configurations

Project Structure

forest_lsystem/
├── css/          # Stylesheets
├── js/           # JavaScript source files
├── libs/         # Third-party libraries
├── images/       # Image assets
├── index.html    # Main application file
└── writeup.html  # Project documentation

Contributing

Contributions are welcome! Please read our Contributing Guidelines for details on our code of conduct and the process for submitting pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Three.js for 3D rendering
  • The mathematical beauty of L-systems
  • The natural world for inspiration

About

A Three.js WebGL implementation of L-systems to generate multiple trees in a forest in 3D

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors