GithubHelp home page GithubHelp logo

l-systems's Introduction

L-Systems

This is an add-on for Lindenmayer systems within Blender. The add-on creates fractal patterns (Currently limited to 2D patterns) within Blender. It uses the Blender Python API to do so and supports a limited grammar as of the moment.

User Interface

The user interface provides simple to understand, self-explanatory briefs about how to use the tool. The list of supported grammar is given below:

  • F/G : Go forward by some number of units
  • B : Go backward by some number of units
  • X : Doesn't do anything, acts as a placeholder
  • - : Turn left by some degrees
  • + : Turn right by some degrees
  • [ : Corresponds to saving the current values for position and angle
  • ] : Executing the saved values in '['

(We turn 60 degrees by default)

Samples

There are a bunch of sample curves/systems that can be generated. These should help you get started with the tool and give you a basic idea about the working. For further details and study, please refer to learn. A few eamples of generated patterns can be found down below.

Samples

Code

The whole tool has been written in Python, on the Blender Python API. There are no extra dependencies and this should work with all 3.2.0+ builds of Blender. The code is heavily commented and modular. Please feel free to have a look!

Demo Video:

NOTE : THIS IS STILL A WIP. You are free to make changes and use it as and when necessary. Don't forget to give credits where necessary!

l-systems's People

Contributors

vkg5 avatar

Stargazers

Tong Zhao avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.