POV-Ray : Newsgroups : povray.text.scene-files : Height Field with Image Map texture Server Time
27 Dec 2024 04:25:19 EST (-0500)
  Height Field with Image Map texture (Message 1 to 6 of 6)  
From: Peter Hale
Subject: Height Field with Image Map texture
Date: 8 Dec 1998 10:45:33
Message: <366D49CE.FE7E9864@trw.com>
I have taken a photo of a person and created a grayscale version of the
face. Using this as the Height Field input I tried to place the photo of
the person as the texture. The image map is specified as use once. The
results I recieve is the photo image being rendered to the +x,+y quad,
leaving the remaining three quads with no texture.

How do I build the height field w/ photo texture that will results in
the photo being laid directly over the height field?

Thanks


Post a reply to this message

From: Nieminen Mika
Subject: Re: Height Field with Image Map texture
Date: 8 Dec 1998 11:00:15
Message: <366d4d0f.0@news.povray.org>
Peter Hale <pet### [at] trwcom> wrote:
: I have taken a photo of a person and created a grayscale version of the
: face. Using this as the Height Field input I tried to place the photo of
: the person as the texture. The image map is specified as use once. The
: results I recieve is the photo image being rendered to the +x,+y quad,
: leaving the remaining three quads with no texture.

  Scale and translate are the keywords.
  You can make it for example this way: Translate the heightfield so that
its corner is at the origin and scale it so that it's sized 1x1 (if I
remember right, this is the default without translations or scales).
Then apply the texture and translate and scale it (the texture) so that
its corner is also at the origin and its dimensions are equal to the
heightfield dimensions. (If I still remember right, you have also to rotate
the texture 90 degrees but I suppose you have already guessed that)

-- 
main(i){char*_="BdsyFBThhHFBThhHFRz]NFTITQF|DJIFHQhhF";while(i=
*_++)for(;i>1;printf("%s",i-70?i&1?"[]":" ":(i=0,"\n")),i/=2);} /*- Warp. -*/


Post a reply to this message

From: Peter Hale
Subject: Re: Height Field with Image Map texture
Date: 9 Dec 1998 09:56:48
Message: <366E8FE0.53C0133F@trw.com>
Thanks for the help. I made the changes you recommended, but with one slight
difference. I had to scale the image by a factor of two(x&y), which makes sense
being that the original problem I had was the image covered only one quad of the
height field. No rotation was necessary in this case.

Nieminen Mika wrote:

> Peter Hale <pet### [at] trwcom> wrote:
> : I have taken a photo of a person and created a grayscale version of the
> : face. Using this as the Height Field input I tried to place the photo of
> : the person as the texture. The image map is specified as use once. The
> : results I recieve is the photo image being rendered to the +x,+y quad,
> : leaving the remaining three quads with no texture.
>
>   Scale and translate are the keywords.
>   You can make it for example this way: Translate the heightfield so that
> its corner is at the origin and scale it so that it's sized 1x1 (if I
> remember right, this is the default without translations or scales).
> Then apply the texture and translate and scale it (the texture) so that
> its corner is also at the origin and its dimensions are equal to the
> heightfield dimensions. (If I still remember right, you have also to rotate
> the texture 90 degrees but I suppose you have already guessed that)
>
> --
> main(i){char*_="BdsyFBThhHFBThhHFRz]NFTITQF|DJIFHQhhF";while(i=
> *_++)for(;i>1;printf("%s",i-70?i&1?"[]":" ":(i=0,"\n")),i/=2);} /*- Warp. -*/


Post a reply to this message

From: Jaen G 
Subject: Re: Height Field with Image Map texture
Date: 21 Dec 1998 12:42:20
Message: <367E8FED.1925@planeteer.com>
Peter Hale wrote:
> 
> Thanks for the help. I made the changes you recommended,....
> >   Scale and translate are the keywords.
> >   You can make it for example this way: Translate the heightfield so that....

Hi-I'm just interested in what kind of texture results from this process
using a photo before I experiment-  are your results actually like an
emboss or better?
Previously when I have heard the }best people{ using heightfields of
their faces - I just assumed it was a real anachronism - resulting in a
merely exaggerated mountainous landscape.  Could I be missing
something:?)
Jaen


Post a reply to this message

From: Ken
Subject: Re: Height Field with Image Map texture
Date: 21 Dec 1998 19:08:28
Message: <367EE2A7.338B@pacbell.net>
Jaen G. wrote:
> 
> 
> Hi-I'm just interested in what kind of texture results from this process
> using a photo before I experiment-  are your results actually like an
> emboss or better?
> Previously when I have heard the }best people{ using heightfields of
> their faces - I just assumed it was a real anachronism - resulting in a
> merely exaggerated mountainous landscape.  Could I be missing
> something:?)
> Jaen

Experiment away. You can use all kinds of images to create
height fields and you are not limited to making just mountains.
I have used random noise to create grass, cropped images of
a face for a face shaped mountain, cropped a group of fairies
from a fine arts photo, recreated them using a height field,
and placed them in a forrest setting. The possibilities are
endless but the learning curve is a little steep. Best bet is
to just start playing around and see what you can come up
with. A hint to get you going - start with grey scale converted
images rather than the color version. Use the color version
as an image map later for the pigment.

-- 
 Ken Tyler

 tyl### [at] pacbellnet


Post a reply to this message

From: Jaen G 
Subject: Re: Height Field with Image Map texture
Date: 22 Dec 1998 10:07:01
Message: <367FBCC9.79BE@planeteer.com>
Ken wrote:re heightfields from greyscales images
> Experiment away. You can use all kinds of images to create
> height fields and you are not limited to making just mountains.
> I have used random noise to create grass, cropped images of
> a face for a face shaped mountain, cropped a group of fairies
> from a fine arts photo, recreated them using a height field,
> and placed them in a forrest setting. The possibilities are
> endless but the learning curve is a little steep. Best bet is
> to just start playing around and see what you can come up
> with. A hint to get you going - start with grey scale converted
> images rather than the color version. Use the color version
> as an image map later for the pigment.
>  Ken Tyler
>  tyl### [at] pacbellnet
Check- I'll get the B & W scanner working.
Jaen


Post a reply to this message

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