POV-Ray : Newsgroups : povray.binaries.images : find edges postprocess using functions Server Time
31 Oct 2024 12:16:03 EDT (-0400)
  find edges postprocess using functions (Message 1 to 5 of 5)  
From: Simon Adameit
Subject: find edges postprocess using functions
Date: 24 Jul 2002 13:00:09
Message: <3d3edd19@news.povray.org>
Hi,

Could someone please help me to delete the black lines at the image borders.
Source ist at p.t.s.f.

Simon


Post a reply to this message


Attachments:
Download 'pp3.gif' (12 KB)

Preview of image 'pp3.gif'
pp3.gif


 

From: TinCanMan
Subject: Re: find edges postprocess using functions
Date: 24 Jul 2002 13:29:36
Message: <3d3ee400$1@news.povray.org>
Cool process!  I think I found a solution for you:

  #declare Ifun=
  function{
    pigment{
      image_map{
        png "pp2"
      }
      warp{repeat y flip y} //<---add these two lines
      warp{repeat x flip x} //<-/

      translate -.5
      scale <image_width,image_height,1>*.5
    }
  }

this repeats the image in the function and flips it in the x and y
directions, that way there isn't any abrupt stop to the image used in the
function which is the problem you were having.  The function was creating an
edge at the edges of the image itself.  The image used in the function now
continues smoothly beyond the borders of your final scene, eliminating this
effect.

-tgq


Post a reply to this message

From: TinCanMan
Subject: Re: find edges postprocess using functions
Date: 24 Jul 2002 13:31:22
Message: <3d3ee46a@news.povray.org>
>       scale <image_width,image_height,1>*.5

oops, the *0.5 isn't part of the solution, just used it for testing it out
and forgot to remove it.  Just add the two lines suggested.

-tgq


Post a reply to this message

From: Simon Adameit
Subject: Re: find edges postprocess using functions
Date: 24 Jul 2002 14:25:12
Message: <3d3ef108@news.povray.org>
TinCanMan wrote
> Cool process!  I think I found a solution for you:
>
Thanks!
I think your solution will work for what I want to do. But I think it only
removes the edges at the edges caused by the distance(the red value) and not
the ones caused by different normals. Perhaps this would be visible when a
sphere or something like that is at the border of the image.


Post a reply to this message

From: Christopher James Huff
Subject: Re: find edges postprocess using functions
Date: 24 Jul 2002 14:27:53
Message: <chrishuff-C73DA6.13204524072002@netplex.aussie.org>
In article <3d3edd19@news.povray.org>, "Simon Adameit" <gom### [at] gmxde> 
wrote:

> Could someone please help me to delete the black lines at the image borders.
> Source ist at p.t.s.f.

Too bad pattern functions only have access to the evaluation point, and 
not the ray origin and direction, surface normal, etc. Of course, you 
would still have to render the image several times to get all that 
information into image files...but it would be useful in many other 
cases. Interesting trick you used to get it from this scene...

-- 
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/


Post a reply to this message

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