POV-Ray : Newsgroups : povray.binaries.images : Testing/Using Gaussian Blur Inc File : Re: Testing/Using Gaussian Blur Inc File Server Time
9 May 2024 03:13:49 EDT (-0400)
  Re: Testing/Using Gaussian Blur Inc File  
From: Dave Blandston
Date: 13 Nov 2023 13:30:00
Message: <web.65526abba3d4d985f9e40ba69334df62@news.povray.org>
kurtz le pirate <kur### [at] gmailcom> 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

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