Structure Synth Animation Experiment #1 : 無料・フリー素材/写真
Structure Synth Animation Experiment #1 / Syntopia
ライセンス | クリエイティブ・コモンズ 表示 2.1 |
---|---|
説明 | Working on scripting Structure Synth output using the new experimental JavaScript support. The output here is a rough 80-frame demo, rendered in approx. 15 minutes (~10 seconds per frame). It uses the internal raytracer, and the still frames were combined using MEncoder (which I obviously must learn to tweak). Some weird compression artifacts appeared after sending the movie to Flickr.The example was created the following way:Define a standard EisenScript file:set raytracer::ambient-occlusion [4,4,0.95]set raytracer::shadows falseset raytracer::reflection 0.9set raytracer::phong [0.4,0.8,1]set background #fff#define _md 40#define _rz 0#define _zoom 1set maxdepth _md{ rz _rz s _zoom } r0rule r0 { 3 * { rz 120 } R1 3 * { rz 120 } R2}rule R1 { { x 1.3 rx 1.57 rz 6 ry 3 s 0.99 hue 1 sat 0.99 } R1 { s 4 a 1 color white } sphere}rule R2 { { x -1.3 rz 6 ry 3 s 0.99 hue 1 sat 0.99 } R2 { s 4 a 1 color white } sphere} Create a second file in the Structure Synth editor:#javascriptfunction pad(number) { number = number + ''; // convert to string while (number.length < 3) number = "0" + number; return number;}Builder.load("Examples/Default.es");for (i = 0; i < 80; i++) { Builder.reset(); Builder.define("_md", i*5); Builder.define("_zoom",(1- i/120.0)); Builder.define("_rz",( i/2.0)); Builder.render(); Builder.raytraceToFile("Pict" + pad(i) + ".png",true);}The first line is important - this tells Structure Synth to parse the content as JavaScript. |
撮影日 | 2009-09-22 14:11:13 |
撮影者 | Syntopia , Århus, Denmark |
撮影地 |