TUD Organische ChemieImmelGraphicsPovray 3.5allpat2isoView or Print this frame onlyView or Print (this frame only)

Example Graphics

(low quality jpg-image only)
allpat2iso

Example file (allpat2iso.pov):

// Persistence of Vision Ray Tracer Scene Description File
// File: allpatiso1_.pov
// Vers: 3.5
// Desc: Render via allpatiso1.ini,
// generates html files and images for all the
// pattern-functions in functions.inc
// Date: 2001/07/30
// Auth: Ingo Janssen
//

#version 3.5;
#include "colors.inc"
#include "functions.inc"
#include "html_gen.inc"
global_settings {assumed_gamma 1.0}

#declare Generate_HTML=yes;
#declare Generate_Images=yes;

// all pattern-function names extracted from functions.inc,
// as strings for the generation of the html-files
// and as identfiers for the generation of the images.
//function
#declare str_functionArr=array[26] {
"f_agate", "f_boxed", "f_bozo", "f_brick", "f_bumps",
"f_checker", "f_crackle", "f_cylindrical", "f_dents", "f_gradientX",
"f_gradientY", "f_gradientZ", "f_granite", "f_hexagon", "f_leopard",
"f_mandel", "f_marble", "f_onion",
"f_ripples", "f_spherical", "f_spiral1", "f_spiral2", "f_spotted",
"f_waves", "f_wood", "f_wrinkles",
}

#if (Generate_HTML)
#if (clock=0) // generate the html-files for showing the images in.
#declare FromFileName="functions.inc" // the name of the include file the data came from.
#declare OutName="allpat2iso" // the OutName should match with Output_File_Name in the ini-file!!!!
#declare Keyword="patterns as isosurface" // the stuff represented in the array: texture, pigment, material, color etc.
#declare DataArray=str_functionArr // the array containing the strings of identifiers
#declare NumPicHorizonal=3; // the amount of images per row in the table
#declare NumPicVertical=2; // the amount of images per collumn in the table
#declare IW=image_width; // the dimesions of the image, these are set in the ini-file!
#declare IH=image_height;
#declare Comment="

Most of the patterns, used for isosurface 'displacement' on a rounded box

"
HTMLgen(FromFileName, OutName, Keyword, DataArray, NumPicHorizonal, NumPicVertical, IW, IH, Comment)
#end
#end

#if(Generate_Images)

#switch(frame_number-1)
#case(0)
isosurface {
function{f_rounded_box(x,y,z,0.3,1.5,1.5,1.5)-(f_agate(x/3,y/3,z/3)*0.3)}
threshold 0
contained_by {box {<-2,-2,-2>,<2,2,2>}}
max_gradient 3.168
rotate <0,-30,0>
rotate<-30,0,0>
pigment {rgb <0.9,0.9,1>}
finish{specular 0.4}
}
#break
#case(1)
isosurface {
function{f_rounded_box(x,y,z,0.3,1,1,1)-(f_boxed(x/1.75,y/1.75,z/1.75))}
threshold 1
contained_by {box {<-2,-2,-2>,<2,2,2>}}
max_gradient 1.407
rotate <0,-30,0>
rotate<-30,0,0>
pigment {rgb <0.9,0.9,1>}
finish{specular 0.4}
}
#break
#case(3)//3
isosurface {
function{f_rounded_box(x,y,z,0.3,1.5,1.5,1.5)-(f_brick(x*6,y*6,z*6)*0.1)}
threshold 0
contained_by {box {<-2,-2,-2>,<2,2,2>}}
max_gradient 200.786
rotate <0,-30,0>
rotate<-30,0,0>
pigment {rgb <0.9,0.9,1>}
finish{specular 0.4}
}
#break
#case(5)//5
isosurface {
function{f_rounded_box(x,y,z,0.3,1.6,1.6,1.6)-(f_checker(x*1.33,y*1.33,z*1.33)*0.075)}
threshold 0
contained_by {box {<-2,-2,-2>,<2,2,2>}}
max_gradient 150.393
rotate <0,-30,0>
rotate<-30,0,0>
pigment {rgb <0.9,0.9,1>}
finish{specular 0.4}
}
#break
#case(6)//6
isosurface {
function{f_rounded_box(x,y,z,0.3,1.5,1.5,1.5)-(f_crackle(x*1.33,y*1.33,z*1.33)*0.3)}
threshold 0
contained_by {box {<-2,-2,-2>,<2,2,2>}}
max_gradient 1.658
rotate <0,-30,0>
rotate<-30,0,0>
pigment {rgb <0.9,0.9,1>}
finish{specular 0.4}
}
#break
#case(7)//7
isosurface {
function{f_rounded_box(x,y,z,0.3,1,1,1)-(f_cylindrical(x/1.5,y/1.5,z/1.5))}
threshold 0.5
contained_by {box {<-2,-2,-2>,<2,2,2>}}
max_gradient 1.5
rotate <0,-30,0>
rotate<-30,0,0>
pigment {rgb <0.9,0.9,1>}
finish{specular 0.4}
}
#break
#case(9)//9
isosurface {
function{f_rounded_box(x,y,z,0.3,1.5,1.5,1.5)-(f_gradientX(x*2,y*2,z*2)*0.2)}
threshold 0
contained_by {box {<-2,-2.5,-2>,<2,2.5,2>}}
max_gradient 311.034
rotate <0,-30,0>
rotate<-30,0,0>
pigment {rgb <0.9,0.9,1>}
finish{specular 0.4}
}
#break
#case(10)
isosurface {
function{f_rounded_box(x,y,z,0.3,1.5,1.5,1.5)-(f_gradientY(x*2,y*2,z*2)*0.2)}
threshold 0
contained_by {box {<-2,-2.5,-2>,<2,2.5,2>}}
max_gradient 400.348
rotate <0,-30,0>
rotate<-30,0,0>
pigment {rgb <0.9,0.9,1>}
finish{specular 0.4}
}
#break
#case(11)
isosurface {
function{f_rounded_box(x,y,z,0.3,1.5,1.5,1.5)-(f_gradientZ(x*2,y*2,z*2)*0.2)}
threshold 0
contained_by {box {<-2,-2.5,-2>,<2,2.5,2>}}
max_gradient 383.490
rotate <0,-30,0>
rotate<-30,0,0>
pigment {rgb <0.9,0.9,1>}
finish{specular 0.4}
}
#break
#case(12)//12
isosurface {
function{f_rounded_box(x,y,z,0.3,1.5,1.5,1.5)-(f_granite(x/9,y/9,z/9)*0.4)}
threshold 0
contained_by {box {<-2,-2,-2>,<2,2,2>}}
max_gradient 2.059
rotate <0,-30,0>
rotate<-30,0,0>
pigment {rgb <0.9,0.9,1>}
finish{specular 0.4}
}
#break
#case(13)//13
isosurface {
function{f_rounded_box(x,y,z,0.3,1.5,1.5,1.5)-(f_hexagon(x*2,y*2,z*2).gray*0.2)}
threshold 0
contained_by {box {<-2,-2.5,-2>,<2,2.5,2>}}
max_gradient 397.690
rotate <0,-30,0>
rotate<-30,0,0>
pigment {rgb <0.9,0.9,1>}
finish{specular 0.4}
}
#break
#case(14)
isosurface {
function{f_rounded_box(x,y,z,0.3,1.5,1.5,1.5)-(f_leopard(x*6,y*6,z*6)*0.5)}
threshold 0.
contained_by {box {<-2,-2,-2>,<2,2,2>}}
max_gradient 2.449
rotate <0,-30,0>
rotate<-30,0,0>
pigment {rgb <0.9,0.9,1>}
finish{specular 0.4}
}
#break
#case(15)//15
isosurface {
function{f_rounded_box(x,y,z,0.3,1.5,1.5,1.5)-(f_mandel(x/1.5,y/1.5,z/1.5)*0.2)}
threshold 0
contained_by {box {<-2,-2.5,-2>,<2,2.5,2>}}
max_gradient 254.601
rotate <0,-30,0>
rotate<-30,0,0>
pigment {rgb <0.9,0.9,1>}
finish{specular 0.4}
}
#break
#case(16)//16
isosurface {
function{f_rounded_box(x,y,z,0.3,1.5,1.5,1.5)-(f_marble(x*2,y*2,z*2)*0.2)}
threshold 0
contained_by {box {<-2,-2.5,-2>,<2,2.5,2>}}
max_gradient 1.376
rotate <0,-30,0>
rotate<-30,0,0>
pigment {rgb <0.9,0.9,1>}
finish{specular 0.4}
}
#break
#case(17)//17
isosurface {
function{f_rounded_box(x,y,z,0.3,1.5,1.5,1.5)-(f_onion(x*6,y*6,z*6)*0.1)}
threshold 0.05
contained_by {box {<-2,-2,-2>,<2,2,2>}}
max_gradient 200.357
rotate <0,-30,0>
rotate<-30,0,0>
pigment {rgb <0.9,0.9,1>}
finish{specular 0.4}
}
#break
#case(18)
isosurface {
function{f_rounded_box(x,y,z,0.3,1.5,1.5,1.5)-(f_ripples(x*4,y*4,z*4)*0.3)}
threshold 0.05
contained_by {box {<-2,-2,-2>,<2,2,2>}}
max_gradient 2.673
rotate <0,-30,0>
rotate<-30,0,0>
pigment {rgb <0.9,0.9,1>}
finish{specular 0.4}
}
#break
#case(19)//19
isosurface {
function{f_rounded_box(x,y,z,0.3,1.5,1.5,1.5)-(f_spherical(x/2,y/2,z/2))}
threshold 0
contained_by {box {<-2,-2,-2>,<2,2,2>}}
max_gradient 1.398
rotate <0,-30,0>
rotate<-30,0,0>
pigment {rgb 1}
finish{specular 0.4}
}
#break
#case(20)//20
isosurface {
function{f_rounded_box(x,y,z,0.3,1.5,1.5,1.5)-(f_spiral1(x,y,z)*0.2)}
threshold 0.05
contained_by {box {<-2,-2,-2>,<2,2,2>}}
max_gradient 64.333
rotate <0,-30,0>
rotate<-30,0,0>
pigment {rgb <0.9,0.9,1>}
finish{specular 0.4}
}
#break
#case(21)//21
isosurface {
function{f_rounded_box(x,y,z,0.3,1.5,1.5,1.5)-(f_spiral2(x,y,z)*0.2)}
threshold 0.05
contained_by {box {<-2,-2,-2>,<2,2,2>}}
max_gradient 81.406
rotate <0,-30,0>
rotate<-30,0,0>
pigment {rgb <0.9,0.9,1>}
finish{specular 0.4}
}
#break
#case(23) //23
isosurface {
function{f_rounded_box(x,y,z,0.3,1.5,1.5,1.5)-(f_waves(x*4,y*4,z*4)*0.4)}
threshold 0
contained_by {box {<-2,-2,-2>,<2,2,2>}}
max_gradient 1.818
rotate <0,-30,0>
rotate<-30,0,0>
pigment {rgb <0.9,0.9,1>}
finish{specular 0.4}
}
#break
#case(24)//24
isosurface {
function{f_rounded_box(x,y,z,0.3,1.5,1.5,1.5)-(f_wood(x*2,y*2,z*2)*0.2)}
threshold 0
contained_by {box {<-2,-2,-2>,<2,2,2>}}
max_gradient 1.481
rotate <0,-30,0>
rotate<-30,0,0>
pigment {rgb <0.9,0.9,1>}
finish{specular 0.4}
}
#break
#case(25)//25
isosurface {
function{f_rounded_box(x,y,z,0.3,1.5,1.5,1.5)-(f_wrinkles(x/2,y/2,z/2)*0.4)}
threshold 0
contained_by {box {<-2,-2,-2>,<2,2,2>}}
max_gradient 1.585
rotate <0,-30,0>
rotate<-30,0,0>
pigment {rgb <0.9,0.9,1>}
finish{specular 0.4}
}
#break

#else //case2 bozo, case4 bumps, case8 dents, case 22 spotted
isosurface {
function{f_rounded_box(x,y,z,0.3,1.5,1.5,1.5)-(f_bozo(x*2,y*2,z*2)*0.5)}
threshold 0
contained_by {box {<-2,-2,-2>,<2,2,2>}}
max_gradient 1.866
rotate <0,-30,0>
rotate<-30,0,0>
pigment {rgb <0.9,0.9,1>}
finish{specular 0.4}
}
#end
camera {
location <0,0,-6>
right x*image_width/image_height
look_at <0,0,0>
}

light_source {
<500,100,-500>
rgb 1 // light's color
}

light_source {
<10,50,-500>
rgb <0.4,0.3,0.3>
shadowless
}

light_source {
<-500,50,-500>
rgb <0.2,0.2,0.4>
shadowless
}
#end

© Copyright PD Dr. S. Immel