POV-Ray : Newsgroups : povray.general : Height fields Server Time
10 Aug 2024 13:17:59 EDT (-0400)
  Height fields (Message 9 to 18 of 18)  
<<< Previous 8 Messages Goto Initial 10 Messages
From: ingo
Subject: Re: Height fields
Date: 20 Jan 2000 07:47:42
Message: <8EC181D42seed7@204.213.191.228>
Remco de Korte wrote:
>...
>Otherwise I have a similar little utility (less powerfull) that'll make
>an INC file of an image, giving you all the data you need. 

Sounds interesting, do you have it on your site?
What I'm actually looking for is something that generates "raw" data: the 
number of horizontal and vertical points and an array of rgb-values.


Ingo

-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message

From: Remco de Korte
Subject: Re: Height fields
Date: 20 Jan 2000 08:11:39
Message: <388708F2.6012D124@xs4all.nl>
ingo wrote:
> 
> Remco de Korte wrote:
> >...
> >Otherwise I have a similar little utility (less powerfull) that'll
> make
> >an INC file of an image, giving you all the data you need.
> 
> Sounds interesting, do you have it on your site?
> What I'm actually looking for is something that generates "raw" data:
> the
> number of horizontal and vertical points and an array of rgb-values.
> 
> Ingo
> 
> --
> Photography: http://members.home.nl/ingoogni/
> Pov-Ray    : http://members.home.nl/seed7/

I haven't tried TGAMosaic (yet); doesn't that do the trick?
Otherwise you can get the utility at my page
(http://www.xs4all.nl/~remcodek/pov.html). Look for ImagInc. It only
supports BMPs right now, but it'll be easy to put in other formats (as I
did with Bumper). The INC-file it spits out has 3 2-dimensional arrays,
for the R-, G-, and B-component of each pixel. You can change the
resolution (use low ones for testing). The melting rings and tentacle
thingies were made with this.

Remco


Post a reply to this message

From: ingo
Subject: Re: Height fields
Date: 20 Jan 2000 08:26:10
Message: <8EC1957A8seed7@204.213.191.228>
Remco de Korte wrote:

>
>I haven't tried TGAMosaic (yet); doesn't that do the trick?

No, it doesn't do an array, it writes objects with colours directly.

>Otherwise you can get the utility at my page
>(http://www.xs4all.nl/~remcodek/pov.html). Look for ImagInc. ...

Got it and exploring now. Thank you.

Ingo

-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message

From: Nieminen Juha
Subject: Re: Height fields
Date: 20 Jan 2000 09:14:15
Message: <38871837@news.povray.org>
Peter Popov <pet### [at] usanet> wrote:
: You can do it in the official version but it's quite a heavier
: solution than using trace(). Convert the hf source picture to ppm,
: then use search/replace to replace all white space with commas, and
: then use the file i/o functions in POV to read it into a 2D array.

  Getting the height in-between the pixels requires some math.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Margus Ramst
Subject: Re: Height fields
Date: 20 Jan 2000 09:59:27
Message: <38872345.8A060BD1@peak.edu.ee>
True. However, you would have to do interpolation for intermediate values. And
finding the surface normal will be a bit more difficult, if required.

Margus

Peter Popov wrote:
> 
> On Wed, 19 Jan 2000 20:21:21 -0500, Andrea Ryan <ary### [at] global2000net>
> wrote:
> 
> >Is there any way of finding the height of a height field at a given
> >point?
> >Brendan Ryan
> 
> You can do it in the official version but it's quite a heavier
> solution than using trace(). Convert the hf source picture to ppm,
> then use search/replace to replace all white space with commas, and
> then use the file i/o functions in POV to read it into a 2D array.
> 
> Peter Popov
> pet### [at] usanet
> ICQ: 15002700


Post a reply to this message

From: Bob Hughes
Subject: Re: Height fields
Date: 20 Jan 2000 10:08:26
Message: <388724ea@news.povray.org>
This sounds like it has potential to do many things, thanks for sharing it.

Bob

"Remco de Korte" <rem### [at] xs4allnl> wrote in message
news:388708F2.6012D124@xs4all.nl...
| ingo wrote:
| >
| > Remco de Korte wrote:
| > >...
| > >Otherwise I have a similar little utility (less powerfull) that'll
| > make
| > >an INC file of an image, giving you all the data you need.
| >
| > Sounds interesting, do you have it on your site?
| > What I'm actually looking for is something that generates "raw" data:
| > the
| > number of horizontal and vertical points and an array of rgb-values.
| >
| > Ingo
| >
| > --
| > Photography: http://members.home.nl/ingoogni/
| > Pov-Ray    : http://members.home.nl/seed7/
|
| I haven't tried TGAMosaic (yet); doesn't that do the trick?
| Otherwise you can get the utility at my page
| (http://www.xs4all.nl/~remcodek/pov.html). Look for ImagInc. It only
| supports BMPs right now, but it'll be easy to put in other formats (as I
| did with Bumper). The INC-file it spits out has 3 2-dimensional arrays,
| for the R-, G-, and B-component of each pixel. You can change the
| resolution (use low ones for testing). The melting rings and tentacle
| thingies were made with this.
|
| Remco


Post a reply to this message

From: Remco de Korte
Subject: Re: Height fields
Date: 20 Jan 2000 10:39:18
Message: <38872B8D.5116B2FD@xs4all.nl>
Bob Hughes wrote:
> 
> This sounds like it has potential to do many things, thanks for
> sharing it.
> 
> Bob
> 
I don't know how useful it is to others, especially since I had the
impression it did just a fraction of what TGAMosaic did. If there's any
need for it I can make some changes so it'll work better for other
people. I live on feedback ;)

Remco


Post a reply to this message

From: Peter Popov
Subject: Re: Height fields
Date: 21 Jan 2000 04:30:58
Message: <tR2IOLcYR+eEl80C2A2gPX3lgyJJ@4ax.com>
On Thu, 20 Jan 2000 17:01:25 +0200, Margus Ramst <mar### [at] peakeduee>
wrote:

>True. However, you would have to do interpolation for intermediate values. And
>finding the surface normal will be a bit more difficult, if required.

Margus and Warp, that's why I said it would be a heavier solution :)


Peter Popov
pet### [at] usanet
ICQ: 15002700


Post a reply to this message

From: Margus Ramst
Subject: Re: Height fields
Date: 21 Jan 2000 16:05:55
Message: <3888CAA6.AA02F8FF@peak.edu.ee>
Peter Popov wrote:
> 
> Margus and Warp, that's why I said it would be a heavier solution :)
> 

Yeah, I know. Just showing I'm informed here ;)

Margus


Post a reply to this message

From: Greg M  Johnson
Subject: Re: Height fields
Date: 21 Jan 2000 16:21:03
Message: <3888CCED.5022B85A@my-dejanews.com>
Get the superpatch or megapov versions of povray  and use the trace
function.

Andrea Ryan wrote:

> Is there any way of finding the height of a height field at a given
> point?
> Brendan Ryan


Post a reply to this message

<<< Previous 8 Messages Goto Initial 10 Messages

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