Recently I've been looking at Povray, pyprocessing, and cfdg (version 3.0) as tools for creating digital images. I have branched two separate blogs where I mainly explore jruby + processing and processing.py

Wednesday, 27 October 2010

Another StructureSynth Sketch

I've been keeping my copy of the development version StructureSynth up to date (svn update Oct 27th 2010) , and it seems to be improving all the while. In the sketch below I use the StructureSynth built in ray tracing facility to render image.
   1 // Camera settings. Place these before first rule call.
   2 set translation [0 0 -20]
   3 set rotation [-0.935483 0.278086 0.218019 -0.159335 -0.882663 0.442205 0.315407 0.378935 0.870019]
   4 set pivot [0 0 0]
   5 set scale 3.25
   6 
   7 set maxdepth 8
   8 
   9 links
  10 
  11 rule links {
  12 { rx 45  x 0.35 y 0.35 z 0.25} link
  13 { rx -45  y -0.35 x -0.35 z 0.5} link
  14 }
  15 
  16 rule link{
  17 { x -0.5 y 0.5}left
  18 { y -0.5 x 0.5}north
  19 { x 0.5 y -0.5}right
  20 { y 0.5 x -0.5}south
  21 }
  22 
  23 rule left{
  24 { x 0.5 y 0 z 0 s 1.225 0.25 0.25 } box 
  25 }
  26 
  27 rule right {
  28 { x -0.5 y 0 z 0 s 1.225 0.25 0.25 } box 
  29 }
  30 
  31 rule north{
  32 { x 0 y 0.5 z 0 s 0.25 1.225 0.25 } box 
  33 }
  34 
  35 rule south {
  36 { x 0 y -0.5 z 0 s 0.25 1.225 0.25 } box 
  37 }

No comments:

Post a Comment

Followers

Blog Archive

About Me

My photo
Pembrokeshire, United Kingdom
I have developed JRubyArt and propane new versions of ruby-processing for JRuby-9.1.5.0 and processing-3.2.2