Page 1 of 1

rnd_trees

PostPosted: Tue Oct 20, 2015 12:40
by rnd
Growing trees using natural growth process. Growth proces only occurs through air/leaves, the trunk shell can grow into other things too

GITHUB: https://github.com/ac-minetest/rnd_trees/wiki

LICENSE: LGPL

Image

Image

Image

Usage: place rnd_trees:tree on ground.

Algorithm sketch:

Start with one piece of living wood. Assign it life energy and let it grow. With each growth energy decreases. Depending on energy it can randomly branch in random direction with length of branch depending on energy; living wood remembers the branching stage. Randomly add leaves above trunk height with random sizes depending on if we are in end growth stage or not.

If not in branch thicken the living wood a bit to make thicker main tree trunk. The growth stops when living wood is out of life energy.

Re: rnd_trees

PostPosted: Tue Oct 20, 2015 13:52
by Don
Cool!

Re: rnd_trees

PostPosted: Tue Oct 20, 2015 14:54
by MineYoshi
Looks good!

Re: rnd_trees

PostPosted: Tue Oct 20, 2015 14:57
by rnd
here is what happens if no growth limit or bad settings

Image

Image

Re: rnd_trees

PostPosted: Tue Oct 20, 2015 15:21
by MineYoshi
going to happend this!

Image

Re: rnd_trees

PostPosted: Wed Oct 21, 2015 09:55
by rnd
more complex branching process for better looking trees (open image in new tab)

Image

Re: rnd_trees

PostPosted: Wed Oct 21, 2015 15:00
by Minetestforfun
This is beautiful and soo real, really great work, i like it so much !

Can't wait to see this for all trees in a mapgenV7 :)

Re: rnd_trees

PostPosted: Fri Oct 23, 2015 08:59
by rnd
large trees

+ settings used

Image

what remains to be done:
-rewrite code so that it uses http://dev.minetest.net/VoxelManip,
-save "DNA" into each tree seedling so that we can have different types of trees
-few fine tweaks

Re: rnd_trees

PostPosted: Fri Oct 23, 2015 12:05
by Prot
Wow! This is amazing idea! And looks very impressive!
You can do some new biomes with this trees.. Like getting settings from mapgen, and plant somewhere big trees, or somewhere little..
I like it!

Re: rnd_trees

PostPosted: Sat Feb 06, 2016 13:43
by MirceaKitsune
Took a quick look at the screenshots and code. I like both the idea, and how simplistically it seems to be implemented! I might use this for the trees of a Minetest game I'll be making, but need to test it a bit first.

Can you please specify what license the script is under? May I include it as LGPL like most mods are?

Re: rnd_trees

PostPosted: Sun Feb 07, 2016 20:12
by Hybrid Dog
You want to make it use vmanip, do you want a whole tree to appear immediately (faster) or the current way (being able to see it growing, vmanip may decrease speed because of low nodes count)?

Re: rnd_trees

PostPosted: Sun Feb 07, 2016 22:06
by rnd
MirceaKitsune wrote:Took a quick look at the screenshots and code. I like both the idea, and how simplistically it seems to be implemented! I might use this for the trees of a Minetest game I'll be making, but need to test it a bit first.

Can you please specify what license the script is under? May I include it as LGPL like most mods are?


ok, LGPL

Re: rnd_trees

PostPosted: Sun Feb 07, 2016 22:51
by MirceaKitsune
rnd wrote:ok, LGPL


Thanks. I actually wrote my own tree growth function from scratch, since this mod wasn't working well for me. But it was inspired by its idea, and uses the same life-based mechanism. I'm not sure if I'll publish it as an individual mod, but it will be featured in my game.