Logo by Pauldelbrot - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

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: Check out the originating "3d Mandelbulb" thread here
 
*
Welcome, Guest. Please login or register. April 18, 2024, 09:44:54 AM


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
  Print  
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 67833 times)
Description: Using nodes to show rules and recursion in structure-synth
0 Members and 1 Guest are viewing this topic.
ciric50
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
Code:
set background #225
set maxdepth 17

r1

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.
Logged
barcud
Navigator
*****
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 7233 times.)
Logged
ciric50
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.
Logged
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Master Node Mandelbulb3D Gallery lenord 0 1020 Last post March 02, 2011, 08:32:29 AM
by lenord
Node Mandelbulb3D Gallery Don Whitaker 0 1069 Last post April 08, 2011, 11:36:46 AM
by Don Whitaker
Node Mandelbulb3D Gallery kr0mat1k 0 579 Last post July 16, 2011, 03:31:09 AM
by kr0mat1k
Storage Node Mandelbulb3D Gallery PO 0 737 Last post March 15, 2012, 09:57:48 AM
by PO
"NODE Raytracer" for Fragmentarium Fragmentarium « 1 2 » Kali 16 3549 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.151 seconds with 25 queries. (Pretty URLs adds 0.006s, 2q)