Image Map
// Persistence of Vision Ray Tracer Scene Description File
// File: ?.pov
// Vers: 3.5
// Desc: Image Map Example
// Date: mm/dd/yy
// Auth: ?
//
#version 3.5;
#include colors.inc
global_settings {
assumed_gamma 1.0
}
// ----------------------------------------
camera {
location <0.0, 0.0, -4.0>
direction 2*z
right x*image_width/image_height
look_at <0.0, 0.0, 0.0>
}
sky_sphere {
pigment {
gradient y
color_map {
[0.0 color blue 0.6]
[1.0 color rgb 1]
}
}
}
light_source {
<0, 0, 0> // light's position (translated below)
color rgb <1, 1, 1> // light's color
translate <-30, 30, -30>
}
// ----------------------------------------
plane {
y, -1
texture {
pigment { checker color rgb 1 color blue 1 scale 0.5 }
finish { reflection 0.2 }
}
}
plane {
z, -1
texture {
pigment {
image_map {
png test.png
interpolate 2 // smooth it
once // don't tile image, just one copy
filter 0 0.8 // make 1st color mostly transparent
filter 1 0.8 // make 2nd color mostly transparent
}
// transform it to unit-size (-1 to +1)
translate -0.5*(x+y) // center on the origin
scale 2 // make it unit-sized
}
finish { ambient 0.3 }
}
}