|
![](/i/fill.gif) |
Wasn't it ninjafoo Ng who wrote:
>I have found a few panoramic photos on the web
>
>http://www.philohome.com/panogallery/holidays.htm
>
>How could I use POV to render 6 square tiles that I could then use to map
>this image onto the insides of a cube and not loose the effect -
>essentially I want to end up with a skybox
Since those photos already are cylindrical, it makes more sense to use a
cylindrical sky rather than a box:
cylinder {-y,y,1
pigment {
image_map {
jpeg "mariegalante.jpg"
interpolate 2
map_type 2
}
translate -y/2
scale <1,pi,1>
}
finish {ambient 1}
scale 1000
}
The "map_type 2" makes the image_map cylindrical
The "translate -y/2" makes the image run from -y/2 to +y/2 instead of
from 0 to y.
The scale <1,pi,1> scales the image so that the height matches the
width.
The "finish {ambient 1}" prevents shadows being cast onto the sky
backdrop.
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
![](/i/fill.gif) |