POV-Ray : Newsgroups : povray.general : rendering skyboxes : Re: rendering skyboxes Server Time
3 Aug 2024 04:21:01 EDT (-0400)
  Re: rendering skyboxes  
From: Barron Gillon
Date: 11 May 2004 17:54:35
Message: <40a14b9b$1@news.povray.org>
Thanks!  I didn't try this on my own, because I was sure it wouldn't work
well, but... it did.  Thanks again

"Slime" <fak### [at] emailaddress> wrote in message
news:409c7bb9@news.povray.org...
> > I have an OpenGL project, and I was wanting to use pov to render
textures
> > for my skybox.  Dos anyone have any experience with this?
>
> This code is from a scene which I used to render a sky box for one of *my*
> openGL programs:
>
> camera {
>  location 0
>  right x
>  up y
>  direction z
>
>  angle 90
>
>  #if (frame_number = 0)
>   look_at  x
>  #else #if (frame_number = 1)
>   look_at  -x
>  #else #if (frame_number = 2)
>   look_at  y
>  #else #if (frame_number = 3)
>   look_at  -y
>  #else #if (frame_number = 4)
>   look_at  z
>  #else #if (frame_number = 5)
>   look_at  -z
>  #end #end #end #end #end #end
> }
>
> use it in an animation with 6 frames (0 through 5), and a square output
> aspect ratio, and there are your 6 images which should be texture mapped
to
> squares surrounding the camera. You just have to rotate them right.
>
>  - Slime
>  [ http://www.slimeland.com/ ]
>
>


Post a reply to this message

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