POV-Ray : Newsgroups : povray.newusers : Background image? Server Time
25 Nov 2024 01:19:48 EST (-0500)
  Background image? (Message 1 to 8 of 8)  
From: Espen
Subject: Background image?
Date: 15 Jan 2007 09:10:01
Message: <web.45ab8a50eadb310ca24f7610@news.povray.org>
Hi!

I'm trying to make an animatied text overlay ontop of an image.  Looking
through the helpfile I find lots of backgroud properties to play around
with, like a solid or gradiant background color, but nothing about static
images.

Is it possible to add a static image to the background as it is with for
example 3D Studio Max, where it is very simple to do so?

TIA,
Espen


Post a reply to this message

From: Marc
Subject: Re: Background image?
Date: 15 Jan 2007 10:58:29
Message: <45aba4a5@news.povray.org>

web.45ab8a50eadb310ca24f7610@news.povray.org...
> Hi!
>
>
> Is it possible to add a static image to the background as it is with for
> example 3D Studio Max, where it is very simple to do so?
>
Have a look at screen.inc it is in the standard includes

http://www.povray.org/documentation/view/3.6.1/495/

Marc


Post a reply to this message

From: Alain
Subject: Re: Background image?
Date: 15 Jan 2007 17:52:09
Message: <45ac0599@news.povray.org>
Espen nous apporta ses lumieres en ce 15-01-2007 09:06:
> Hi!
> 
> I'm trying to make an animatied text overlay ontop of an image.  Looking
> through the helpfile I find lots of backgroud properties to play around
> with, like a solid or gradiant background color, but nothing about static
> images.
> 
> Is it possible to add a static image to the background as it is with for
> example 3D Studio Max, where it is very simple to do so?
> 
> TIA,
> Espen
> 
> 
As your case is prety simple, this is a simple solution:
Add a large box behind your animated text. Use an image_map as the texture. 
Translate the image by -0.5 to have it centered, then scale it to fit. Give it a 
finish{ambient 1 diffuse 0} so that it don't interact with the light and don't 
show shadows.
DONE!

-- 
Alain
-------------------------------------------------
Fundamentalism: If shit happens, you will go to hell, unless you are born again. 
(Amen!)


Post a reply to this message

From: St 
Subject: Re: Background image?
Date: 15 Jan 2007 20:53:33
Message: <45ac301d$1@news.povray.org>
"Alain" <ele### [at] netscapenet> wrote in message 
news:45ac0599@news.povray.org...
.
> DONE!

     Heh, I like your style Alain...  :o)

      ~Steve~


>
> -- 
> Alain
> -------------------------------------------------
> Fundamentalism: If shit happens, you will go to hell, unless you are born 
> again. (Amen!)


Post a reply to this message

From: Espen
Subject: Re: Background image?
Date: 16 Jan 2007 06:10:00
Message: <web.45acb1e5cc9c171eca24f7610@news.povray.org>
"St." <dot### [at] dotcom> wrote:
> "Alain" <ele### [at] netscapenet> wrote in message
> news:45ac0599@news.povray.org...
> .
> > DONE!
>
>      Heh, I like your style Alain...  :o)
>
>       ~Steve~
>
>
> >
> > --
> > Alain
> > -------------------------------------------------
> > Fundamentalism: If shit happens, you will go to hell, unless you are born
> > again. (Amen!)

Thanx guys!  Below is the code for reference.

, Espen

plane { < 0, 0, -1 >, -15
   texture {
       pigment { image_map { tga "background.tga" } }
       finish { ambient 1 diffuse 0 }
       translate < -0.5, -0.5 > scale < 20, 20 >
   }
}


Post a reply to this message

From: Alain
Subject: Re: Background image?
Date: 16 Jan 2007 13:59:53
Message: <45ad20a9$1@news.povray.org>
Espen nous apporta ses lumieres en ce 16-01-2007 06:07:
> "St." <dot### [at] dotcom> wrote:
>> "Alain" <ele### [at] netscapenet> wrote in message
>> news:45ac0599@news.povray.org...
>> .
>>> DONE!
>>      Heh, I like your style Alain...  :o)

>>       ~Steve~


>>> --
>>> Alain
>>> -------------------------------------------------
>>> Fundamentalism: If shit happens, you will go to hell, unless you are born
>>> again. (Amen!)

> Thanx guys!  Below is the code for reference.

> , Espen

> plane { < 0, 0, -1 >, -15
>    texture {
>        pigment { image_map { tga "background.tga" } }
>        finish { ambient 1 diffuse 0 }
>        translate < -0.5, -0.5 > scale < 20, 20 >
>    }
> }



Before scaling, the image_map cover an area of 1 unit by 1 unit. So, if the 
original image is not square, you need to scale it to the proper aspect ratio.
Your plane is as good as the box I mentioned.
As it is now, the image will be tilled over the plane. If it's incoveniant or 
you don't want the tilling, you need to add the "once" keyword.

-- 
Alain
-------------------------------------------------
I believe that banking institutions are more dangerous to our liberties than
standing armies. Already they have raised up a monied aristocracy that has
set the government at defiance. The issuing power should be taken from the
banks and restored to the people to whom it properly belongs.
Thomas Jefferson


Post a reply to this message

From: Eero Ahonen
Subject: Re: Background image?
Date: 16 Jan 2007 14:56:42
Message: <45ad2dfa@news.povray.org>
Alain wrote:
> Your plane is as good as the box I mentioned.
> As it is now, the image will be tilled over the plane. If it's

And both are as bad if the camera is moving even a bit.

-- 
Eero "Aero" Ahonen
   http://www.zbxt.net
      aer### [at] removethiszbxtnetinvalid


Post a reply to this message

From: St 
Subject: Re: Background image?
Date: 18 Jan 2007 18:38:50
Message: <45b0050a$1@news.povray.org>
>> Thanx guys!  Below is the code for reference.
>
>> , Espen
>
>> plane { < 0, 0, -1 >, -15
>>    texture {


     // If I'm not mistaken, you put the 'once' after...  { tga 
"background.tga" once}


>>        pigment { image_map { tga "background.tga" *once*} }
>>        finish { ambient 1 diffuse 0 }
>>        translate < -0.5, -0.5 > scale < 20, 20 >
>>    }
>> }

      ~Steve~


Post a reply to this message

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