POV-Ray : Newsgroups : povray.text.tutorials : Planet Atmosphere Tutorial : Re: Planet Atmosphere Tutorial Server Time
5 May 2024 02:13:18 EDT (-0400)
  Re: Planet Atmosphere Tutorial  
From: Thomas de Groot
Date: 10 Jan 2021 02:49:36
Message: <5ffab190$1@news.povray.org>
Op 10/01/2021 om 08:41 schreef Thomas de Groot:
> Op 10/01/2021 om 05:13 schreef Mike Horvath:
>> This tutorial assumes the planet radius is always 1. What do I need to 
>> do if the radius is some other value? thanks.
>>
>>
>> Mike
>>
> 
> The quick answer would be:
> 1) define a new radius for the planet; e.g. Radius = 100;

> example) by 1/Radius; e.g. scattering {4, rgb <.4,.5,1>*5*(1/Radius) 
> extinction .00005}
> 3) Scale your planet and atmosphere union; e.g. union{ sphere{...} 
> sphere{...} scale 100}
> 

I just see that the author additionally scales the atmosphere by 1.04. I 
think you should also compensate for that.

Another possibility would be to fix the planet's and atmosphere's radius 
from the start and not be troubled by extra scaling:

union{
    sphere {0, 100 texture {Planet1}}
    sphere {0, 104 hollow pigment{rgbt 1.0} interior {media {atmos1} 
media{atmos2}}}
}

The example above about scattering applies also to the absortion media 
of course.

-- 
Thomas


Post a reply to this message

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