POV-Ray : Newsgroups : povray.general : Background Image : Re: Background Image Server Time
1 Aug 2024 02:19:13 EDT (-0400)
  Re: Background Image  
From: Jim Charter
Date: 29 Apr 2006 10:43:05
Message: <44537b79$1@news.povray.org>
Kaka22 wrote:
> John VanSickle <evi### [at] hotmailcom> wrote:
> 
>>Kaka22 wrote:
>>
>>>Is it possible to put an image (instead of a color)as a background in a
>>>scene ?
>>>
>>>thanks
>>
>>Yes.  Apply the image to a large polygon and put the polygon in the
>>background.
>>
>>Regards,
>>John
> 
> 
> Can you please give me a small example...because I tried:
> polygon {
>     4,
>     <0, 0>, <0, 300>, <300, 300>, <300, 0>
>     texture {
>       finish { ambient 1 diffuse 0 }
>       pigment { image_map { gif "test.gif"  } }
>     }
>   }
> and the image repeats instead of having the whole picture as my background.
> thanks
> 
> 
> 
the image_map is scaled from <0,0> to <1,1> by default so you have to 
either

a:
scale the texture to match the size of your object


or

b:

first apply the texture to a unit sized object then scale up the object.


Post a reply to this message

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