POV-Ray : Newsgroups : povray.binaries.images : Toroidal media : Re: Toroidal media Server Time
3 May 2024 00:59:05 EDT (-0400)
  Re: Toroidal media  
From: Le Forgeron
Date: 7 Dec 2014 05:25:28
Message: <54842b18@news.povray.org>
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>
 } } } } }
   }


-- 
IQ of crossposters with FU: 100 / (number of groups)
IQ of crossposters without FU: 100 / (1 + number of groups)
IQ of multiposters: 100 / ( (number of groups) * (number of groups))


Post a reply to this message


Attachments:
Download 'tm.png' (100 KB)

Preview of image 'tm.png'
tm.png


 

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