POV-Ray : Newsgroups : povray.general : Heightfield and imagemap question : Re: Heightfield and imagemap question Server Time
6 Aug 2024 08:20:11 EDT (-0400)
  Re: Heightfield and imagemap question  
From: Dave Dunn
Date: 15 Apr 2002 18:03:02
Message: <3CBB4E0F.B55F24F8@aol.com>
Michael Smith wrote:

> How do I get the entire imagemap to cover the entire heightfield only once?

You have to understand how height_fields and image maps work. The height_field
is created on a square centered at <0,0,0>, proceeding to <1,0,1>. The
image_map is created at <0,0,0>, and proceeds to <1,1,0>. The first thing you
have to do in both cases is to center the height_field by translating by
<-.5,0,-.5>, and the image_map by translating it by <-.5,-.5,0>. This should be
done before scaling. From there, it is a simple matter of rotating the
image_map x*90 to make it "lay down" onto the height_field. Hope this helps.


Post a reply to this message

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