Escher's Cube with Pov Ray |
|
|
Click image for a larger view |
What is Pov Ray?The Persistence of Vision Raytracer, or POV-Ray, is a free ray tracing program available for a variety of computer platforms. It was originally based on DKBTrace, written by David K. Buck and Aaron A. Collins. There are also influences from the earlier Polyray raytracer contributed by its author Alexander Enzmann. It is freeware and can be downloaded from www.povray.org Why do it?I have had a lot of help with this from various sources on the web, unfortunately, i have lost the origin of the code. If you do recognise where the code came from, please contact me and I will endeavour to add a link to this page mentioning their copyright. Anyway, if you do download Pov Ray from the link above, try the code below and use it to tweak, I have never ending fascination with it and hope you enjoy it |
The Code
#include "colors.inc"
#include "woods.inc"
#include "glass.inc"
//Jezza at http://www.magicforest.co.uk
background
{
color rgb <0, 0, 0>
}
camera
{
location <100, 100, -100>
look_at <0, 0, 0>
angle 20
aperture 10
focal_point <4, 4, -4>
blur_samples 1000
}
light_source
{
<20, 60, -60>
color rgb <1.5, 1.5, 1.5>
spotlight
radius 15
falloff 25
tightness 0.5
point_at <0, 0, 0>
}
plane
{
<0, 1, 0>, -10
texture
{
T_Wood8
pigment
{
turbulence 0.1
}
finish
{
ambient 0.3
reflection 0.2
}
normal
{
wrinkles
turbulence 0.04
octaves 3
scale <0.05, .05, 10>
scale 20
rotate <5, 25, 0>
translate <5, 0 ,0>
}
scale 20
rotate <5, 25, 0>
translate <5, 0 ,0>
}
}
#declare Dice =
merge
{
box
{
<-10, -10, -10>, <10, 10, 10>
rotate <45, 0, 0>
}
box
{
<-10, -10, -10>, <10, 10, 10>
rotate <0, 45, 0>
}
box
{
<-10, -10, -10>, <10, 10, 10>
rotate <0, 0, 45>
}
}
object
{
Dice
rotate <0, -32, 0>
texture
{
T_Glass3
scale 90
finish
{
reflection 0.6
}
}
}
| |