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

Thursday, 30 September 2010

3D Tic Tac Toe (StructureSynth)

   1 // Write EisenScript code here...
   2 game
   3 
   4 set background #fff
   5 
   6 rule game{
   7 {h 20} frame
   8 {s 4 h 220} sphere
   9 {x -5 z -5 y -5 ry 45 rz 45 rx 45} jack
  10 {x 5 z 5 y 5 ry 45 rz 45 rx 45} jack
  11 }
  12 
  13 
  14 rule frame{
  15 cross
  16 {ry 90} cross
  17 }
  18 
  19 rule cross{
  20 four
  21 {rz 90} four
  22 }
  23 
  24 rule four{
  25 {y -2.5 z -2.5}bar
  26 {y -2.5 z 2.5}bar
  27 {y 2.5 z -2.5}bar
  28 {y 2.5 z 2.5}bar
  29 }
  30 
  31 rule bar{
  32   {s 14 0.5 0.5} box
  33 }
  34 
  35 rule jack{
  36 arm
  37 {ry 90}arm
  38 {rz 90}arm
  39 }
  40 
  41 rule arm{
  42 5 *{x 0.28284271} sphere
  43 5 *{x -0.28284271} sphere
  44 }


Wednesday, 29 September 2010

3D Noughts and Crosses (Structure Synth)

EisenScript:-

   1 // Write EisenScript code here...
   2 game
   3 
   4 rule game{
   5 {h 20} frame
   6 {s 4 h 220} sphere
   7 {z 5 y 5 ry 45 rz 45 rx 45} jack
   8 {x 5 z 5 y 5 ry 45 rz 45 rx 45} jack
   9 }
  10 
  11 
  12 rule frame{
  13 cross
  14 {ry 90} cross
  15 }
  16 
  17 rule cross{
  18 four
  19 {rz 90} four
  20 }
  21 
  22 rule four{
  23 {y -2.5 z -2.5}bar
  24 {y -2.5 z 2.5}bar
  25 {y 2.5 z -2.5}bar
  26 {y 2.5 z 2.5}bar
  27 }
  28 
  29 rule bar{
  30 box
  31 7 * {x 1}box
  32 7 * {x -1} box
  33 }
  34 
  35 rule jack{
  36 arm
  37 {ry 90}arm
  38 {rz 90}arm
  39 }
  40 
  41 rule arm{
  42 5 *{x 0.28284271} sphere
  43 5 *{x -0.28284271} sphere
  44 }

Sunflow rendered:-





















Povray Rendered:-

Monday, 27 September 2010

A Simple StructureSynth Composition Rendered with Povray

   1 balljack
   2 
   3 rule balljack{
   4 {x -4 s 2.1} box
   5 {rz 30 ry 30} jack
   6 {x 4 s 2.1} sphere
   7 }
   8 
   9 rule jack{
  10 arm
  11 {ry 90}arm
  12 {rz 90}arm
  13 }
  14 
  15 rule arm{
  16 5 *{x 0.28284271} sphere
  17 5 *{x -0.28284271} sphere
  18 }

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Sunflow-Ultimate-Groovelock rendered:-
 
 

Wednesday, 22 September 2010

Finally got round to animating my Fiery Random walk for vimeo.

Fiery Random Walk from monkstone on Vimeo.


To produce the sequentially numbered frames as png images in a folder (with the fiery.cfdg file in an immediately enclosing folder):-

cfdg -w 600 -h 400 -a 500 -o %f.png ../fiery.cfdg

To encode the png frames as a vimeo compatible movie:-

mencoder mf://*.png -mf w=600:h=400:fps=25:type=png -ovc lavc -oac copy -o fiery.mp4


My mplayer config file:-

profile-desc="MPEG4 encoding"
ovc=lacv=yes
lavcopts=vcodec=libx264:vbitrate=2000:autoaspect=1


The original cfdg work:-

http://martinpblogformasswritingproject.blogspot.com/2009/10/fiery-random-walk.html

Monday, 13 September 2010

Exploring The Povray Ray Tracer

First I downloaded the source for the latest version povray_3.7.0.beta.38 and installed all the required and optional development libraries. Compiling is as simple as ./configure, make and make install (all very straightforward linux stuff). Some of the example graphics at the website are absolutely stunning. But here is my first simple effort rendered from the template output.pov produced by StructureSynth using my *EisenScript (* apparently so named in homage to the Russian film director).



















Here is another image (A Starfish with basic texture) I produced by the combination of StructureSynth and the povray ray tracer:-

I've just uploaded a commando file that allows you to execute povray from jedit http://community.jedit.org/?q=node/view/4527

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