Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

POV- Multilayer textures

0 views
Skip to first unread message

Todd Pattist

unread,
Jan 26, 1996, 3:00:00 AM1/26/96
to
I'm trying to do a multilayer texture for a landscape based on a USGS
DEM height field. The two layers are 1. a .tga image map with roads
and lake info, and 2. a gradient * y color map that shows the
elevation of the landscape with color.

I understand I need to use the filter parameter for my pigment, but
I've tried "filter all" for the image_map and rgbf<r,g,b,f>for the
elements of the gradient color map, but I can't seem to get a combined
layered texture. Either I get one texture (all color gradient) or the
other (map info only). Any suggestions?


Yann Coupin

unread,
Jan 27, 1996, 3:00:00 AM1/27/96
to
In article <4eb7e7$n...@news.iconn.net>, Todd Pattist (pat...@ix.netcom.com)
says...

U should use a gif file and a texture_map with one color corresponding to the
road texture, another one, to water, and the last one to a gradient (better
with some crand)

Hope it'll help, Yann.
--
\----------------------\----------------------------\
\ Yann Coupin / France \ 10066...@compuserve.com \
\----------------------\----------------------------\
\ Mads are usefull, they're a proof we aren't too \
\---------------------------------------------------\


Todd Pattist

unread,
Jan 29, 1996, 3:00:00 AM1/29/96
to
10066...@compuserve.com (Yann Coupin) wrote:

>>I'm trying to do a multilayer texture for a landscape based on a USGS
>>DEM height field. The two layers are 1. a .tga image map with roads
>>and lake info, and 2. a gradient * y color map that shows the
>>elevation of the landscape with color.
>>
>>I understand I need to use the filter parameter for my pigment, but
>>I've tried "filter all" for the image_map and rgbf<r,g,b,f>for the
>>elements of the gradient color map, but I can't seem to get a combined
>>layered texture. Either I get one texture (all color gradient) or the
>>other (map info only). Any suggestions?
>>

>U should use a gif file and a texture_map with one color corresponding to the
>road texture, another one, to water, and the last one to a gradient (better
>with some crand)

Perhaps I need to be more specific, as I'm not sure I understand your
suggestion.

I'm trying to produce a 3-d image of a real landscape (based on
elevation data) that conveys certain information to the viewer. The
image starts with a height field. I want the user (a pilot who will
fly over this real terrain) to be able to see 1) where the roads and
water and powerlines and other real features are, and 2) how high the
mountains and ground features are. The road and water and
miscellaneous other features are part of a targa image that shows the
same geographical area and which is applied as pigment to the height
field through an image_map. That works fine.

The elevation data is visible in the 3-d image, of course, but I want
it marked in colors. I did this with a gradient y function. and a
color map. Everything from 1000 feet to 2000 feet in elevation is
green, everything from 2000 to 3000 is orange, etc. This also worked
fine, but I couldn'et get both shown simultaneously. I want the color
from the gradient map to tint the color from the 3-d image so that a
road climbing up a hill has a slight green tint below 2000' elevation
and a slight orange tint above that.

I assumed I need to use "filter" in some way to make one of the
pigments transparent, but I could use some hints on how.


Andreas Dilger

unread,
Feb 1, 1996, 3:00:00 AM2/1/96
to
In article <4ej80s$t...@news.iconn.net>,

Todd Pattist <pat...@ix.netcom.com> wrote:
>The elevation data is visible in the 3-d image, of course, but I want
>it marked in colors. I did this with a gradient y function. and a
>color map. Everything from 1000 feet to 2000 feet in elevation is
>green, everything from 2000 to 3000 is orange, etc. This also worked
>fine, but I couldn'et get both shown simultaneously. I want the color
>from the gradient map to tint the color from the 3-d image so that a
>road climbing up a hill has a slight green tint below 2000' elevation
>and a slight orange tint above that.
>
>I assumed I need to use "filter" in some way to make one of the
>pigments transparent, but I could use some hints on how.

The filter will only work if you have a palette based (colormapped)
images, so your "culture data" (ie the 3D surface data) needs to be
converted to a GIF or paletted TGA image. If you make this partially
transparent (via filter all - maybe 0.3), then you should be able to see the
altitude coloring from below. Have a look at sunsethf.pov in the demo
directory for the basic heightfield/imagemap combination - although I
think you already have this part working.

Cheers, Andreas.
--
Andreas Dilger University of Calgary \"If a man ate a pound of pasta and
(403) 220-8792 Micronet Research Group \ a pound of antipasto, would they
Dept of Electrical & Computer Engineering \ cancel out, leaving him still
http://www-mddsp.enel.ucalgary.ca/People/adilger/ hungry?" -- Dogbert

Terry Brown

unread,
Feb 4, 1996, 3:00:00 AM2/4/96
to
Todd Pattist wrote:

> >>I'm trying to do a multilayer texture for a landscape based on a USGS
> >>DEM height field. The two layers are 1. a .tga image map with roads

Check out

http://tbrown.lvlham.lincoln.ac.nz:80/~tb/mapsph.pov

(I'll mail it to you if you (shudder) don't have WWW access, I _think_
that's what you are trying to do?

Cheers -tb

-----------------------------------------------------------------------
Terry Brown email: br...@lvlham.lincoln.ac.nz
Lincoln Environmental http://tbrown.lvlham.lincoln.ac.nz/~tb
Private Bag 3062 Hamilton Ph. +64 7 838 5901 W +64 7 855 9001 H
New Zealand Fax +64 7 838 5372

0 new messages