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, 27 January 2011

More Povray Explorations

Here is a povray sketch that I found in an interesting povray tutorial that I have amended to further explore the experimental radiosity feature. If I do get round to writing an alternative processing to povray exporter tool this could be the basis of one of a number of template files? In the manner of StructureSynth. If you are not already following the Syntopia blog, I recommend that you do, where Mikael Hvidtfeldt Christensen is investigating using the gpu and GLSL for ray tracing.

   1 // PoVRay 3.7 Based on a Scene File "Minimal.pov"
   2 // by Friedrich A. Lohmueller, Jan-2011
   3 // amended to try out radiosity settings
   4 //-------------------------------------------
   5 #version 3.7; // 3.6
   6 global_settings{
   7 assumed_gamma 1.0
   8   radiosity{  
   9     pretrace_start 0.04
  10     pretrace_end 0.01
  11     count 200
  12     recursion_limit 3
  13     nearest_count 10
  14     error_bound 0.5
  15   }
  16 }
  17 #default{ finish{ emission 0.1 diffuse 0.9 }}
  18 //------------------------------------------
  19 #include "colors.inc"
  20 #include "textures.inc"
  21 
  22 #declare r1=1;
  23 #declare r2=.5;
  24 //------------------------------------------
  25 // camera ----------------------------------
  26 camera{ location  <0.0 , 1.0 ,-3.0>
  27         look_at   <0.0 , 1.0 , 0.0>
  28         right x*image_width/image_height
  29         angle 75 }
  30 // sun -------------------------------------
  31 light_source{<1500,3000,-2500> color White}
  32 // sky -------------------------------------
  33 plane{ <0,1,0>,1 hollow
  34        texture{
  35          pigment{ bozo turbulence 0.92
  36            color_map{
  37                  [0.00 rgb<0.05,0.15,0.45>]
  38                  [0.50 rgb<0.05,0.15,0.45>]
  39                  [0.70 rgb<1,1,1>        ]
  40                  [0.85 rgb<0.2,0.2,0.2>  ]
  41                  [1.00 rgb<0.5,0.5,0.5>  ]
  42                        } //
  43            scale<1,1,1.5>*2.5
  44            translate<0,0,0>
  45            } // end of pigment
  46          finish {emission 1 diffuse 0}
  47         } // end of texture
  48        scale 10000}
  49 // fog on the ground -----------------------
  50 fog { fog_type   2
  51       distance   50
  52       color      rgb<1,1,1>*0.8
  53       fog_offset 0.1
  54       fog_alt    1.5
  55       turbulence 1.8
  56     } //
  57 // ground ----------------------------------
  58 plane{ <0,1,0>, 0
  59        texture{
  60           pigment{ color rgb<0.22,0.45,0>}
  61           normal { bumps 0.75 scale 0.015 }
  62           finish { phong 0.1 }
  63        } // end of texture
  64      } // end of plane
  65 //------------------------------------------
  66 // objects in scene ------------------------
  67 
  68 poly
  69 { 4,
  70   <1,0,0,0,2,
  71    0,0,2,0,-2*(r1*r1+r2*r2),
  72    0,0,0,0,0,
  73    0,0,0,0,0,
  74    1,0,0,2,0,
  75    2*(r1*r1-r2*r2),0,0,0,0,
  76    1,0,-2*(r1*r1+r2*r2),0,pow(r1,4)+pow(r2,4)-2*r1*r1*r2*r2>
  77   pigment { rgb <1,.7,.3> } finish { specular .5 }
  78   translate<0, 0.8, 0>
  79   rotate<-30, 0, -45>
  80 }
  81 //------------------------------------- end


My Stochastic Cube floats above Lala Land

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