POV-Ray : Newsgroups : povray.general : Background Image : Re: Background Image Server Time
1 Aug 2024 12:22:32 EDT (-0400)
  Re: Background Image  
From: Skip Talbot
Date: 5 Oct 2005 02:27:37
Message: <43437259$1@news.povray.org>
POV-Ray doesn't have a background image specifically included in the 
SDL.  However you can create one with a bit of work:

Set a flat box sufficiently far enough away to be behind all the scene 
objects (quite far if you are using any ground planes).  Align its 
normal to be the camera normal, and compute the width based on the 
camera angle and distance from the camera.  You'll have to hit up the 
docs for info on coding that.

The image map you use should have an ambient of 1, diffuse 0 so it 
doesnt interact with the scene lights.  Don't forget no_shadow, 
no_refletion tags if you need them.

You can define some macros to update the background box automatically 
when you change the camera... but I'll let you figure out the code  ;)

I'm not sure I quite understand your other criteria...

If you use the alpha channel on your background box texture it should 
render the background color behind it, or transparent if you use alpha 
output.

By give some data... do you mean that you want the background image to 
show up for the entire render dimensions, despite having POV-Ray 
actually only render a smaller section of those dimensions?  If so, I 
don't think that's possible except by rendering in two passes and 
combining the images.   That's probably not of use to you though since 
I'd imagine you'd use that for quick test renders.

Skip


Post a reply to this message

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