|
 |
kurtz le pirate <kur### [at] gmail com> wrote:
> Hello.
>
> I don't think you quite understand how TOK did it (granted, it's not
> easy). In fact, the key is in the SelectRectangleFn function and in the
> texture_map.
>
> For the function, the return value (0 or 1) is juste a value which will
> be used in the texture_map.
>
> The texture_map say that "0" is mapped to ImagePigment and for "1"
> mapped to BlurredImagePigmentGy.
>
>
> Having said that, I modified TOK's "Blur_Image_Region.pov" file :
>
>
> #declare SelectRectangleFn = function {
> 1
> *select(x - 0.25*Width, 0, 1)
> *select(x - 0.75*Width, 1, 0)
> *select(y - 0.00*Height, 0, 1)
> *select(y - 1.00*Height, 1, 0)
> };
>
> In x direction 0 to 200 and 600 to 800
> In y direction 0 to 600.
>
> and now it's time to modify the "texture_map"
>
> texture_map {
> // [ 0.0 pigment { color Yellow } ]
> [ 0.0 BlurredImagePigmentGy ]
> [ 1.0 ImagePigment ]
> }
>
>
> Which gives the attached image.
>
> Hope that help.
>
>
> --
> Kurtz le pirate
> Compagnie de la Banquise
OK awesome I can use that now. What a great tool Tor Olav Kristensen has given
us! Thanks for helping me out with that!
Kind regards,
Dave Blandston
Post a reply to this message
|
 |