Welcome to Fractal Forums

Fractal Software => Programming => Topic started by: DarkBeam on March 13, 2015, 10:24:58 AM




Title: "processing" a simple but flexible language
Post by: DarkBeam on March 13, 2015, 10:24:58 AM
Looks promising ... in few lines you get a 3d rendering :)
And you can transform the space - so fractals can be easily generated.

https://processing.org/examples/perspective.html


Title: Re: "processing" a simple but flexible language
Post by: flexiverse on March 14, 2015, 05:55:02 AM
Looks promising ... in few lines you get a 3d rendering :)
And you can transform the space - so fractals can be easily generated.

https://processing.org/examples/perspective.html

I think shadertoy.com is more up our street.


Title: Re: "processing" a simple but flexible language
Post by: russ on August 12, 2015, 12:52:26 PM
One nice thing about processing is how it abstracts away all the CPU-side OpenGL boilerplate you otherwise need to get geometry and shaders up and running, and replaces them with simple, obvious functions that let you get down and dirty with the good stuff straight away. If I'd had to learn all the code for program objects, buffer-binding, etc. etc. upfront I might have given up before I even got to GLSL!

Here's my 'Shadertoy' type setup in processing...

Code:
PShader shade;
String name = "reflections.glsl";

void setup(){
  size(1000,700,P2D);
  shade = loadShader(name);
  shade.set("resolution",float(width),float(height));
  frameRate(60);
}

void draw(){
  shade.set("time",millis()/1000.0);
  shader(shade);
  rect(0,0,width,height);
}


Easy as that ;D