|
![](/i/fill.gif) |
web.46c33b024683e64799fead9e0@news.povray.org...
> "M_a_r_c" <jac### [at] wanadoo fr> wrote:
> If possible, can anyone give me an example of the image? :)
>
> Thanks
>
Here is a very fast done example... put the image in the same folder as the
.pov file
Marc
camera {
location <-2, 0.5, -4.0>*.6
direction 1.5*z
right x*image_width/image_height
angle 100
look_at <-.4, 0.5, 0.0>
}
sky_sphere {
pigment {
gradient y
color_map {
[0.0 rgb <0.6,0.7,1.0>]
[0.7 rgb <0.0,0.1,0.8>]
}
}
}
light_source {
<0, 0, 0> // light's position (translated below)
color rgb <1, 1, 1> // light's color
translate <-30, 30, -30>
}
// ----------------------------------------
#declare P_Rock = pigment { color rgb <1,0.3,0.1>}
plane {
y, 0
pigment {P_Rock} }
// uses image color index as height, extends along X-Z axes
// from <0 0 0> to <1 1 1>
height_field {
png // the file type to read (tga/pot/pgm/ppm/png/sys)
"new-1.png"
// the file name to read
smooth
pigment {P_Rock}
translate <-.5,-.02,-.5>
scale <5,1,5>
}
Post a reply to this message
Attachments:
Download 'new-1.png' (61 KB)
Preview of image 'new-1.png'
![new-1.png](/povray.newusers/attachment/%3C46c34456%40news.povray.org%3E/new-1.png?preview=1)
|
![](/i/fill.gif) |