POV-Ray : Newsgroups : povray.binaries.images : Toroidal media : Re: Toroidal media Server Time
3 May 2024 06:51:17 EDT (-0400)
  Re: Toroidal media  
From: Thomas de Groot
Date: 7 Dec 2014 07:19:25
Message: <548445cd$1@news.povray.org>
On 7-12-2014 11:25, Le_Forgeron wrote:
> On 07/12/2014 09:41, Thomas de Groot wrote:
>> Close, but not quite. Look at image: the torus is not complete.
>>
>> Thomas
>>
> Yep, you are right, it's wrapping the media around the torus, not what
> you expected.
>
> So, I'm calling the hgpovray branch to the rescue.
>
> http://wiki.povray.org/content/User:Le_Forgeron#torus
>
> The inverse of the minor radius/scale is used as parameter.
>
>
>
> box { -1.5,1.5 hollow material { texture { pigment {rgbf 1} finish {
> ambient 0 diffuse 0 } } interior { media { emission 0.3 samples 40,40
> intervals
> 40 method 2 density { cylindrical color_map
> { [0, rgb 0]
> [0, rgb <0.5,0.5,0.4>]
> [1, rgb <1,0,0>] }
>   warp { torus <0,0,0>, 1, <7/4,1,0>
>   } } } } }
>     }
>
>

Excellent! So we have two methods now to choose from.

However, your warp code is not implemented in the latest version 3.7!

Thomas


Post a reply to this message

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