POV-Ray : Newsgroups : povray.general : Half a sky_sphere? Server Time
29 Jul 2024 06:13:52 EDT (-0400)
  Half a sky_sphere? (Message 1 to 2 of 2)  
From: Timwi
Subject: Half a sky_sphere?
Date: 24 Mar 2013 17:15:21
Message: <514f6ce9$1@news.povray.org>
Hi!

Is it possible to have a sky_sphere that occupies only one half of the sky?

Or, alternatively, is it possible to create a pigment that is 
transparent for all (say) x > 0 and some other pigment (say, a 
y-gradient) for x <= 0?

Thanks!
Timwi


Post a reply to this message

From: Alain
Subject: Re: Half a sky_sphere?
Date: 24 Mar 2013 17:23:38
Message: <514f6eda@news.povray.org>

>
> Hi!
>
> Is it possible to have a sky_sphere that occupies only one half of the sky?
>
> Or, alternatively, is it possible to create a pigment that is
> transparent for all (say) x > 0 and some other pigment (say, a
> y-gradient) for x <= 0?
>
> Thanks!
> Timwi

If you use a gradient pattern similar to that one:
gradient x pigment_map{[0.5 rgbt 1][0.5 Your_Sky scale 0.5] scale 2}

The scale ensure that the gradient is used only once. As it is now, the 
left half will use Your_Sky and the right half will be transparent and 
show the background colour.
It should do the trick. The Your_Sky pigment can be anything you want, 
like a gradient y, a light probe or ...

Another possible way would be to have a normal sky_sphere AND a very 
large half sphere.



Alain


Post a reply to this message

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