Found at: http://publish.ez.no/article/articleprint/71/ |
Free Multiplatform raytracing with POV-Ray |
The Persistence of Vision Raytracer, or POV-Ray among friends, is a high-quality freeware tool for rendering photorealistic three-dimensional graphics. This is a "getting-started" tutorial for those completely unfamiliar with POV-Ray.
|
| Warm Up |
|
| First Strike at Pearl |
|
| A plane |
#include "colors.inc"
// Monitor brightness
global_settings { assumed_gamma 2.2 }
// Background color
background { color LightBlue }
// The camera
camera {
location <6, 3, -4>
look_at <2.5, 2, 0>
}
// A light
light_source { <8, 7, -7> color White }
// An infinite checkered plane
plane {
<0, 1, 0>,
0
pigment {
checker color Yellow, color Green
}
finish {
ambient 0.3
diffuse 0.6
}
}
|
povray +Iscene1.pov |
; POV-Ray 3.1 Standard INI file Antialias=on Display=on Pause_When_Done=on Preview_Start_Size=32 Preview_End_Size=4 |
x-povray standard.ini +Iscene1.pov |
|
| A plane and a cylinder |
#include "colors.inc"
#include "stones1.inc"
// Monitor brightness
global_settings { assumed_gamma 2.2 }
// Background color
background { color LightBlue }
// The camera
camera {
location <6, 3, -4>
look_at <2.5, 2, 0>
}
// Two lights
light_source { <8, 7, 0> color White }
light_source { <2, 3, -20> color White }
// An infinite checkered plane
plane {
<0, 1, 0>,
0
pigment {
checker color Yellow, color Green
}
finish {
ambient 0.3
diffuse 0.6
}
}
// A stone cylinder
cylinder {
<-4, 2, 3>,
<4, 2, 3>,
2
texture { T_Stone23 scale 4 }
finish {
ambient 0.3
diffuse 0.6
}
}
|
|
| A plane, a cylinder and a lens |
#include "colors.inc"
#include "stones1.inc"
#include "glass.inc"
// Monitor brightness
global_settings { assumed_gamma 2.2 }
// Background color
background { color LightBlue }
// The camera
camera {
location <6, 3, -4>
look_at <2.5, 2, 0>
}
// Two lights
light_source { <8, 7, 0> color White }
light_source { <2, 3, -20> color White }
// An infinite checkered plane
plane {
<0, 1, 0>,
0
pigment {
checker color Yellow, color Green
}
finish {
ambient 0.3
diffuse 0.6
}
}
// A stone cylinder
cylinder {
<-4, 2, 3>,
<4, 2, 3>,
2
texture { T_Stone23 scale 4 }
finish {
ambient 0.3
diffuse 0.6
}
}
// An intersection between two speres makes a lens
intersection {
sphere {
<2, 3, -1>
2
}
sphere {
<2, 3, 2>
2
}
material {
texture { T_Glass3 }
interior { I_Glass }
}
}
|
|
| chess2.png |
|
| diffract.png |
|
| fish13.png |
|
| quilt1.png |
|
| sunsethf.png |
|
| woodbox.png |