|
|
The uv_mapping keyword don't work for bump_map.
I use the example in Pov Manual, section 6.7.7.
The rendering is a black scene, but if you change the
"uv_mapping normal" with only "normal", it work.
#include "finish.inc"
#include "colors.inc"
light_source {
<1, 1, 1>
color rgb <1.0, 1.0, 1.0>
fade_distance 10.0
fade_power 2
}
camera {
perspective
location <1, 1, 1>
look_at <0, 0, 0>
}
mesh {
triangle {
<0,0,0>, <0.5,0,0>, <0.5,0.5,0>
uv_vectors <0,0>, <1,0>, <1,1>
}
triangle {
<0,0,0>, <0.5,0.5,0>, <0,0.5,0>
uv_vectors <0,0>, <1,1>, <0,1>
}
texture {
uv_mapping pigment {
image_map {
png "texture.png"
map_type 0
interpolate 0
}
}
uv_mapping normal {
bump_map {
png "texture.png"
map_type 0
interpolate 0
}
}
}
}
Post a reply to this message
|
|