POV-Ray : Newsgroups : povray.general : Transforming an onion pattern : Re: Transforming an onion pattern Server Time
26 Apr 2024 13:13:27 EDT (-0400)
  Re: Transforming an onion pattern  
From: Alain
Date: 23 Feb 2018 22:20:05
Message: <5a90d9e5$1@news.povray.org>
Le 18-02-23 à 11:49, Sven Littkowski a écrit :
> I would allow the onion to begin at the center of the planet. If the
> planet sphere has a radius of 99 units, the onion sphere could have a
> radius of 100 (just an example). All areas of the onion inside the plant
> should be fully transparent
> [ 0.00 color rgbf 1.0 ]
> [ 0.99 color rgbf 1.0 ]
> and only from 0.99 on you can do your atmospheric magic. From 0.99 on,
> you might have to work with very low value differences.
> 
> I hope I understood your problem correctly.
> 
> ---
> Diese E-Mail wurde von AVG auf Viren geprüft.
> http://www.avg.com
> 

Probably better to scale it smaller.
If the scaling factor is similar, but slightly smaller, to the radius of 
the surface, then, the zero point of the map will be just slightly under 
the surface. Making the scaling slightly smaller is useful if you have 
an isosurface based body to ensure that you don't get upper atmosphere 
in the deepest valleys.
So, in the case of a 99 unit radius planet with a 1 unit thick 
atmosphere, you don't need any scaling at all. The pattern will repeat 
99 times under the surface, where it's totally invisible, and you only 
see the 100th period. The 101th period is outside the container and 
never used.
This makes the construction of the colour_map much easier as you are now 
working in term of % of the atmosphere thickness instead of (planetary + 
atmospheric) radius.


Alain


Post a reply to this message

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