|
|
Hi,
I used this to create a blurred image texture by adding small scale bozo to
the coordinates. It looks a little like smeared chalk.
Bye,
Hans Mikelson
Christopher James Huff wrote:
> pigment {average
> pigment_map {
> [1 function {R_Func(x, y, z)} color_map {[0 rgb 0][1 red 3]}]
> [1 function {G_Func(x, y, z)} color_map {[0 rgb 0][1 green 3]}]
> [1 function {B_Func(x, y, z)} color_map {[0 rgb 0][1 blue 3]}]
> }
> }
#declare fbi = function {pattern {bozo turbulence .015 octaves 5 omega
1.3 lambda 1.5 scale .001}} ;
#declare fimage = function {pigment {image_map {png "image8.png"}}} ;
#declare T_Blur01 =
texture
{
//pigment {
//image_map {
// function 100, 100 {fimage(x,y,z)}
pigment
{average
pigment_map
{
[1 function {fimage(x+fbi(x,y,z)*.1, y+fbi(x,y,z)*.1,
z+fbi(x,y,z)*.1).red} color_map {[0 rgb 0][1 red 3]}]
[1 function {fimage(x+fbi(x,y,z)*.1, y+fbi(x,y,z)*.1,
z+fbi(x,y,z)*.1).green} color_map {[0 rgb 0][1 green 3]}]
[1 function {fimage(x+fbi(x,y,z)*.1, y+fbi(x,y,z)*.1,
z+fbi(x,y,z)*.1).blue} color_map {[0 rgb 0][1 blue 3]}]
}
}
finish {
ambient 1.0
diffuse 0.0
}
}
Post a reply to this message
|
|