POV-Ray : Newsgroups : povray.binaries.scene-files : heightfield? Server Time
19 May 2024 15:28:27 EDT (-0400)
  heightfield? (Message 6 to 15 of 15)  
<<< Previous 5 Messages Goto Initial 10 Messages
From: Jerry Anning
Subject: Re: heightfield?
Date: 3 Feb 1998 13:01:15
Message: <34D75B5F.5C9703CF@dhol.com>
GrimDude wrote:

>  Using a global setting of "hf_gray_16" aids in creating a smooth and
> precise field. The larger you render the first step the better the
> final
> image will appear (to a point).
>   This may not create an image as you expect it to appear, but it will
>
> nevertheless have three dimensional characteristics. I came up with
> the
> following two files to create hf's from any image. Even a black&white
> image
> can benefit from this process (and has).
>
> On the first pass, use this file to create your height_field input
> file.
> -----
> ----------------------------------------------------------------------
>
> -----------
> // FC_HF.pov
>
> global_settings { max_trace_level 25 assumed_gamma 2.2 hf_gray_16 }
>
> object { box { <-4,-3,1>,<4,3,1.1> } texture {
>    pigment { image_map { tga "FalseColor.tga" once }
>    translate <-.5,-.5,-.5> scale <8,6,1> } } }
>
> camera { location <0,0,-5> direction z look_at 0 }
> light_source { <0,0,-65500> color rgb 1 }
> -----------------------------------------
> ----------------------------------
> -----------
> Then, use this file to finish it up.
> ------------------------------------
> ---------------------------------------
> -----------
> // Final.pov
> height_field { tga "FC_HF.tga" smooth rotate -90*x
> texture { pigment { image_map { tga "FalseColor.tga map_type 0 once }
> } }
> translate <-.5,-.5,-.5> scale <8,1,6> translate 1*z }
>
> camera { location <0,0,-5> direction z look_at 0 }
> light_source { <0,0,-65500> color rgb 1 }
> -----------------------------------------
> ----------------------------------
> -----------
> Additionally, you can rotate the height_field in the final source in
> order
> to see the 3D effects.
> --
> Paul Hinds
> gri### [at] swbellnet

Good files, Grimdude, but, especially for a case where you are trying to
accurately render a dataset, I recommend that you create the height
field with an orthographic camera and ambient 1.0 to avoid false
perspective and shading artifacts.  This also makes it easy to make the
height field exactly fit the false color image.  Also, if you set
assumed_gamma to 1.0 and set display_gamma to 2.2 (or 1.8 or whatever)
in your .ini file, your colors will have better dynamic range, there
will be less need for pumping color values over 1 (and losing some
detail), and people with nonClone machines will be able to run your
POV's and get the same results as you.  I posted a .zip a day or two ago
that illustrates these things if you are interested.  Aside from these
quibbles, it uses the same basic two step approach you describe.

Jerry Anning
cle### [at] dholcom


Post a reply to this message

From: GrimDude
Subject: Re: heightfield?
Date: 3 Feb 1998 16:29:24
Message: <34d79c0d.0@news.povray.org>
Oh, you mean the 345Kb thing? Heh, I was afraid to look :)

--
Paul Hinds
gri### [at] swbellnet


Post a reply to this message

From: Jerry Anning
Subject: Re: heightfield? (345k zip)
Date: 2 Feb 1998 18:45:35
Message: <34D65A92.3BEB5CC9@dhol.com>
Bob Ratliff wrote:

>    I am having a similar problem.  I am working on a project to use
> POV-Ray
> in Radio Astronomy.  My problem is that I have a "contour map" in
> false
> color that I want to use as my height field.  That way, I can get a
> good
> estimate of the shape of the radio source.  Do you know of anyway to
> do
> this?  I am basically wanting to turn a 2d map into a 3d contour map.

The first thing is that, if possible, the *brightness* of your false
color should correspond to the parameter that you want to map.  Given
that, the higher the resolution (the larger the size), the smoother your
image will be.  What you do, basically, is first, use the false color
image to make a special format gray scale height field map.  Then, you
use that to render the height field and lay the original false color
image on it.  The accompanying .zip file contains an example of the
process.  Gradmap.tga was randomly splotted together in CorelPaint.
Call that our original false color contour map.  It was fed to
gradhgt.pov, which was rendered with gradhgt.ini.  This produced
gradhgt.tga, a 16 bit grayscale height field map.  Using gradhgt.tga to
form the height field and gradmap.tga to color it, the final image,
gradimg.tga. was produced with gradimg.pov and gradimg.ini.  I used
POVWin to do this, but any version of POV would work.  Email if you need
a hand or more info.  This is easiest if your original map is square, as
this was, but other aspect ratios can be accommodated.  Good luck.

Jerry Anning
cle### [at] dholcom


Post a reply to this message


Attachments:
Download 'htfields.zip' (345 KB)

From: Bob Ratliff
Subject: Re: heightfield? (345k zip)
Date: 4 Feb 1998 07:33:54
Message: <34d86d63.0@news.povray.org>
Jerry, et al..

   Thanks for the information and the files.  I will see if what I can do
using them and let you know how it goes.  I am also trying to do the
same thing using Hi-Q which my boss thinks might do it easier, but if
it is easier, I have yet to find a way ;)

Thanks,

Bob Ratliff
Systems Administrator
Morehead Astrophysical Observatory
Morehead State University


Post a reply to this message

From: Tristan Wibberley
Subject: RTFM (was RE:heightfield?)
Date: 9 Feb 1970 13:43:57
Message: <01bd3581$f6264b40$181657a8@W_tristan.gb.tandem.com>
Joe Conklin <spa### [at] csrlinknet> wrote in article
<34d5373f.0@news.povray.org>...
| what are they what do they do?
| 
| 
| --
| http://www.geocities.com/siliconvalley/horizon/7128
| visit and sign the book
| remove "spam" to reply
|                                                                     Joe
| 
| 
|


Post a reply to this message

From: Kent Friberg
Subject: Feeling good-natured today ?? (was: RTFM (was RE:heightfield?))
Date: 9 Feb 1998 16:28:03
Message: <34df82f9.0@news.povray.org>
>>Joe Conklin wrote
>> what are they what do they do?

>Tristan Wibberley wrote :
>RTFM

How nice !!! Especially after there have been numerous responds giving very
detailed explanations.......
-----
- K-
-----


Post a reply to this message

From: Tristan Wibberley
Subject: Re: Feeling good-natured today ?? (was: RTFM (was RE:heightfield?))
Date: 11 Feb 1970 06:16:56
Message: <01bd36d5$de1cb840$181657a8@W_tristan.gb.tandem.com>
Sorry to all who I may have insulted.

I got up on the wrong side of the bed that day, and there is a wall there,
so I had a headache ;-)

I also had no sleep the night before (dunno why, I just couldn't)

what I really meant was just RTM, 'cos I found it useful.


-- 
Tristan Wibberley

(Remove the '.NO_LUNCHEON_MEAT' from my
email address to reply.)

Kent Friberg <kef### [at] NoSpamThanxonlineno> wrote in article
<34df82f9.0@news.povray.org>...
| >>Joe Conklin wrote
| >> what are they what do they do?
| 
| >Tristan Wibberley wrote :
| >RTFM
| 
| How nice !!! Especially after there have been numerous responds giving
very
| detailed explanations.......
| -----
| - K-
| -----
| 
| 
| 
| 
| 
|


Post a reply to this message

From: Kent Friberg
Subject: Re: Feeling good-natured today ?? (was: RTFM (was RE:heightfield?))
Date: 11 Feb 1998 10:16:55
Message: <34e1e3e9.0@news.povray.org>
Tristan Wibberley wrote in message
<01bd36d5$de1cb840$181657a8@W_tristan.gb.tandem.com>...
>Sorry to all who I may have insulted.
>I got up on the wrong side of the bed that day, and there is a wall there,
>so I had a headache ;-)
>I also had no sleep the night before (dunno why, I just couldn't)
>what I really meant was just RTM, 'cos I found it useful.

Well, we all have our bad days I suppose, and yeah, there is a slight
difference between RTM&RTFM :-)

-and btw RTM *IS* really useful, at least in POV's case ;-)

--
-----
- K-
-----


Post a reply to this message

From: Kent Friberg
Subject: Re: Feeling good-natured today ?? (was: RTFM (was RE:heightfield?))
Date: 11 Feb 1998 10:16:55
Message: <34e1de1e.0@news.povray.org>
Tristan Wibberley wrote in message
<01bd36d5$de1cb840$181657a8@W_tristan.gb.tandem.com>...
>Sorry to all who I may have insulted.
>I got up on the wrong side of the bed that day, and there is a wall there,
>so I had a headache ;-)
>I also had no sleep the night before (dunno why, I just couldn't)
>what I really meant was just RTM, 'cos I found it useful.

Well, we all have our bad days I suppose, and yeah, there is a slight
difference between RTM&RTFM :-)

-and btw RTM *IS* really useful, at least in POV's case ;-)

--
-----
- K-
-----


Post a reply to this message

From: david sharp
Subject: Re: heightfield?
Date: 25 Feb 1999 00:52:05
Message: <36D4E3AD.6116@interport.net>
Joe Conklin wrote:
> 
> what are they what 

mostly what.

> do they do?

they definitely do.


Post a reply to this message

<<< Previous 5 Messages Goto Initial 10 Messages

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