Page 1 of 1

[Mod] LSystem

PostPosted: Sun Sep 20, 2015 15:22
by Sane
LSystem

Hi there,

this is a generic l-system library.
The mod will not really do something on it's own. It is thought to be used by other mods.

A l-systems is a thingy that can be used to generate structures that repeat variations of itself in itself. Those are often found in nature for example in trees. For more information about l-systems have a peek at the wikipedia article about L-systems.

Minetest already uses a simple l-system to generate trees l-system trees. That l-system seems to be thought for tree generation only (just a guess) so it is not very accessible and felxible.

LSystem aims at being flexible, expandable and jet complex and fast enough to generate structures at mapgen time.

How to use: Have a look a the github wiki for LSystem LSystem Wiki

Because this mod does not do stuff directly and I don*t want this to be a complete dry run, I have patched up a simple example on how to use LSystem to generate a simple and boring but vast structure.
(see LSystem Test in the downloads section)
! Do not use the example in a life world !
The example creates a plane field around you and than places the l-system's next generation on it, therby griefing everything that was there before.

Image

As this is my first Lua project i'd be happy to hear about improvements to the sourcecode.

Formal Stuff

Downloads

Depends
  • LSystem
    default, lib
    .
  • LSystem Test
    default, lib, lsystem
    .
  • Lib
    default
License
Copyright 2015 Sane

These mods are licensed under the GNU Affero General Public License

Basically, this means everyone is free to use, modify, and distribute the files, as long as these modifications are also licensed the same way.

Most importantly, the Affero variant of the GPL requires you to publish your modifications in source form, even if the mod is run only on the server, and not distributed.

-------------------------------------------

Re: [Mod] LSystem

PostPosted: Sun Sep 20, 2015 19:35
by Don
Nice idea. I will have to try it out. Would make worlds more interesting.

Re: [Mod] LSystem

PostPosted: Sun Sep 20, 2015 20:15
by Sane
Don wrote:Nice idea. I will have to try it out. Would make worlds more interesting.

Great, thanks for considering.

Re: [Mod] LSystem

PostPosted: Sun Sep 27, 2015 05:01
by Sokomine
Would this mod be able to spawn l-system trees as well?

With some modifications and a third dimension, the screenshot might almost depict a floor plan of a house. Intresting mod!

Re: [Mod] LSystem

PostPosted: Sun Sep 27, 2015 07:08
by Sane
Sokomine wrote:Would this mod be able to spawn l-system trees as well?

With some modifications and a third dimension, the screenshot might almost depict a floor plan of a house. Intresting mod!


LSystem is thought to be quite flexible with it's l-systems. And you most certainly can build 3d structures with it.

Supplying an example that simulates the minetest tree l-system parser is an interesting idea. I'll look into that.

Re: [Mod] LSystem

PostPosted: Sun Sep 27, 2015 20:21
by Sokomine
Sane wrote:Supplying an example that simulates the minetest tree l-system parser is an interesting idea. I'll look into that.

That might be very helpful. That way, I could spawn L-System moretree trees inside a normal voxelarea :-)