MoI discussion forum
MoI discussion forum

Full Version: climbing plant in 3d

From: Tony77
3 Mar 2021   [#1]
Hi guys,

I would like to create a climbing plant in 3d on which to apply a texture with opacity to simulate real leaves.

Is there a command that randomly generates leaves (represented in random rectangles)?
From: Frenchy Pilou (PILOU)
3 Mar 2021   [#2]
You can use this "random selection" for some tricky things
You can change the "30" who is here 30%

script: /* Random selection of objects from a selection */ var percent = 30; var objs = moi.geometryDatabase.getSelectedObjects(); for ( var i = 0; i < objs.length; ++i ) { if ( Math.random() * 100> percent ) objs.item(i).selected = false; }

and also Dispersion by Max Smirnov ! http://moi3d.com/forum/index.php?webtag=MOI&msg=6486.1

So you propagate vectors along curves ( _vSeed) then objects on these vectors! ;)
(take a tortured surface as alignement of vectors)




From: Michael Gibson
3 Mar 2021   [#3] In reply to [#1]
Hi Tony,

re:
> Is there a command that randomly generates leaves (represented in random rectangles)?

Not that I'm aware of. A couple of programs to try:
http://graphics.uni-konstanz.de/~luft/ivy_generator/

or here:
https://www.thegrove3d.com/

- Michael
From: Frenchy Pilou (PILOU)
3 Mar 2021   [#4]
In the free SketchUp make 2017 you have this crazzy "Sketchup" Ivy by Pierreden!


From: Frenchy Pilou (PILOU)
3 Mar 2021   [#5]
But the best is nothing to do and use something like the Free TwinMotion :) (if you have downloaded it during the last year! )




From: Frenchy Pilou (PILOU)
3 Mar 2021   [#6]
Else with the _Vclone above by Max Smirnov ;)

Of course you can take any objects (volumes, surfaces, curves) here a simple rectangular surface :)
And the scale of the objects can be adapted to the "vectors sizes"!
http://moi3d.com/forum/get_attachment.php?webtag=MOI&hash=c503c7b9654fd39241658b2612cc9bc3&filename=vClone.v1.0.zip

So the only difficulties is draw the vectors on the branches!
Here vectors have the same size so rectagles also !)


From: Frenchy Pilou (PILOU)
3 Mar 2021   [#7]
So problem resolved :)


From: Tony77
3 Mar 2021   [#8] In reply to [#7]
Thanks Michael and Pilou

Pilou I tried Vclone but I can't create multiples of the same object I only create one object on the path
From: Frenchy Pilou (PILOU)
4 Mar 2021   [#9] In reply to [#8]
You must select all "vectors" drawn along the path! (like on my video above) ;)

So select all (Brunches + Vectors) then deselect brunches...

you will obtain your leaves resized like your different vectors...

At the end kill the vectors

Et voilĂ ...
From: Tony77
4 Mar 2021   [#10] In reply to [#9]
But do vectors have to be drawn separately with a series along a curve?
From: Frenchy Pilou (PILOU)
4 Mar 2021   [#11] In reply to [#10]
You draw your vectors (a simple line with many sizes if you want) anywhere you want!

Of course along a curve will simulate a branche :)

That works very fine...here i have 3 sizes...put a color for a more easy selection...


From: wayne hill (WAYNEHILL5202)
4 Mar 2021   [#12]
This a node was I was working on based on this example:

http://jsfiddle.net/GertG/gv2z9r72/

It is in 2D. Adding a third dimension is a future development potential for someone. :-)

The switch is for a new random generation of the branches.

Wayne

Attachments:
Branches.js
Branches.nod

Image Attachments:
Branches.JPG 


From: Frenchy Pilou (PILOU)
4 Mar 2021   [#13] In reply to [#12]
@ Wayne

Will be fine if the last lines extremities will be on a different color!

for working with the _Clone! ;)

Now i must select by hand...some painful :)
And difficult do not take branches against last extremities!

Here some white apples :)

From: John (OKEN)
4 Mar 2021   [#14] In reply to [#1]
Hi,

For me the best option for what you asking for would be to use Blender with specific addons.

Have a look there :

https://www.blender.org/download/

https://inspirationtuts.com/blender-plants-addons-vegetation-asset-packs/

https://blender-addons.org/vegetation-addon/

I do love nurbs based software like Moi3D that i use often, but unfortunately nurbs have some limits for some tasks.

Cheers