POV-Ray : Newsgroups : povray.newusers : Sky external Image? : Re: Sky external Image? Server Time
5 May 2024 10:38:09 EDT (-0400)
  Re: Sky external Image?  
From: clipka
Date: 14 Jul 2009 21:55:01
Message: <web.4a5d360641a4106c3964e90f0@news.povray.org>
"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

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