POV-Ray : Newsgroups : povray.bugreports : interpolate wraparound & once Server Time
23 Dec 2024 17:59:09 EST (-0500)
  interpolate wraparound & once (Message 1 to 1 of 1)  
From: Dan Connelly
Subject: interpolate wraparound & once
Date: 4 Oct 1998 17:09:13
Message: <3617D5E3.EE62D35C@flash.net>
"Interpolate" seems to have difficulty handling the edge
of the image_map.

Consider the appended scene.  The scene requires an
associated PNG file, called "diagonal.png".  The map I 
used was a 32x32 with a diagonal line.... At risk of
violating list protocol I attach the file, which is 
quite compact.

Note it renders fine with Interpolate set to 0.
However, with 0 or 1, the interpolation wraps around,
generating edge "wraparound" artifacts both in the foreground
"box" and the background plane. 

In the case that the "once" keyword is active, there
should probably be no wrap-around interpolation.

Dan

PII 128MB POV3.1r1 W95

===============  CUT HERE =========================
background { color <0.000,0.000,0.000> } 

#declare Interpolate = 2;
#declare Once = 1;

camera {
  location <0, 0, -5>
  look_at 0
}

light_source {
  <5, 5, -10>
  color rgb 1
}   


plane {
  -z,
  0
  texture {
    pigment {
      image_map {
        png "c:\tmp\diagonal.png"
        interpolate Interpolate 
        #if (Once) once #end
      }
      warp { repeat x flip x }
      warp { repeat y flip y }
    }
  }
}

box {
  <0, 0, -1>,
  <1, 1, -0.99>
  texture {
    pigment {
      image_map {
        png "c:\tmp\diagonal.png"
        interpolate Interpolate
        #if (Once) once #end
      }
    }
  }
}


Post a reply to this message


Attachments:
Download 'diagonal.png' (1 KB)

Preview of image 'diagonal.png'
diagonal.png


 

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