POV-Ray : Newsgroups : povray.general : Height Fields, Image Maps, and the Once keyword : Re: Height Fields, Image Maps, and the Once keyword Server Time
10 Aug 2024 01:26:38 EDT (-0400)
  Re: Height Fields, Image Maps, and the Once keyword  
From: Josh English
Date: 6 Apr 2000 10:53:04
Message: <38ECA408.1941F2BB@spiritone.com>
The height filed is in a box from <0,0,0> to <1,1,1> and the image map is
initially placed from <0,0,0> to <1,1,0>. And I should have mentioned that
the height feild has a perfectly normal full shadow, but the surface is
transparent.

Josh

Fabian BRAU wrote:

> I think you need to translate and scale by 2 the image_map when you
> use once, because the center of the heightfield is at <0,0,0>
> but not the center of the image_map (I think one of its corner is
> at <0,0,0>). And you need to scale because the heightfield is
> "inside" a box which have edge with 2 for length (go from -1 to 1).
> But perhaps I am wrong. I am using Moray and I do like this and I
> never had problems but I use material_map not image_map but I
> think the process is the same :).
>
> Fabian.
>

> >
> > Maybe others have run into this before, but I've noticed that the two
> > bits of code do not render the same way:
> >
> > height_field { tga "land_height.tga"
> >                pigment { image_map { tga "land_color.tga"
> >                                      map_type 0 interpolate 2 }
> >                          rotate -90*x }
> >                }
> >  compared to
> >
> > height_field { tga "land_height.tga"
> >                pigment { image_map { tga "land_color.tga"
> >                                      map_type 0 interpolate 2 once}
> >                          rotate -90*x }
> >                }
> >
> > The second one is the default added by POV-Ray through the insert menu.
> > When I render the second bit of code the shadow looks normal, but the
> > height field has great patches of transparency. There is no alpha
> > channel on either .tga file.
> >
> > I've checked this on Mac and Windows, the standard POV-Ray and MegaPov
> > on both platforms.
> >
> > Is this a known issue or should I submit a bug report on this one?
> > --
> > Josh English
> > eng### [at] spiritonecom
> > "May your hopes, dreams, and plans not be destroyed by a few zeros."

--
Josh English
eng### [at] spiritonecom
"May your hopes, dreams, and plans not be destroyed by a few zeros."


Post a reply to this message

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