POV-Ray : Newsgroups : povray.general : Rendering Skies In POV-Ray Server Time
31 Oct 2024 08:18:16 EDT (-0400)
  Rendering Skies In POV-Ray (Message 1 to 6 of 6)  
From: Ammar
Subject: Rendering Skies In POV-Ray
Date: 18 Apr 2000 15:20:44
Message: <38fcb58c$1@news.povray.org>
Hello All

I am currently working on a project to render skies using physically
accurate or t least approximate colours and intensities. I have been advised
to use POV-Ray simply because it is a very good ray tracing program. My
knowledge of the language is very bad and I am struggling to use it.
I have gathered all the equations to implement my model, but I am completely
clueless as to how POV-Ray works.
 I would be very greatful if anyone could provide with a skeleton program
that would setup the scene for me. That is,
create the earth and sky spheres and postion the view on the surface of the
earth looking at the sky.

Then I can use that to change the colour of the sky based on equation I
have.

I would like to apologise for this, but my POV-Ray knowledge is very bad and
I am starting to panic !!!

Any help would be greatly appreciated.

Please feel free to reply to me on the email address listed below.

Thanks..

Ammar

a.a### [at] ueaacuk


Post a reply to this message

From: Mike Weber
Subject: Re: Rendering Skies In POV-Ray
Date: 18 Apr 2000 18:40:00
Message: <38fce440@news.povray.org>
Here is a very simple start:

camera {location<0,.1,0> look_at<0,0,10000>}
light_source{<0,1000,0> rgb<1,1,1>}

file://earth
sphere {<0,0,0>, 1000 pigment{rgb<.35,.35,0>} translate <0,-1000,0>}

file://sky
sphere {<0,0,0>, 100000 pigment{rgbf<.8,.8,.8,.25>} hollow}




--
Mike

wk: mik### [at] pyxiscom  www.pyxis.com
hm: mwe### [at] sciticom  www.geocities.com/mikepweber


"Ammar" <a.a### [at] ueaacuk> wrote in message
news:38fcb58c$1@news.povray.org...
> Hello All
>
> I am currently working on a project to render skies using physically
> accurate or t least approximate colours and intensities. I have been
advised
> to use POV-Ray simply because it is a very good ray tracing program. My
> knowledge of the language is very bad and I am struggling to use it.
> I have gathered all the equations to implement my model, but I am
completely
> clueless as to how POV-Ray works.
>  I would be very greatful if anyone could provide with a skeleton program
> that would setup the scene for me. That is,
> create the earth and sky spheres and postion the view on the surface of
the
> earth looking at the sky.
>
> Then I can use that to change the colour of the sky based on equation I
> have.
>
> I would like to apologise for this, but my POV-Ray knowledge is very bad
and
> I am starting to panic !!!
>
> Any help would be greatly appreciated.
>
> Please feel free to reply to me on the email address listed below.
>
> Thanks..
>
> Ammar
>
> a.a### [at] ueaacuk
>
>
>
>
>
>
>


Post a reply to this message

From: Bob Hughes
Subject: Re: Rendering Skies In POV-Ray
Date: 18 Apr 2000 22:33:01
Message: <38fd1add@news.povray.org>
"Mike Weber" <mik### [at] pyxiscom> wrote in message news:38fce440@news.povray.org...
| Here is a very simple start:
|
| camera {location<0,.1,0> look_at<0,0,10000>}
| light_source{<0,1000,0> rgb<1,1,1>}
|
| file://earth
| sphere {<0,0,0>, 1000 pigment{rgb<.35,.35,0>} translate <0,-1000,0>}
|
| file://sky
| sphere {<0,0,0>, 100000 pigment{rgbf<.8,.8,.8,.25>} hollow}

You would want to use 'color_map' no doubt if this was to all be done with texturing
and not media.
So...

 sphere {<0,0,0>, 100000
  pigment {gradient y color_map {
        [0.0 color rgbf<.8,.85,.9,.05>] // horizon
        [0.1 color rgbf<.7,.8,.85,.125>]
        [1.0 color rgbf<.3,.5,.9,.25>] // zenith
        }}
 hollow}

... might be what you're looking for to adjust colors with.
Obviously the scales aren't correct but I'd guess you know what sizes to make things.
There have been several Earths made by many people over time, some could probably
be found in one of the scene-files newsgroups here.
If you're looking to do something which this doesn't cover don't give up keep asking
questions.

Bob


Post a reply to this message

From: Sven-Erik Andersen
Subject: Re: Rendering Skies In POV-Ray
Date: 22 Apr 2000 04:13:50
Message: <39015ee6.347637666@204.213.191.228>
>"Mike Weber" <mik### [at] pyxiscom> wrote in message news:38fce440@news.povray.org...
>| Here is a very simple start:
>|
>| camera {location<0,.1,0> look_at<0,0,10000>}
>| light_source{<0,1000,0> rgb<1,1,1>}
>|
>| file://earth
>| sphere {<0,0,0>, 1000 pigment{rgb<.35,.35,0>} translate <0,-1000,0>}
>|
>| file://sky
>| sphere {<0,0,0>, 100000 pigment{rgbf<.8,.8,.8,.25>} hollow}
>

Also remove the file: bit that Outlook loves to put in front of the
comment tag //.

Sven-Erik Andersen
----
sve### [at] andersenas
sea### [at] mailcitycom
http://www.geocities.com/SiliconValley/Program/2549/


Post a reply to this message

From: Bob Hughes
Subject: Re: Rendering Skies In POV-Ray
Date: 22 Apr 2000 08:01:26
Message: <39019496@news.povray.org>
"Sven-Erik Andersen" <sea### [at] mailcitycom> wrote in message
news:39015ee6.347637666@204.213.191.228...
| >"Mike Weber" <mik### [at] pyxiscom> wrote in message
news:38fce440@news.povray.org...
| >| Here is a very simple start:
| >|
| >| camera {location<0,.1,0> look_at<0,0,10000>}
| >| light_source{<0,1000,0> rgb<1,1,1>}
| >|
| >| file://earth
| >| sphere {<0,0,0>, 1000 pigment{rgb<.35,.35,0>} translate <0,-1000,0>}
| >|
| >| file://sky
| >| sphere {<0,0,0>, 100000 pigment{rgbf<.8,.8,.8,.25>} hollow}
| >
|
| Also remove the file: bit that Outlook loves to put in front of the
| comment tag //.

I really hate that.  Can't really blame Outlook for seeing it that way
if HTML is enabled but it does so even though everything's
set to plain text.

Bob


| Sven-Erik Andersen
| ----
| sve### [at] andersenas
| sea### [at] mailcitycom
| http://www.geocities.com/SiliconValley/Program/2549/


Post a reply to this message

From: Bill DeWitt
Subject: Re: Rendering Skies In POV-Ray
Date: 22 Apr 2000 08:48:44
Message: <39019fac@news.povray.org>
"Sven-Erik Andersen" <sea### [at] mailcitycom> wrote :
>
> Also remove the file: bit that Outlook loves to put in front of the
> comment tag //.
>

    I hate that! I have found that one of two fixes will help others if I
post scene code. Either make sure there is a space between the // and the
surrounding words, or use three ///s. I have taken to using three slashes in
all my code just in case.

file://won't work ( that -was- just two slashes...)
// works
///works

    One of the "conveniences" that MS helps us with...


Post a reply to this message

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