POV-Ray : Newsgroups : povray.general : Render Panoramic photo for use in a sky box? : Re: Render Panoramic photo for use in a sky box? Server Time
31 Jul 2024 20:25:39 EDT (-0400)
  Re: Render Panoramic photo for use in a sky box?  
From: Mike Williams
Date: 20 Sep 2006 08:21:23
Message: <FUliKEA4FTEFFwe+@econym.demon.co.uk>
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

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