POV-Ray : Newsgroups : povray.general : adding a background picture Server Time
1 Nov 2024 21:21:38 EDT (-0400)
  adding a background picture (Message 1 to 5 of 5)  
From: scl
Subject: adding a background picture
Date: 5 Jul 2004 13:25:01
Message: <web.40e98e6586b4167cca7003960@news.povray.org>
How dows one add a background image.  I want to be able to overlay my
rendered scene over a picture of a given site.  eg I have a digital picture
in .jpg format and I want to add it to the background in mPovRay (instead
of just using a colored background).


Post a reply to this message

From: Hugo Asm
Subject: Re: adding a background picture
Date: 5 Jul 2004 14:43:39
Message: <40e9a15b$1@news.povray.org>
> How dows one add a background image.

It seems you can't do it with the background keyword. But you can do it with
the "screen.inc" standard include file. It comes with POV-Ray. Your
background image will then follow the camera but be a part of the scene. To
avoid having the background-image affected by light and shadow, you can use
"ambient 1 diffuse 0" in the finish statement.

Regards,
Hugo


Post a reply to this message

From: scl
Subject: Re: adding a background picture
Date: 6 Jul 2004 18:55:00
Message: <web.40eb2d2c33d0286eca7003960@news.povray.org>
I tried using the screen.inc approach.  However, my background image now
hides my rendering.  I tried changing the "scale" variable but still had no
luck.  I then tried changing things in the screen.inc directly but was not
getting the desired result.  Any ideas?


Post a reply to this message

From: scl
Subject: Re: adding a background picture
Date: 7 Jul 2004 13:35:00
Message: <web.40ec336d33d0286eca7003960@news.povray.org>
"Hugo Asm" <hua### [at] post3teledk> wrote:
> > How dows one add a background image.
>
> It seems you can't do it with the background keyword. But you can do it with
> the "screen.inc" standard include file. It comes with POV-Ray. Your
> background image will then follow the camera but be a part of the scene. To
> avoid having the background-image affected by light and shadow, you can use
> "ambient 1 diffuse 0" in the finish statement.
>
> Regards,
> Hugo

I replied yesterday but for some reason, it never got posted...

I tried using "screen.inc".  However, I cannot seem to be able to get the
background image to be placed behind my 3D model rendering.  I tried
playing with the scale parameter as well as modifying the code in
screen.inc directly but to no avail...has anyone used screen.inc for
background image purposes?


Post a reply to this message

From: kurtz le pirate
Subject: Re: adding a background picture
Date: 8 Jul 2004 03:04:59
Message: <40ecf21b$1@news.povray.org>
i have the same problem and "screen.inc" doens't help.
the "trick" i use is :
    make a box with image mapped on it
    orient this box has normal to the vector <camera_location camera_lookat>
    then ajust box size and box distance along this vector to fill (or not)
your background...

hope that help!
louis





news:web.40ec336d33d0286eca7003960@news.povray.org...
> "Hugo Asm" <hua### [at] post3teledk> wrote:
> > > How dows one add a background image.
> >
> > It seems you can't do it with the background keyword. But you can do it
with
> > the "screen.inc" standard include file. It comes with POV-Ray. Your
> > background image will then follow the camera but be a part of the scene.
To
> > avoid having the background-image affected by light and shadow, you can
use
> > "ambient 1 diffuse 0" in the finish statement.
> >
> > Regards,
> > Hugo
>
> I replied yesterday but for some reason, it never got posted...
>
> I tried using "screen.inc".  However, I cannot seem to be able to get the
> background image to be placed behind my 3D model rendering.  I tried
> playing with the scale parameter as well as modifying the code in
> screen.inc directly but to no avail...has anyone used screen.inc for
> background image purposes?
>
>


Post a reply to this message

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