MoI discussion forum
MoI discussion forum

Full Version: Node Wish List

Show messages:  1-9  …  210-229  230-249  250-269  270-289  290-309  310-329  330-349  …  410-425

From: bemfarmer
16 Mar 2022   [#270] In reply to [#269]
Thank you James.
So I finally found the WidgetPanel code here:
litegraph.js zip is at github.

litegraph.js-master>src>nodes>interface>WizardPanel().

It states "Non interactive panel".
So my guess is that it is just a pretty box, which does not have any text ability. (???)
There are a couple of other programs using litegraph, that may use the box, with additions, to display graphics(?)

- Brian
From: bemfarmer
16 Mar 2022   [#271] In reply to [#270]
There is a LiteGraph used in blokist.gitlab.io, but I cannot find out where to download it. gitlab site does not recognize blokist.

- Brian
From: James (JFH)
16 Mar 2022   [#272] In reply to [#270]
Brian,

Sorry, only include the cascading menus in the image in my last post
to reveal the location of "Panel" node. I should have checked that each tier
of the activated menu items remained highlighted: Add Node/Widget/Panel

The other element in litegraph demo that would be useful in NE is "Add Group"
Groups may be individually named and nodes are within the group border can then
be moved around the canvas as a block.


James
https://www.instagram.com/nodeology/

Image Attachments:
litegraph_AddGroup.jpg 


From: Barry-H
16 Mar 2022   [#273]
Hi,
not sure if it's been mentioned before but the ability to name objects that then appear in Moi object list would be useful.
I am creating mechanisms with one nod then automating with another nod to check for clashes. So the get by name node
would automatically pick the objects if this was available.
Cheers
Barry
From: James (JFH)
18 Mar 2022   [#274] In reply to [#1]
L-System Node


Some time ago I became excited by the potential of the Lindenmayer rewriting system for pattern generation in nodeEditor.
The wikipedia page offers a decent explanation:
https://en.wikipedia.org/wiki/L-system

Initially I was thinking of a pair of nodes: a) universal rewriter & b) a interpreter/turtle node. This is the common approach and the one that Grasshopper has taken. However, I realised that the lack of facility for handling string data would render this method impractical, and so shelved the idea.

That was until today when I discovered this website:
https://onlinemathtools.com/l-system-generator

The images above are all examples of patterns generated with this online tool, and could potentially be generated in NE with parametric control.

The page is rich in javascript, including one linked files called "l-system-generator.js" which I wonder if it may present a template for
the authoring of a NE node following a similar approach. Many of the options on the webpage would not be needed in the node.

Link for javascript file:
https://onlinemathtools.com/js/bridges/l-system-generator.js?v=2dcf9b

Below I have shown a proposal for a L-System Node. It need only have inputs for the Starting point, the number of generations, the line length for branches, the branch angle and scaling factor of line length of branches of each generation. For the 6 patterns shown above the "Scale/Gen" value would be 1, but botanical structure such shown below would have a decimal value < 1 (eg 0.3).

All of the grammatical formulation would be located in the info panel. I have included outputs as lines and as well as points because each has advantages.

I know that this would likely be a major undertaking, but if there are any biters, I do believe it was be an amazing contribution to NE.

Have a great weekend,
James
https://www.instagram.com/nodeology/



PS this page may also be of interest:
https://jsxgraph.org/wiki/index.php/JavaScript_code_for_producing_Lindenmayer_systems

Image Attachments:
l-sysMockup2.jpg 


From: Frenchy Pilou (PILOU)
18 Mar 2022   [#275] In reply to [#274]
for complete ;)



https://www.youtube.com/watch?v=JFugGF1URNo&list=PLRqwX-V7Uu6bxNsa_3SfCPyF9Md9XvXhR
and look on the right of the page of links!


From: bemfarmer
18 Mar 2022   [#276] In reply to [#274]
James, a cool project, (for someone with time:-)

Is the js code for the algorithm(s) downloadable from the site?
I do see lots of code in page source...

fern is in the MoI forum.

Free Book:
http://algorithmicbotany.org/papers/abop/abop.pdf

- Brian
From: James (JFH)
18 Mar 2022   [#277] In reply to [#276]
Brian,

quote:
Is the js code for the algorithm(s) downloadable from the site?
I do see lots of code in page source...


I updated my previous post to include the link to "l-system-generator.js"

James
https://www.instagram.com/nodeology/
From: bemfarmer
19 Mar 2022   [#278] In reply to [#277]
Thank you James.
Did a parse, but have no time now.
May watch coding train.
- Brian
From: wayne hill (WAYNEHILL5202)
20 Mar 2022   [#279]
BarnsleyFern Sample

Attachments:
BarnsleyFern.js


From: James (JFH)
24 Mar 2022   [#280] In reply to [#276]
Brian,
quote:
Free Book:
http://algorithmicbotany.org/papers/abop/abop.pdf

Thank you for the link. I download & voraciously devoured its content.
Moreover I have returned it again & again...Lindenmayer's insight was extraordinary:
that a simple set of instructions applied recursively would generate limitless patterns and forms, but further that a subset of these would be facsimiles of forms found in nature. Though for me at least, it is the novel pattern generation that is most exciting, particularly those that possess aperiodicity like the explorations of Roger Penrose.

Much to think about,
Thanks again,
James
https://www.instagram.com/nodeology/
From: bemfarmer
24 Mar 2022   [#281] In reply to [#280]
Thank you James, and for the example of the Gate node.
- Brian
From: Frenchy Pilou (PILOU)
25 Mar 2022   [#282]
Cool pdf!

In the same order of idea
http://www.entrelacs.net/-Celtic-Knotwork-The-ultimate- by hand

With computer ;)
http://www.hypatiasoft.fr/Folder_KnotsBag/Pages_HTML/KnotsBag_A.html

and my little prog online! ;)
Drag & Drop any png image with a transparent background...(better 1024* 512 )
(An JPG image will made a neutral result )
https://editor.p5js.org/Pilou/full/y1GHaBqyT

you will obtain some funny images




here for example with an Moi obj


or with my recent Gaugan pilouterie :)

From: wayne hill (WAYNEHILL5202)
25 Mar 2022   [#283]
Hi All,

This is what I have so far on my alpha version of L-System for the Node Editor. Still working on the interface. All the l-system samples are working so far.

Wayne

Image Attachments:
l-system.PNG 


From: James (JFH)
25 Mar 2022   [#284] In reply to [#283]
Wayne,
quote:
This is what I have so far on my alpha version of L-System for the Node Editor

It is looking great...very exciting.
I see that you are closely following the approach of onlinemathtools.com/l-system-generator, including its input values of width & height. I purposely excluded these from my node proposal because the consequent distortion of the output would generally be undesirable. The spatial limitation of displaying within the webpage necessitates the inclusion of these (w,h) input values. The virtual 3d space has no such limitation, besides any requirement for scaling and proportioning may be achieved subsequently with Objects2/ScaleUVW node.
quote:
Still working on the interface.

I understand that you are at beta stage and the interface considerations are far from fixed (and you have likely had the same thought) , but the inclusion on the node of inputs for angle and iterations would give greater dynamic control of output.

I also know that there is no scaling factor per generation included in the js code of the online tool, but if this facility was possible it would push the capabilities into a realm beyond; opening up a new world of possibility....worthy of consideration!

Again, thank you for your hard work with this. I can't wait to get my hands on it.
Keep up the good work,
James
https://www.instagram.com/nodeology/
From: James (JFH)
25 Mar 2022   [#285] In reply to [#281]
Brian,
quote:
Thank you .....for the example of the Gate node.

The Gate node is one of my meagre contributions to node library from a few years back.
http://moi3d.com/forum/lmessages.php?webtag=MOI&msg=7777.1251
At the time I thought these would be a real boon to NE's capabilities; after-all digital computation
is based on logic gates.

Instead it languished; all but ignored (even by me).
When we lost John Conway to covid, I attempted to build a cellular automaton circuit
for his "Game of Life" in NE, however never managed to get it to work.

A project for another time....unless it piques your interest.
Have a great weekend,
James
https://www.instagram.com/nodeology/
From: bemfarmer
26 Mar 2022   [#286] In reply to [#285]
Is "Game of Life" an L-System?
- Brian
From: James (JFH)
26 Mar 2022   [#287] In reply to [#286]
Brian,
quote:
Is "Game of Life" an L-System? - Brian

No, if you reread my post, it was in response to your post about the logic gate node, not L-Systems.

Cellular Automaton replies on conditional logic to test each cell's adjacent neighbours at each iteration to operate,
so it should be possible to build in NE with the use of logic nodes.

See the wikipedia entry for generative rules:
https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life

James
https://www.instagram.com/nodeology/
From: Frenchy Pilou (PILOU)
26 Mar 2022   [#288]
You have an another cellular Automate with a very simple rule!
Turmites : If it's Black turn on the right!
if it's white turn on the left!
Amazing that after some repetition a striah line apaers from the chaos! :)

Maybe with Moi adtapt it in 3D...



And the top of the must free prog about all the 2D Cellular Automates Golly
http://golly.sourceforge.net

Here with the game of life rules!

From: Frenchy Pilou (PILOU)
28 Mar 2022   [#289]
Found this :)
https://personalpages.manchester.ac.uk/staff/j.montaldi/Choreographies/

Show messages:  1-9  …  210-229  230-249  250-269  270-289  290-309  310-329  330-349  …  410-425