POV-Ray : Newsgroups : povray.binaries.images : Textured block pattern problem : Re: Textured block pattern problem Server Time
1 Aug 2024 06:26:12 EDT (-0400)
  Re: Textured block pattern problem  
From: clipka
Date: 26 Mar 2009 06:55:00
Message: <web.49cb5eca143ba0c593bfb07f0@news.povray.org>
"Kenneth" <kdw### [at] earthlinknet> wrote:
> When a function is used in the HF_Square macro in shapes.inc--supposedly the
> 'equivalent' of POV's regular HF--the function (whether of a pigment/pattern OR
> an image_map) actually evaluates the pattern 'slice' on the X/Z plane(!) rather
> than the X/Y plane as it is supposed to. That explains lots of things!

No, that's actually documented:

"The function values used for the heights will be taken from the square that
goes from <0,0,0> to <1,1,0> if UV height mapping is on. Otherwise the function
values will be taken from the points where the surface is (before the
deformation)."

As the HF_Square macro will build a height field over the X/Z plane, you'd need
to set the UseUVheight parameter to true to get the samples from the X/Y plane.

The regular height_field is always in "UseUVheight" mode, so to speak.


Post a reply to this message

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