POV-Ray : Newsgroups : povray.newusers : draping image over height field Server Time
13 Nov 2024 22:22:56 EST (-0500)
  draping image over height field (Message 1 to 10 of 12)  
Goto Latest 10 Messages Next 2 Messages >>>
From: Eric Fielding
Subject: draping image over height field
Date: 11 Jul 2000 11:19:52
Message: <396B3B20.D5865411@sierras.jpl.nasa.gov>
Hi Folks,

I just downloaded POV Ray 3.1g.r2 for the Mac, and I read through the
documentation to see if there was an easy way to drape a full-color
image over a height field. I didn't see any recipe. 

I have a full-color (satellite) image that is co-registered to a height
field (a real digital elevation model). The two have the same pixel
size, etc. How can I tell POV Ray that the image and height field have
the same size?  

Also does POV Ray support any image formats other than TARGA?

Thanks.

					++Eric Fielding


Post a reply to this message

From: Bob Hughes
Subject: Re: draping image over height field
Date: 11 Jul 2000 11:40:04
Message: <396b3fd4@news.povray.org>
"Eric Fielding" <eri### [at] sierrasjplnasagov> wrote in message
news:396B3B20.D5865411@sierras.jpl.nasa.gov...
|
| I just downloaded POV Ray 3.1g.r2 for the Mac, and I read through the
| documentation to see if there was an easy way to drape a full-color
| image over a height field. I didn't see any recipe.
|
| I have a full-color (satellite) image that is co-registered to a height
| field (a real digital elevation model). The two have the same pixel
| size, etc. How can I tell POV Ray that the image and height field have
| the same size?
|
| Also does POV Ray support any image formats other than TARGA?

Hi Eric, yes, PNG.  Or at least it should on your Mac version too I would
expect.
Just remember that image_map and height_field are on two different planes.
Images go onto the xy plane and HF onto the xz plane.  So you will need to
rotate the image down onto the HF by doing a rotate 90*x in the pigment
statement.
Short example:

height_field { tga "dempic.tga"  // the dem data
  pigment {
   image_map { tga "picdem.tga"}  // the satellite image
   rotate 90*x }  // fold image over onto HF surface (both are 1 unit square)
 scale <300,3,300> // xz resolution (width/height) of images used, y being
vertical scale size
}

Both start out square with their lower-left and near-left corners at <0,0,0>
so to scale up will go to that number of units far-right on the xz plane.
Doing a translate <-0.5,0,-0.5> before the scaling will center it.
Hope that's of some use to you.

Bob


Post a reply to this message

From: Tom Melly
Subject: Re: draping image over height field
Date: 11 Jul 2000 12:04:51
Message: <396b45a3$1@news.povray.org>
> "Eric Fielding" <eri### [at] sierrasjplnasagov> wrote in message
> news:396B3B20.D5865411@sierras.jpl.nasa.gov...

.... hmm, NASA. Thank god POV doesn't support inches and centimeters ;)


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: draping image over height field
Date: 11 Jul 2000 14:52:33
Message: <396b6cf1$1@news.povray.org>
In article <396B3B20.D5865411@sierras.jpl.nasa.gov> , Eric Fielding 
<eri### [at] sierrasjplnasagov>  wrote:

> Also does POV Ray support any image formats other than TARGA?

Of course it does.  Go to Edit-> Render Settings->Output->Save Image As.

You find a full explanation of the various settings in the file "POV-Ray
MacOS Read Me" in the Documentation folder.  The complete manual for POV-Ray
is in the file "pov.doc".


     Thorsten


____________________________________________________
Thorsten Froehlich
e-mail: mac### [at] povrayorg

I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Christoph Hormann
Subject: Re: draping image over height field
Date: 11 Jul 2000 15:36:06
Message: <396B7727.36501E03@schunter.etc.tu-bs.de>
Eric Fielding wrote:
> 
[...]
>
> I have a full-color (satellite) image that is co-registered to a height
> field (a real digital elevation model). The two have the same pixel
> size, etc. How can I tell POV Ray that the image and height field have
> the same size?
> 

You will probably also recognize some other problems using satellite images, for
example they already have some shading because of the sun lighting that will
interfere with the povray light.  Never the less it can lead to impressive
pictures.  

Hope to see some results of you soon :-)

Christoph

--
Christoph Hormann <chr### [at] gmxde>
Homepage: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: Eric Fielding
Subject: Re: draping image over height field
Date: 11 Jul 2000 23:55:24
Message: <396BE9AC.3BBBEB2C@sierras.jpl.nasa.gov>
Tom Melly wrote:
> 
> > "Eric Fielding" <eri### [at] sierrasjplnasagov> wrote in message
> > news:396B3B20.D5865411@sierras.jpl.nasa.gov...
> 
> .... hmm, NASA. Thank god POV doesn't support inches and centimeters ;)

Thanks for remembering ;-).

Seriously, this brings up the question of what the POV units do
represent. I guess they are normalized somehow? Maybe I read the
documentation too fast...

			++Eric


Post a reply to this message

From: Eric Fielding
Subject: Re: draping image over height field
Date: 11 Jul 2000 23:55:26
Message: <396BEB7C.C96D9B77@sierras.jpl.nasa.gov>
Bob Hughes wrote:
> 
> | Also does POV Ray support any image formats other than TARGA?
> 
> Hi Eric, yes, PNG.  Or at least it should on your Mac version too I would
> expect.

Thorsten Froehlich wrote:
> 
> Of course it does.  Go to Edit-> Render Settings->Output->Save Image As.

I see PICT (MacOS), PNG, Targa, PPM, and QuickTime (MacOS). I was hoping
for TIFF or JPEG since those are the ones I use most, but I think I can
get my images into PNG or PPM format.

I assume that POV can read all of the formats that it can write (except
QuickTime, of course)?

> Just remember that image_map and height_field are on two different planes.
> Images go onto the xy plane and HF onto the xz plane.  So you will need to
> rotate the image down onto the HF by doing a rotate 90*x in the pigment
> statement.
> Short example:
> 
> height_field { tga "dempic.tga"  // the dem data
>   pigment {
>    image_map { tga "picdem.tga"}  // the satellite image
>    rotate 90*x }  // fold image over onto HF surface (both are 1 unit square)
>  scale <300,3,300> // xz resolution (width/height) of images used, y being
> vertical scale size
> }
> 
> Both start out square with their lower-left and near-left corners at <0,0,0>
> so to scale up will go to that number of units far-right on the xz plane.
> Doing a translate <-0.5,0,-0.5> before the scaling will center it.
> Hope that's of some use to you.

This looks like exactly what I need to get started. Thanks!!

Cheers,

				++Eric


Post a reply to this message

From: Bob Hughes
Subject: Re: draping image over height field
Date: 12 Jul 2000 00:08:19
Message: <396bef33@news.povray.org>
"Eric Fielding" <eri### [at] sierrasjplnasagov> wrote in message
news:396BEB7C.C96D9B77@sierras.jpl.nasa.gov...
|
| I see PICT (MacOS), PNG, Targa, PPM, and QuickTime (MacOS). I was hoping
| for TIFF or JPEG since those are the ones I use most, but I think I can
| get my images into PNG or PPM format.
|
| I assume that POV can read all of the formats that it can write (except
| QuickTime, of course)?

Jpeg format has always been tossed about as something POV-Ray should have (not
by any developers I suppose though?) but it always comes down to the fact it
is such a lossy file format it gets passed by.
I think you're safe to say that anything it outputs it reads as well.  People
have also talked plenty about a Mpeg or Avi output for the Windows platform
(among others too I guess).  Same subject comes up though about doing a
lengthy hard-working rendering of frames only to end up with a possible
problem dealing with compressed images and no way to get back to original
uncompressed images.
Call it fool-proofing if you will  :-)
Happy to hear you are getting to where you're going there.

Bob


Post a reply to this message

From: Chris Huff
Subject: Re: draping image over height field
Date: 12 Jul 2000 00:09:33
Message: <chrishuff-1C1285.23095511072000@news.povray.org>
In article <396BE9AC.3BBBEB2C@sierras.jpl.nasa.gov>, Eric Fielding 
<eri### [at] sierrasjplnasagov> wrote:

> Seriously, this brings up the question of what the POV units do
> represent. I guess they are normalized somehow? Maybe I read the
> documentation too fast...

They really just represent whatever you want...they don't correspond to 
any actual physical measure. They are just "POV-Units".

-- 
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/


Post a reply to this message

From: Chris Huff
Subject: Re: draping image over height field
Date: 12 Jul 2000 00:16:42
Message: <chrishuff-B4DD0A.23170311072000@news.povray.org>
In article <396BEB7C.C96D9B77@sierras.jpl.nasa.gov>, Eric Fielding 
<eri### [at] sierrasjplnasagov> wrote:

> I see PICT (MacOS), PNG, Targa, PPM, and QuickTime (MacOS). I was hoping
> for TIFF or JPEG since those are the ones I use most, but I think I can
> get my images into PNG or PPM format.
> 
> I assume that POV can read all of the formats that it can write (except
> QuickTime, of course)?

It can read PICT on the Mac version(as "sys"), PNG, TGA, POT, PPM, IFF, 
PGM, and GIF. GIF support may be dropped in future versions due to 
problems with the Unisys patent, and JPEG input will likely be added(but 
not output).

-- 
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/


Post a reply to this message

Goto Latest 10 Messages Next 2 Messages >>>

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