|
|
"Chrisir" <nomail@nomail> wrote:
> I'd like to use a image for my sky.
>
> sky_sphere {
> pigment {
> image_map
> {
> jpeg "sky02.jpg"
> // [IMAGE_MAP_MODS...]
> // interpolate Type
>
> }
> // scale .2
> }
>
> }
>
> But it doesn't come right
Do you want to use it as a *sky* (i.e. have the picture cover the whole sphere),
or as a *background* (i.e. have the picture fill exactly what is visible)?
For a *sky*, you need to add "map_type 1" to the "image_map" statement (for the
most common projection type, called "spherical" in POV-Ray; note that this will
cover the entire sphere, not just the upper hemisphere).
For using an image as a *background*, POV-Ray currently does not provide a
straightforward way. You will probably need to use a *very* large "box" object
instead of the sky sphere, with the image projected onto one side, and scaled,
rotated and translated so that this side exactly fits the camera view.
Post a reply to this message
|
|