POV-Ray : Newsgroups : povray.newusers : Need help with POV-Ray !! : Re: Need help with POV-Ray !! Server Time
29 Jul 2024 02:33:36 EDT (-0400)
  Re: Need help with POV-Ray !!  
From: M a r c
Date: 15 Aug 2007 14:22:14
Message: <46c34456@news.povray.org>

web.46c33b024683e64799fead9e0@news.povray.org...
> "M_a_r_c" <jac### [at] wanadoofr> 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


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.