|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |