Logo by mauxuam - Contribute your own Logo!


it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Support us via Flattr FLATTR Link
Welcome, Guest. Please login or register. January 31, 2023, 06:32:43 PM

Login with username, password and session length

The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!

Pages: [1]   Go Down
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: Node-based description  (Read 63593 times)
Description: Using nodes to show rules and recursion in structure-synth
0 Members and 1 Guest are viewing this topic.
Forums Freshman
Posts: 19

« on: April 07, 2016, 08:05:35 PM »

I wonder if it would be useful to describe structure-synth programs using nodes? For example, for this code
set background #225
set maxdepth 17


rule r1 w 2 {
    { color #c63 } box
    { x 0.5 y 0.2 s 0.7 0.8 0.6 } r2

rule r1 w 1 {
    { y 0.4 z 0.3 } r1

rule r2 w 2 {
    { color #292 } box
    { x -0.2 y -0.5 s 0.9 0.7 0.8 } r1

rule r2 w 1 {
    { x 0.4 z 0.5 } r2

the node description for rules and recursion would look like this:

Rules are represented by the larger rectangles, while the inner rectangles in the center represent different implementations of the same rule. If nothing else, it helps me see better the structure of the program. Just a thought.
Posts: 69

« Reply #1 on: April 11, 2016, 12:09:04 PM »

I am not the biggest fan of the graphical node programming but that is more of a personal preference than an objective view.

You can see nodes a lot in Blender or Rhino  - especially if you use the parametric plugins like Sverchok (Blender) or Houdini/Grasshopper (I think)(Rhino).
I am using Sverchok but the moment things get a bit more complicated I find that I loose the overview quite quickly - see attached image.

And in the end if you want to still write the rules without nodes you end up with a lot of connected text boxes and arrows with numbers (for maxdepth and rule after reaching maxdepth)
Not sure that would make it easier to understand in terms of what is going on.

So in my view the graphical nodes are not really an improvement I would be using or looking for.

I was contemplating if the parser and core could be ported to python so you could run eisen scripts directly in Blender giving you access to more rendering options and more basic shapes.
Or implementing more shapes in Structure Synth like cylinders and "squash-able" spheres but so far I didn't really get anywhere with those ideas.

Hope you are still having fun with playing around. There are some quite interesting creations to be found!!!

* GherkinStripes3.blend.jpg (230.08 KB, 1904x1042 - viewed 6797 times.)
Forums Freshman
Posts: 19

« Reply #2 on: April 14, 2016, 01:16:49 AM »

Despite years of effort in creating programming languages, almost all modern software is created using text-based languages: Java, Python, C, javascript, etc. Visual programming tends to be limited to special cases. I do think that sometimes a visual representation of an algorithm can be useful though. I always liked the old flow charts for very complicated algorithms.
Pages: [1]   Go Down
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Master Node Mandelbulb3D Gallery lenord 0 770 Last post March 02, 2011, 08:32:29 AM
by lenord
Node Mandelbulb3D Gallery Don Whitaker 0 880 Last post April 08, 2011, 11:36:46 AM
by Don Whitaker
Node Mandelbulb3D Gallery kr0mat1k 0 421 Last post July 16, 2011, 03:31:09 AM
by kr0mat1k
Storage Node Mandelbulb3D Gallery PO 0 542 Last post March 15, 2012, 09:57:48 AM
by PO
"NODE Raytracer" for Fragmentarium Fragmentarium « 1 2 » Kali 16 2972 Last post April 18, 2013, 06:25:04 PM
by Kali

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.206 seconds with 28 queries. (Pretty URLs adds 0.011s, 2q)