|
![](/i/fill.gif) |
I have made some king of error here, but I can't find it....can anybody see
it?
// Persistence of Vision Ray Tracer Scene Description File
// File: ?.pov
// Vers: Unofficial Mega_Pov 0.6;
// Desc: Image Map Example
// Date: mm/dd/yy
// Auth: ?
//
#version 3.1
#include "colors.inc"
#include "shapes.inc"
global_settings
{
assumed_gamma 1.0
}
// ----------------------------------------
camera
{
location <0.0, 0.0, -4.0>
//direction 2*z
//right 4/3*x
look_at <0.0, 0.0, 0.0>
}
light_source
{
0*x // light's position (translated below)
color red 1.0 green 1.0 blue 1.0 // 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 "d:\naut.png"
interpolate 2 // smooth it
once // don't tile image, just one copy
}
// transform it to unit-size (-1 to +1)
translate -0.5*(x+y) // center on the origin
scale 1 // make it unit-sized
rotate <0,45,-45,>
}
finish {ambient 0.3 phong 2 phong_size 120 diffuse 1.2}
}
sphere
{
<0, 0, 0> // center of sphere <X Y Z>
0.5 // radius of sphere
texture
{
pigment
{
image_map
{
png "d:\naut.png"
interpolate 2 // smooth it
once // don't tile image, just one copy
}
// transform it to unit-size (-1 to +1)
translate -0.5*(x+y) // center on the origin
scale 1 // make it unit-sized
}
finish {ambient 0.3 phong 2 phong_size 120 diffuse 1.2}
}
// scale <1,2,1> // <= Note: Spheres can become ellipses by uneven scaling
}
}
Post a reply to this message
|
![](/i/fill.gif) |