POV-Ray : Newsgroups : povray.binaries.images : cubic interpolation for image_maps (2 jpegs - 63kb) : cubic interpolation for image_maps (2 jpegs - 63kb) Server Time
4 Nov 2024 17:56:18 EST (-0500)
  cubic interpolation for image_maps (2 jpegs - 63kb)  
From: Samuel Benge
Date: 6 Mar 2007 21:10:26
Message: <45ee1f12@news.povray.org>
Hello everyone. I think there was a patch for this somewhere once... but 
anyway.

Based on Tek's (very clever) blended cells pattern, I have made a small 
macro which provides cubic interpolation between an image_map's pixels.

It's easy to use, as long as you can provide the exact width and height 
for the input image. You can specify the amount of blurring to perform. 
It could be useful for light probes, height_fields, or anything else you 
could think of. The files are available now at p.b.scene-files. A basic 
example file is included.

Hope it's useful to someone :)

~Sam


Post a reply to this message


Attachments:
Download 'cubic_image_map2.jpg' (35 KB) Download 'cubic_image_map1.jpg' (27 KB)

Preview of image 'cubic_image_map2.jpg'
cubic_image_map2.jpg

Preview of image 'cubic_image_map1.jpg'
cubic_image_map1.jpg


 

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