POV-Ray : Newsgroups : povray.general : Sky backgrounds Server Time
4 Aug 2024 02:21:55 EDT (-0400)
  Sky backgrounds (Message 1 to 10 of 10)  
From: Slime
Subject: Sky backgrounds
Date: 7 Sep 2003 18:17:38
Message: <3f5bae82@news.povray.org>
http://www.schloerb.com/Dreamscape2/

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

From: Bonsai
Subject: Re: Sky backgrounds
Date: 8 Sep 2003 05:08:22
Message: <3f5c4706$1@news.povray.org>
These look very good, thanks for sharing the link.

Bonsai

-- 
<--------------------------->
    ___ __ __  _ ___ ___  _
   | _ )  \  \( )  _) _ )( )
   | _ \() |\ \ |\ \/ _ \| |
   |___/__/_)\__)___)/ \_)_)

        www.b0n541.net
<--------------------------->

"Hi. I'm a signature virus. Add me to your signature - help me spread!"


Post a reply to this message

From: Jettero Heller
Subject: Re: Sky backgrounds
Date: 8 Sep 2003 11:21:40
Message: <slrnblp7gl.sv.povfan@corky.voltar-confed.org>
Heyya Slime,

Those are really cool.

When I went to d/l them I discovered the link was a bit slow.  I
don't know if that's temporary, just me, or what; but they're on
my webserver and if you'd like to href to them on my server
instead, just email me for the URL.

In article <3f5bae82@news.povray.org>, Slime wrote:
> http://www.schloerb.com/Dreamscape2/
> 
>  - Slime
>  [ http://www.slimeland.com/ ]


-- 
If riding in an airplane is flying, then riding in a boat is swimming.
47 jumps, 13.2 minutes of freefall, 27.3 ff vertical miles.


Post a reply to this message

From: Martin Belair
Subject: Re: Sky backgrounds
Date: 8 Sep 2003 17:00:26
Message: <Xns93F0ABBF57803badhabit07hotmaildot@204.213.191.226>
Good day!

"Slime" <fak### [at] emailaddress> wrote in news:3f5bae82@news.povray.org:

> http://www.schloerb.com/Dreamscape2/

Humm, ahh...Houuuuu!!!! All sucked in! These are great!

Thank you very much Slime!

Ciao!

Mart


-- 
-+======================+-


 bad### [at] hotmailDOTcom
-+======================+-


Post a reply to this message

From: Jettero Heller
Subject: Re: Sky backgrounds
Date: 10 Sep 2003 11:03:09
Message: <slrnbluf5q.nsr.povfan@corky.voltar-confed.org>
> http://www.schloerb.com/Dreamscape2/


Well, I just finished one of my other projects.  And now I'm left
wondering.  I never really used the sky sphere before.  After
reading about it, I suspect that's the wrong way to use these
Dreamscape pics.

What is the best way to use the images?


-- 
If riding in an airplane is flying, then riding in a boat is swimming.
47 jumps, 13.2 minutes of freefall, 27.3 ff vertical miles.


Post a reply to this message

From: aquarin
Subject: Re: Sky backgrounds
Date: 11 Sep 2003 10:50:00
Message: <web.3f608b278d296e14c49a88ba0@news.povray.org>
I am not sure it is the "best way", but it is "my way":
sky_sphere {
  pigment {
    image_map {jpeg "sky1.jpg"}
    scale 2
    translate -1
  }
  rotate 70*y
}

Jettero Heller wrote:
>> http://www.schloerb.com/Dreamscape2/
>
>
>Well, I just finished one of my other projects.  And now I'm left
>wondering.  I never really used the sky sphere before.  After
>reading about it, I suspect that's the wrong way to use these
>Dreamscape pics.
>
>What is the best way to use the images?
>
>
>If riding in an airplane is flying, then riding in a boat is swimming.
>47 jumps, 13.2 minutes of freefall, 27.3 ff vertical miles.
>


Post a reply to this message

From: Warp
Subject: Re: Sky backgrounds
Date: 11 Sep 2003 11:40:11
Message: <3f60975b@news.povray.org>
aquarin <nomail@nomail> wrote:
> I am not sure it is the "best way", but it is "my way":
> sky_sphere {
>   pigment {
>     image_map {jpeg "sky1.jpg"}
>     scale 2
>     translate -1
>   }
>   rotate 70*y
> }

  Even without testing I can say that doesn't work at all.
  The sky backgrounds are (hemi)spherical projections so you have to use
the spherical map type (was it map_type 1?).
  However, since they are not spherical projections but hemispherical (only
half of the sphere), this is not enough. You need to create a pigment
from <0,0,0> to <1,1,0> where the upper half consists of the image (and
the lower half has whatever) and then apply a spherical warp.

  So it should look something like this (completely untested, so it may
have bugs):

sky_sphere
{ pigment
  { image_map { jpeg "sky1.jpg" once }
    scale <1,.5,1> translate y*.5
    warp { spherical }
  }
}

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Gilles Tran
Subject: Re: Sky backgrounds
Date: 11 Sep 2003 12:08:38
Message: <3f609e06@news.povray.org>

news:3f60975b@news.povray.org...
>   However, since they are not spherical projections but hemispherical
(only
> half of the sphere), this is not enough.

Actually these sky images are fully spherical, the website just doesn't show
the bottom half(pure black of course) in the previews...

G.


-- 

**********************
http://www.oyonale.com
**********************
- Graphic experiments
- POV-Ray and Poser computer images
- Posters


Post a reply to this message

From: Warp
Subject: Re: Sky backgrounds
Date: 11 Sep 2003 17:13:37
Message: <3f60e581@news.povray.org>
Gilles Tran <tra### [at] inapginrafr> wrote:
> Actually these sky images are fully spherical, the website just doesn't show
> the bottom half(pure black of course) in the previews...

  I see. In that case it's enough to do:

sky_sphere
{ pigment { image_map { jpeg "whatever" map_type 1 } }
}

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: Tom A 
Subject: Re: Sky backgrounds
Date: 12 Sep 2003 10:43:32
Message: <3f61db94$1@news.povray.org>
Warp wrote:
> Gilles Tran <tra### [at] inapginrafr> wrote:
> 
>>Actually these sky images are fully spherical, the website just doesn't show
>>the bottom half(pure black of course) in the previews...
> 
> 
>   I see. In that case it's enough to do:
> 
> sky_sphere
> { pigment { image_map { jpeg "whatever" map_type 1 } }
> }

Yes, the recent website got me thinking, and creating an image to put on 
the background was just what I needed.  My camera to create the image 
was this:

camera {
   spherical
   location <0,0,0>      // position
   look_at  <0,0,1>      // view
   angle 360             // horizontal degrees
         180             // vertical degrees
}


And the sky sphere to use the output is this:

sky_sphere {
   pigment {
     image_map{ tga "starynight.tga"    map_type 1   }
                 rotate x*-100
   }
}

(The rotate was needed so that the moon on the sky image was where I 
wanted it.)

It was perfect for putting a moon in the sky in my animation, so it 
would always be the same angle, no matter where I placed the camera.

Tom A.


Post a reply to this message

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