POV-Ray : Newsgroups : povray.general : Obstinate media not lending itself to a huge, faraway "sun" Server Time
5 Nov 2024 11:17:39 EST (-0500)
  Obstinate media not lending itself to a huge, faraway "sun" (Message 1 to 3 of 3)  
From: Greg M  Johnson
Subject: Obstinate media not lending itself to a huge, faraway "sun"
Date: 4 Apr 2003 10:01:11
Message: <3e8d9e37@news.povray.org>
//--- povray 3.5 SD file-------------
// the variable casey switches the scene between two scenarios:
// casey=0:  a unit radius sphere seen through tiny camera angle;
// casey=1;  a "big" sphere seen through a normal camera angle;

#declare casey=0;
//declare casey=1;

#declare sun_radius=array[2]{1,15000};
#declare camera_angle=array[2]{.0009,45};
#declare sun_position= <-0.25, 0.10, 0.83>*150000;

background{rgb 0}
sphere{0, sun_radius[casey]
pigment{rgbft 1}
hollow
interior{
        media{
                emission 0.75
                scattering {1, 0.5}
                density { spherical
                        color_map {
                                [0.0 rgb <0,0,0.5>]
                                [0.5 rgb <0.8, 0.8, 0.4>]
                                [1.0 rgb <1,1,1>]
                        }
                //scale 0.5*sun_radius[casey]
                }
        }
}
translate sun_position}

camera {
   location  <0, 10,-50>
   look_at   sun_position
   angle    camera_angle[casey]
}


Post a reply to this message

From: Retsam
Subject: Re: Obstinate media not lending itself to a huge, faraway "sun"
Date: 4 Apr 2003 22:25:03
Message: <web.3e8e4bd1a9ed2e1434dff4bb0@news.povray.org>
Greg M. Johnson wrote:
>#declare sun_radius=array[2]{1,15000};
>                emission 0.75
>                scattering {1, 0.5}

Try:
                emission 0.75/sun_radius
                scattering {1, 0.5/sun_radius}

This should fix the problem when it's really really big.  As far as when
it's really really small and gets all those black pixels, I can't help you
there.


Post a reply to this message

From: Greg M  Johnson
Subject: Re: Obstinate media not lending itself to a huge, faraway "sun"
Date: 5 Apr 2003 16:11:03
Message: <3e8f4667$1@news.povray.org>
Cool thanks.


Post a reply to this message

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