POV-Ray : Newsgroups : povray.advanced-users : Creating blurred image via textures...? : Re: Creating blurred image via textures...? Server Time
29 Jul 2024 06:19:03 EDT (-0400)
  Re: Creating blurred image via textures...?  
From: Hans Mikelson
Date: 30 Jun 2003 11:23:41
Message: <3f0055fd$1@news.povray.org>
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

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