POV-Ray : Newsgroups : povray.text.tutorials : Planet Atmosphere Tutorial : Re: Planet Atmosphere Tutorial Server Time
4 May 2024 20:56:59 EDT (-0400)
  Re: Planet Atmosphere Tutorial  
From: Thomas de Groot
Date: 10 Jan 2021 02:52:38
Message: <5ffab246@news.povray.org>
Op 10/01/2021 om 08:49 schreef Thomas de Groot:
> 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{


> media{atmos2}}}
> }
> 
> The example above about scattering applies also to the absortion media 
> of course.
> 

And finally, just to be faster than Alain :-)
*Always* use intervals 1 and samples with only one value. Remember that 
this is a 1999 tutorial!

And now I shut up.


-- 
Thomas


Post a reply to this message

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