POV-Ray : Newsgroups : povray.newusers : How do I insert a background image? Server Time
23 Dec 2024 22:36:06 EST (-0500)
  How do I insert a background image? (Message 1 to 4 of 4)  
From: DCZX
Subject: How do I insert a background image?
Date: 12 Feb 2003 13:55:05
Message: <web.3e4a979f573a31fc6803d4d70@news.povray.org>
Hi,

I can render objects okay, but how do I set a background image, like a
starfield TGA for instance?

help appreciated
thanks


Post a reply to this message

From: hughes, b 
Subject: Re: How do I insert a background image?
Date: 12 Feb 2003 16:04:33
Message: <3e4ab6e1@news.povray.org>
"DCZX" <dow### [at] yahoocom> wrote in message
news:web.3e4a979f573a31fc6803d4d70@news.povray.org...
>
> I can render objects okay, but how do I set a background image, like a
> starfield TGA for instance?

One way, and the least trouble if you have a image already made for mapping
to a sphere, is:

sky_sphere {
    pigment {
        image_map {
            tga "stars.tga"
            map_type 1 // for spherical
        }
    }
}

Other than that you could use a plane set far in the background, having that
pigment statement but using map_type 0 for planar mapping and scaling
appropriately.


Post a reply to this message

From: Christopher James Huff
Subject: Re: How do I insert a background image?
Date: 12 Feb 2003 16:31:46
Message: <cjameshuff-F0A4A7.16313512022003@netplex.aussie.org>
In article <3e4ab6e1@news.povray.org>,
 "hughes, b." <omn### [at] charternet> wrote:

> Other than that you could use a plane set far in the background, having that
> pigment statement but using map_type 0 for planar mapping and scaling
> appropriately.

Something you forgot to mention: set the diffuse to 0 and ambient to 1. 
That way the "backdrop" will be self-illuminated, and won't have shadows 
cast on it.
If a sky_sphere background is not what is needed, the standard include 
file screen.inc may help.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: DCZX
Subject: Re: How do I insert a background image?
Date: 18 Feb 2003 13:00:11
Message: <web.3e52737ddaba138d7ea02db30@news.povray.org>
thanks!

Christopher James Huff wrote:
>In article <3e4ab6e1[at]news.povray.org>,
> "hughes, b." <omn### [at] charternet> wrote:
>
>> Other than that you could use a plane set far in the background, having that
>> pigment statement but using map_type 0 for planar mapping and scaling
>> appropriately.
>
>Something you forgot to mention: set the diffuse to 0 and ambient to 1.
>That way the "backdrop" will be self-illuminated, and won't have shadows
>cast on it.
>If a sky_sphere background is not what is needed, the standard include
>file screen.inc may help.
>
>Christopher James Huff <cja### [at] earthlinknet>
>http://home.earthlink.net/~cjameshuff/
>POV-Ray TAG: chr### [at] tagpovrayorg
>http://tag.povray.org/
>


Post a reply to this message

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