|
|
On 07/12/2014 13:19, Thomas de Groot wrote:
>
> Excellent! So we have two methods now to choose from.
>
> However, your warp code is not implemented in the latest version 3.7!
>
> Thomas
>
For a solution based on toroidal (original post), the solution is with
dist_exp 200 (or any big enough value) to neglect the effect of depth,
or changing the cylindrical to a pigment that has no influence due to
depth , value 1 at 0, value 0 at -1 and 1: it's planar !!!
so either :
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 { planar
color_map
{ [0, rgb 0]
[0, rgb <0.5,0.5,0.4>]
[1, rgb <1,0,0>] }
scale 4/7
warp { toroidal orientation y major_radius 1
} } } } }
}
or
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>] }
rotate 90*z
scale 4/7
warp { toroidal orientation z major_radius 1 dist_exp 200
} } } } }
}
Strictly speaking, dist_exp is cheating. Planar is not.
--
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 'pla.png' (100 KB)
Download 'tm.png' (100 KB)
Preview of image 'pla.png'
Preview of image 'tm.png'
|
|