Welcome to Fractal Forums

Fractal Software => Structure Synth => Topic started by: barcud on October 20, 2016, 02:13:15 PM




Title: Eisenscript and Structure Synth in WebGL and three.js
Post by: barcud on October 20, 2016, 02:13:15 PM
First try with BrowserSynth and the browser port of Eisenscript
simple script:
6 * { ry 60 } r
rule r md 22 {
{x 2}sphere
{ ry 12 rx 12 rz 22 x 1 z -0.4 y -0.4 s 1.1 0.8 1.2} r
}
rule r md 22 {
{z 2 s 0.5}torus
{ ry 22 rx 22 rz 12 x 1 z -0.4 y -0.4 s 0.8 0.8 1.1} r
}

So you can squash spheres and use other primitives like torus and so on.
Scripts so far work a bit different from the eisen script in Structure synth but it is certainly a start
live demo here - zoom with mousewheel, rotate left click and shift right click.
https://playingwithstuff.000webhostapp.com/play2/ (https://playingwithstuff.000webhostapp.com/play2/)

Project is hosted on GitHub here at https://github.com/after12am/eisenscript (https://github.com/after12am/eisenscript)


Title: Re: Eisenscript and Structure Synth in WebGL and three.js
Post by: barcud on November 22, 2016, 04:45:20 PM
Still playing with BrowserSynth - this is a first attempt at using tori and cylinders to create some pipework.
No fancy decoration but it works quite well.
It generates 1000 objects which for me works fine with 60FPS on Chrome and Opera but on Edge and IE the performance goes down to 15FPS
If you want to have a play:

https://playingwithstuff.000webhostapp.com/pipeworks/index.html

Move with right button, rotate with left, wheel zooms and s-key creates a popup with the image