POV-Ray : Newsgroups : povray.binaries.scene-files : cubic interpolation for image_maps : Re: cubic interpolation for image_maps Server Time
1 Sep 2024 10:13:15 EDT (-0400)
  Re: cubic interpolation for image_maps  
From: Samuel Benge
Date: 10 Mar 2007 19:52:14
Message: <45f352be@news.povray.org>
Vincent Le Chevalier wrote:
> Following the discussion in povray.binaries.images under the same
> subject, here is my implementation of the bicubic interpolation.
> 
> The archive contains a scene file with the macro used for the
> interpolation (could probably easily put in an include file if need be)
> and an example TGA height field to test it on.
> 
> The implementation here is quite slow because it uses many function
> calls.

Whoah. I'm inclined to call it slow, considering it took 1m 36s just to 
parse!

> On the other hand, you could probably tweak it to have
> interesting effects (for example by twisting the slope computation...).
> Anyhow it is quite necessary when you want to blend image data with
> procedural patterns in POV-Ray, because the internal interpolation
> methods are more visible. I sure hope to see a similar internal method
> in future official versions of POV-Ray...

Upon closer inspection of the rendered image, I see that it shares 
similar "step" artifacts as can be found with the blended cells 
implementation, albeit yours are much less pronounced.

> And my thanks to Samuel for making me rediscover and clean up my old
> code ;-)
> 
> Regards

Hey, any time I can help :)

~Sam


Post a reply to this message

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