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

Tuesday, 9 November 2010

A more complicated Cube Variant (StructureSynth)

   1 // Camera settings. Place these before first rule call.
   2 set translation [-0.464996 0.199158 -20]
   3 set rotation [-0.828686 0.413368 0.377243 -0.0922356 -0.765772 0.636483 0.551983 0.492647 0.672715]
   4 set pivot [0 0 0]
   5 set scale 1.45
   6 
   7 set background white 
   8 
   9 ecube
  10 
  11 rule ecube md 3 > scube {
  12 { x 1 y 1 z 1 s 1/2 } ecube
  13 { x -1 y 1 z 1 s 1/2 } ecube
  14 { x 1 y -1 z 1 s 1/2 } ecube
  15 { x -1 y -1 z 1 s 1/2 } ecube
  16 { x 1 y 1 z -1 s 1/2 } ecube
  17 { x -1 y 1 z -1 s 1/2 } ecube
  18 { x 1 y -1 z -1 s 1/2 } ecube
  19 { x -1 y -1 z -1 s 1/2 } ecube
  20 }
  21 
  22 rule scube {
  23  {s 4 h 220}box
  24 }
  25 
  26 rule scube {
  27 {h 5} sphere
  28  6 * {h 5 x 0.3}sphere
  29  6 * {h 5 x -0.3}sphere
  30 }
  31 
  32 rule scube md 3 > cube {
  33 { x 1 y 1 z 1 s 1/2 } scube
  34 { x -1 y 1 z 1 s 1/2 } scube
  35 { x 1 y -1 z 1 s 1/2 } scube
  36 { x -1 y -1 z 1 s 1/2 } scube
  37 { x 1 y 1 z -1 s 1/2 } scube
  38 { x -1 y 1 z -1 s 1/2 } scube
  39 { x 1 y -1 z -1 s 1/2 } scube
  40 { x -1 y -1 z -1 s 1/2 } scube
  41 }
  42 
  43 rule cube {
  44 {h 5} sphere
  45  6 * {h 5 x 0.3}sphere
  46  6 * {h 5 x -0.3}sphere
  47 }
  48 
  49 rule cube {
  50  {s 4 h 220}box
  51 }

Sunflow Rendered

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