POV-Ray : Newsgroups : povray.binaries.images : hf_tools.inc : Re: hf_tools.inc Server Time
28 Sep 2024 13:05:41 EDT (-0400)
  Re: hf_tools.inc  
From: Kenneth
Date: 17 Dec 2009 10:40:01
Message: <web.4b2a4f8ff654043d65f302820@news.povray.org>
stbenge <UN### [at] hotmailcom> wrote:

> I doubt they are the same bug.
>
> Check this out:
>
> height_field{
>   png"mountains.png"
>   ...
> }
>
> It works just fine, always has.
>
> Compare it to this:
>
> height_field{
>   function 513, 513{
>    pigment{
>     image_map{
>      png"mountains.png"
>      interpolate 2 once
>     }
>    }
>   }
>   ...
> }

Yeah, there are some strange goings-on in HFs made from functions.  I think I've
noticed the edge artifacts you mentioned.  But there's also the odd fact that
the applied pattern (or image_map) ends up being flipped upside down(?) like a
mirror-image, AND that the 'origin point' of the pattern/image is out of place.
The usual origin that we all know and love is at <0,0,0>; with a HF function,
the 'origin' is mysteriously at <0,0,1>, and the applied pattern/image
scales out from there. I've come up with simple workarounds to these particular
situations--but, along with the edge artifacts, it's apparent that HF functions
are not working correctly. I suppose, though, that re-engineering the
problematic code (whatever it is!) would cause lots of backward-compatibility
problems with previously-made scenes.

Ken


Post a reply to this message

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