|
|
Pentium II 266, 96MB, Windows98 SE, POV3.5b2
Problem in pigment_pattern with bozo/f_noise3d:
When using bozo as the pattern type in a pigment_pattern
the results are 'extremely' plateaued. So far, random tests with
other pattern types produce the expected behaviour however.
The following code demonstrates the behaviour as both a pattern
type in a texture block with accompanying texture map, and as a
function used in a pigment block. It also attempts to use the
function version as a means of varying the diffusion across the surface
of an object, and doesn't work as one might expect; another issue I'll
save for my next post.
//Start Code:
#version 3.5;
#include "colors.inc"
#include "functions.inc"
global_settings {
assumed_gamma 1.0
noise_generator 3
}
// ----------------------------------------
background {color MediumBlue}
camera {
location <0.0, 0.5, -4.0>
direction 1.5*z
right x*image_width/image_height
look_at <0.0, 0.0, 0.0>
}
light_source {
<0, 0, 0>
color rgb <1, 1, 1>
translate <-30, 30, -30>
}
// ----------------------------------------
#declare Fn_AmbMap = function{ pigment{
pigment_pattern {bozo scale 0.5}
color_map {
[0.00 color rgb <0,0,0> ]
[1.00 color rgb <1,1,1> ]
}
}
}//end function
#declare Fn_Green = function{pigment { color Green }}
#declare txDiffHi= texture{
pigment {function{Fn_Green(x,y,z).gray} }
finish {diffuse 1}
}
#declare txDiffLo= texture{
pigment {function{Fn_Green(x,y,z).gray} }
finish {diffuse 0}
}
//Sphere 1 :Left
sphere { 0.0, 1
texture{ pigment {function{Fn_AmbMap(x,y,z).gray}scale 0.5 }
finish {diffuse pow((Fn_AmbMap(x.x,y.y,z.z).gray),1)}
}
rotate y*45
translate <-2.25,0,4>
}
//Sphere 2 : Right
sphere { 0.0, 1
texture{ pigment {function{Fn_Green(x,y,z).gray} }
finish {diffuse pow((Fn_AmbMap(x.x,y.y,z.z).red),1)}
}
rotate y*45
translate <2.25,0,4>
}
//Sphere 3 : Bottom
sphere { 0.0, 1
texture{ pigment_pattern { bozo scale 0.5 }
texture_map {
[0 txDiffLo ]
[1 txDiffHi ]
}
}
rotate y*45
translate <0,-2,4>
}
--
Batronyx ^"^
bat### [at] cadronhsacom
http://www.batronyx.com
Post a reply to this message
|
|