POV-Ray : Newsgroups : povray.general : Terrain Image Map Dumb Question Server Time
7 Aug 2024 01:22:49 EDT (-0400)
  Terrain Image Map Dumb Question (Message 1 to 6 of 6)  
From: Mitchell Waite
Subject: Terrain Image Map Dumb Question
Date: 30 Dec 2001 13:59:15
Message: <3c2f6403@news.povray.org>
I want to map my color aerial photo on a height field. When I do it, the
image is tiled so that there are four images on the image map instead of
one. Can anyone tell me how to stop the tiling and get it to just stretch
the image map over the entire height map?

thanks

Mitch
former publisher of Pay Tracing Cerations (with POV Ray)


Post a reply to this message

From: Gilles Tran
Subject: Re: Terrain Image Map Dumb Question
Date: 30 Dec 2001 14:16:49
Message: <3c2f6821$1@news.povray.org>

3c2f6403@news.povray.org...
> I want to map my color aerial photo on a height field. When I do it, the
> image is tiled so that there are four images on the image map instead of
> one. Can anyone tell me how to stop the tiling and get it to just stretch
> the image map over the entire height map?

Try this :
height_field {
  png "plasma3.png"
  texture {
    pigment {
      image_map { png "plasma3.png" map_type 0 interpolate 2 once }
      rotate x*90 // lay X-Y image map down onto X-Z height field plane
    }
  }
}

> Mitch
> former publisher of Pay Tracing Cerations (with POV Ray)

You mean you're one the guys who started all this craziness ??? I got hooked
with Image Lab in 1993... I probably should thank you then :)

G.

--

**********************
http://www.oyonale.com
**********************
- Graphic experiments
- POV-Ray and Poser computer images
- Posters


Post a reply to this message

From: JRG
Subject: Re: Terrain Image Map Dumb Question
Date: 30 Dec 2001 14:23:58
Message: <3c2f69ce@news.povray.org>
Follow Gilles' advice. Then, if you want to, scale it after the texture block.

--
camera{location-2*z look_at.0}#local j=text{ttf"arial""JRG".2,0};
#local J=0;#while(J<10)#local R=0;#while(R<2)#local G=0;#while(G<1)
#if(inside(j,R*x+G*y+.1*z))object{j scale.025translate(R-1)*x+(G-J
/20)*y-J/40*z pigment{rgb+x+J/10*y}finish{ambient 1}}#debug"O"#else#debug" "
#end#local G=G+.025;#end#local R=R+.05;#debug"\n"#end#local J=J+1;#end// JRG

Home: http://digilander.iol.it/jrgpov


Post a reply to this message

From: JRG
Subject: Re: Terrain Image Map Dumb Question
Date: 30 Dec 2001 14:51:28
Message: <3c2f7040@news.povray.org>
Ouch! Please, binaries attachments (especially this size) are not allowed here.
Convert your images to jpeg first and post your scene files to
povray.binaries.scene-files.

--
camera{location-2*z look_at.0}#local j=text{ttf"arial""JRG".2,0};
#local J=0;#while(J<10)#local R=0;#while(R<2)#local G=0;#while(G<1)
#if(inside(j,R*x+G*y+.1*z))object{j scale.025translate(R-1)*x+(G-J
/20)*y-J/40*z pigment{rgb+x+J/10*y}finish{ambient 1}}#debug"O"#else#debug" "
#end#local G=G+.025;#end#local R=R+.05;#debug"\n"#end#local J=J+1;#end// JRG

Home: http://digilander.iol.it/jrgpov


Post a reply to this message

From: Warp
Subject: Re: Terrain Image Map Dumb Question
Date: 30 Dec 2001 14:53:38
Message: <3c2f70c2@news.povray.org>
Please cancel this post. It's prohibited to post binary attachments
(specially as big as this one) to a non-binaries group.

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Mitchell Waite
Subject: Apology: Terrain Image Map Dumb Question
Date: 30 Dec 2001 18:03:44
Message: <3c2f9d50@news.povray.org>
My apologies, that was really dumb of me.

Mitch


"JRG" <jrg### [at] hotmailcom> wrote in message
news:3c2f7040@news.povray.org...
> Ouch! Please, binaries attachments (especially this size) are not allowed
here.
> Convert your images to jpeg first and post your scene files to
> povray.binaries.scene-files.
>
> --
> camera{location-2*z look_at.0}#local j=text{ttf"arial""JRG".2,0};
> #local J=0;#while(J<10)#local R=0;#while(R<2)#local G=0;#while(G<1)
> #if(inside(j,R*x+G*y+.1*z))object{j scale.025translate(R-1)*x+(G-J
> /20)*y-J/40*z pigment{rgb+x+J/10*y}finish{ambient 1}}#debug"O"#else#debug"
"
> #end#local G=G+.025;#end#local R=R+.05;#debug"\n"#end#local J=J+1;#end//
JRG
>
> Home: http://digilander.iol.it/jrgpov
>
>
>


Post a reply to this message

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