POV-Ray : Newsgroups : povray.text.tutorials : Planet Atmosphere Tutorial : Re: Planet Atmosphere Tutorial Server Time
4 May 2024 23:35:05 EDT (-0400)
  Re: Planet Atmosphere Tutorial  
From: Thomas de Groot
Date: 10 Jan 2021 02:41:10
Message: <5ffaaf96$1@news.povray.org>
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;
2)  multiply the rgb value in the media elements (scattering in the 
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}

-- 
Thomas


Post a reply to this message

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