MoI discussion forum
MoI discussion forum

Full Version: Voronoi Script or plugin

Show messages:  1-17  …  38-57  58-77  78-97  98-117  118-137  138-157  158-177  …  198

From: glmr
6 Mar 2018   [#98] In reply to [#97]
how did you make smooth edges on your gold box?
From: mkdm
6 Mar 2018   [#99] In reply to [#98]
Hi glmr.

Well...I first chamfered in Moi the edges of the Voronoi walls, as you can see here




Then I exported in obj format and finally loaded in 3D-Coat.
There I have voxelized the imported object and applied a Shader.
Last stage, the render with 3D-Coat's Render Room using its builtin PBR renderer.

I often use this "trick" to create "quick and dirt" rendering with super smooth edges without the need to do the "fillet" stage in Moi.
Using 3D-Coat's Voxels I can get super-exaggerated smooth edges in the blink of an eye.
But in this case you need to create Voxels with very high poly count, many millions, and you need a decent CPU+GPU to do that.

But if you have time to spent and want to do the things with better precision then I'm pretty sure that you can fillet the Voronoi walls directly in Moi.

Anyway...this is just one of many ways to get "smooth" edges on Voronoi structures.

3D-Coa's way is one of my preferred, but only because it fits perfectly in one of my wokflows for "2D/3D image composition".
Quick and easy.

But it's a very personal technique, maybe others can find it too "coarse".

Ciao!
From: Frenchy Pilou (PILOU)
6 Mar 2018   [#100] In reply to [#99]
<< you can fillet the Voronoi walls directly in Moi.

With some prudence!
Because there are some sharpen angles in a voronoi diagram and the input will be the best minimum acceptable of all corners!
As there are a lot of them you have all luck that your calcul fillets failed!

Maybe increase the Scale size of the all objects before make general fillet!

10 seconds for 100 objects fillets top faces : but the most difficult is to find the best accessible angle! (20 seconds :)
(I7 4 years old : not sure that the graphic card is influent to the calcul ?
From: glmr
6 Mar 2018   [#101] In reply to [#99]
thanks!
From: Max Smirnov (SMIRNOV)
7 Mar 2018   [#102]
Voronoi.v.1.1.2018.03.07
Added X button. Double click this button to reset a diagram.
Added Filter slider. Use it to remove extra small sides of polygons.

http://moi.maxsm.net/item/48
From: mkdm
7 Mar 2018   [#103] In reply to [#102]
Thank you very much Max!!

Are you running for a prize ? :)
It seems that this Voronoi plugin is a sort of personal challenge for you.

Great job, great job Max!!!

Only a question, if I may...

I did some test but I can't figure out how the new "Filter" affects the output of the Voronoi.

Could you please write something about it ?

Thanks again.
From: Frenchy Pilou (PILOU)
7 Mar 2018   [#104] In reply to [#102]
French Version Updated! ;)

http://moiscript.weebly.com/scripts-de-max-smirnov.html
From: Max Smirnov (SMIRNOV)
7 Mar 2018   [#105] In reply to [#103]
Hi Marco

>>Are you running for a prize ? :)
>>It seems that this Voronoi plugin is a sort of personal challenge for you.
No, it's not a challenge. I just want to make a good script and then forget about it.

>>I did some test but I can't figure out how the new "Filter" affects the output of the Voronoi.
It doesn't affects the output if Corners slider set to 0. Set corners to 100 and the move the Filter slider.
From: mkdm
7 Mar 2018   [#106] In reply to [#105]
Ciao Max!

@You : "...It doesn't affects the output if Corners slider set to 0. Set corners to 100 and the move the Filter slider..."

Perfect! Got it.
Tested and now is...perfect!!

@You : "...I just want to make a good script and then forget about it..."

OK! Then you can sleep soundly :) You created an AMAZING script.

Thanks a lot for all your effort.

Ciao!
From: mkdm
7 Mar 2018   [#107] In reply to [#105]
Max...your wanderful script gave me an inspiration..."How to brake in two each Voronoi cell and make a funny thing"



Look at this video : http://take.ms/pBFZS

In short the process I have used is :

1 Select all Voronoi curves
2 Apply the "mark curve start" plugin
3 Select again all Voronoi curves
4 Apply the "mark curve middle point" plugin
5 Trim the Voronoi curves with the generated points of steps 2 and 4
6 Close all the "half curves" with the command "closecurve"

You can download all the plugins I've used at : http://take.ms/uAgYy

Unzip and copy the files into the Moi's "commands" folder.
THOSE CUSTOM COMMANDS WHERE TESTED WITH MOI V3
I suppose they should work also with Moi V4 but I didn't try)


Ciao!
From: mkdm
7 Mar 2018   [#108] In reply to [#107]
P.S....forgot to say that I've used also another Max's custom command : "PatternSelection"

You can grab it here : http://take.ms/0F9I8

Ciao!
From: glmr
8 Mar 2018   [#109] In reply to [#105]
I was waiting for this moment sooo long. Now your script is perfect, just perfect! Thank you very much!
From: mkdm
8 Mar 2018   [#110]
Hello everyone!

I admit I was tempted to create on the fly a brand new thread but I want to submit this thought to all "colleagues" moiers :)

The new thread I wanted to create should be : "PUBLIC THANKS TO MAX SMIRNOV FOR ALL HIS AMAZING AND PRICELESS JOB!!!"

I think it should deserve much more than this but anyway...tell me what do you think ?

Thanks.
From: Frenchy Pilou (PILOU)
8 Mar 2018   [#111]
Best thanks is use the Max's scripts! ;)
From: mkdm
8 Mar 2018   [#112] In reply to [#111]
Yes Pilou!
You're right...but I think that maybe a public thank could b a nice thing for him....I don't know :)
From: danperk (SBEECH)
8 Mar 2018   [#113]
Thanks Max!
From: Frenchy Pilou (PILOU)
8 Mar 2018   [#114]
With the little trick above :) http://moi3d.com/forum/index.php?webtag=MOI&msg=7177.81
(2 different grids Isected then ExplodeMoved: one with Corners =0, other Corners = 100 )


PS Subdiv (not applied here) don't works with all volumes ( surely some > 5 polygons! )


From: mkdm
8 Mar 2018   [#115] In reply to [#114]
Very nice!

A sort of "fragments of an exploded planets" :)
From: bemfarmer
8 Mar 2018   [#116]
Is it possible to add a file of points, as input to the voronoi script?

- Brian
From: Max Smirnov (SMIRNOV)
9 Mar 2018   [#117] In reply to [#116]
Hi Brian

you can use ImportPointFile script (http://kyticka.webzdarma.cz/3d/moi/#ImportPointFile)
then select points and run voronoi script

Show messages:  1-17  …  38-57  58-77  78-97  98-117  118-137  138-157  158-177  …  198