|
![](/i/fill.gif) |
When rendering the source code below,
only half of the text object gets
illuminated from the (single) light
source used.
When the light source is placed to
the "left" of this camera, the "right"
half of the object is lit.
(And when the light source is placed
to the "right" of this camera then the
"left" side of the object is lit.)
Ambient light will light all of it.
Have I misunderstood something ?
Or is this a bug ?
--
Best regards,
Tor Olav
mailto:tor### [at] hotmail com
http://hjem.sol.no/t-o-k/tokpicts.html
http://www.crosswinds.net/~tok
// ===== 1 ======= 2 ======= 3 ======= 4 ======= 5 ======= 6 ======= 7 =
#version unofficial MegaPov 0.7;
#include "colors.inc"
global_settings { ambient_light color Black }
// ===== 1 ======= 2 ======= 3 ======= 4 ======= 5 ======= 6 ======= 7 =
#declare TextObject =
text {
ttf "Arial.ttf"
"POV-Ray" 0.2, 0
}
//#declare TextObject = sphere { <0, 0, 0>, 1 }
#declare pMax = max_extent(TextObject);
#declare pMin = min_extent(TextObject);
#declare PigmentFunction =
function {
pigment {
object {
TextObject
rgb 1, rgb 0
}
turbulence 0.15
}
}
#declare D = 0.2;
#declare IsoText =
isosurface {
function { PigmentFunction - 0.5 }
contained_by { box { pMin - <D, D, D>, pMax + <D, D, D> } }
max_gradient 40
// accuracy 1e-6
method 2
}
object {
IsoText
translate -(pMin + pMax)/2
pigment { color White }
}
// ===== 1 ======= 2 ======= 3 ======= 4 ======= 5 ======= 6 ======= 7 =
background { color Blue/2 }
light_source { <-1, 2, -3>*100 color White }
//light_source { < 1, 2, -3>*100 color White }
camera {
location <0, 0, -4>
look_at <0, 0, 0>
}
// ===== 1 ======= 2 ======= 3 ======= 4 ======= 5 ======= 6 ======= 7 =
Post a reply to this message
|
![](/i/fill.gif) |