|
![](/i/fill.gif) |
"Eric Fielding" <eri### [at] sierras jpl nasa gov> wrote in message
news:396B3B20.D5865411@sierras.jpl.nasa.gov...
|
| I just downloaded POV Ray 3.1g.r2 for the Mac, and I read through the
| documentation to see if there was an easy way to drape a full-color
| image over a height field. I didn't see any recipe.
|
| I have a full-color (satellite) image that is co-registered to a height
| field (a real digital elevation model). The two have the same pixel
| size, etc. How can I tell POV Ray that the image and height field have
| the same size?
|
| Also does POV Ray support any image formats other than TARGA?
Hi Eric, yes, PNG. Or at least it should on your Mac version too I would
expect.
Just remember that image_map and height_field are on two different planes.
Images go onto the xy plane and HF onto the xz plane. So you will need to
rotate the image down onto the HF by doing a rotate 90*x in the pigment
statement.
Short example:
height_field { tga "dempic.tga" // the dem data
pigment {
image_map { tga "picdem.tga"} // the satellite image
rotate 90*x } // fold image over onto HF surface (both are 1 unit square)
scale <300,3,300> // xz resolution (width/height) of images used, y being
vertical scale size
}
Both start out square with their lower-left and near-left corners at <0,0,0>
so to scale up will go to that number of units far-right on the xz plane.
Doing a translate <-0.5,0,-0.5> before the scaling will center it.
Hope that's of some use to you.
Bob
Post a reply to this message
|
![](/i/fill.gif) |