POV-Ray : Newsgroups : povray.binaries.images : Toroidal media : Re: Toroidal media Server Time
3 May 2024 03:17:58 EDT (-0400)
  Re: Toroidal media  
From: Alain
Date: 7 Dec 2014 14:09:21
Message: <5484a5e1$1@news.povray.org>
Le 14-12-07 04:24, Thomas de Groot a écrit :
> The best way to achieve my initial question in p.advanced-users is the
> solution given by Alain: using a torus function for the density:
>
> #local Radius = 30;
> #local F_pig = pigment {function {f_torus(x,y,z, 1.0, 0.15)}};
>
> torus {1.0, 0.15
>    hollow
>    material {
>      texture {
>        pigment {rgbt 1}
>      }
>      interior {
>        media {
>          intervals 1
>          samples 10
>          emission 0.5/Radius
>          density {
>            pigment_pattern {F_pig}
>            color_map {
>              [0.8 rgb <0,1,0>]
>              [1.0 rgb <1,0,0>]
>            }
>          }
>        }
>      }
>    }
>    scale Radius
>    rotate 10*x
>    rotate 15*z
> }
>
>
> Now, I need to investigate further in combining this with toroidal warps
> and other media matter. My ultimate goal is to achieve a credible Milky
> Way that can be seen from a planet for instance.
>
> Thomas

The milky way is not toroidal but a barred spiral that is thicker in the 
center and tapper off toward the edges in a lenticular way.
A combination of spherical, with uneven scalling for the central bulge, 
and turbulated planar could be the best way to do it.

Alain


Post a reply to this message

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