POV-Ray : Newsgroups : povray.binaries.images : Re: Height Field from map Comparison : Re: Height Field from map Comparison - hf_bicubic_05.jpg [1/1] Server Time
12 Aug 2024 09:18:58 EDT (-0400)
  Re: Height Field from map Comparison - hf_bicubic_05.jpg [1/1]  
From: Lutz-Peter Hooge
Date: 13 Sep 2003 14:20:29
Message: <3f635fed$1@news.povray.org>
Mike Williams <mik### [at] econymdemoncouk> wrote:

> Just for fun, here are some images generated by using the source image as an
> isosurface pigment function.

Here are 3 isos with bicubic interpolation.
They use different coefficients for the interpolation:

image_map
{
  png "hf_map.png" 
  interpolate 3
  #local s=2;
  #local A=.5; // other two images: A=.7 / A = 1.0 (default)
  matrix <(-1-s*A+s)/s, (-s+3*s*A-1)/s, (1-3*s*A+s)/s, (-s+1+s*A)/s,
        -1/2/s*(-4-3*s*A+3*s), -1/2/s*(-3*s+9*s*A-2), -1/2/s*(-9*s*A+4+3*s),
-1/2/s*(-3*s+2+3*s*A),
        -1/s, 0, 1/s, 0,
        1/2-1/2*A, A, 1/2-1/2*A, 0>
}

This code needs my bicubic interpolation patch to work.

Lutz-Peter


Post a reply to this message


Attachments:
Download 'hf_bicubic_05.jpg' (20 KB)

Preview of image 'hf_bicubic_05.jpg'
hf_bicubic_05.jpg


 

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