[Mod] LSystem

User avatar
Sane
Member
 
Posts: 103
Joined: Tue Jun 17, 2014 09:31
GitHub: mt-sane
In-game: Sane

[Mod] LSystem

by Sane » Sun Sep 20, 2015 15:22

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.

-------------------------------------------
Attachments
screenshot_20150920_165701.png
screenshot_20150920_165701.png (308.74 KiB) Viewed 863 times
Last edited by Sane on Mon Sep 21, 2015 06:32, edited 2 times in total.
Trying to stay me.
 

User avatar
Don
Member
 
Posts: 1641
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Mod] LSystem

by Don » Sun Sep 20, 2015 19:35

Nice idea. I will have to try it out. Would make worlds more interesting.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

User avatar
Sane
Member
 
Posts: 103
Joined: Tue Jun 17, 2014 09:31
GitHub: mt-sane
In-game: Sane

Re: [Mod] LSystem

by Sane » Sun Sep 20, 2015 20:15

Don wrote:Nice idea. I will have to try it out. Would make worlds more interesting.

Great, thanks for considering.
Trying to stay me.
 

Sokomine
Member
 
Posts: 2980
Joined: Sun Sep 09, 2012 17:31

Re: [Mod] LSystem

by Sokomine » Sun Sep 27, 2015 05:01

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!
A list of my mods can be found here.
 

User avatar
Sane
Member
 
Posts: 103
Joined: Tue Jun 17, 2014 09:31
GitHub: mt-sane
In-game: Sane

Re: [Mod] LSystem

by Sane » Sun Sep 27, 2015 07:08

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.
Trying to stay me.
 

Sokomine
Member
 
Posts: 2980
Joined: Sun Sep 09, 2012 17:31

Re: [Mod] LSystem

by Sokomine » Sun Sep 27, 2015 20:21

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 :-)
A list of my mods can be found here.
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 5 guests

cron