POV-Ray : Newsgroups : povray.advanced-users : contour mapping Server Time
23 Dec 2024 22:26:47 EST (-0500)
  contour mapping (Message 1 to 10 of 13)  
Goto Latest 10 Messages Next 3 Messages >>>
From: Paul Jones
Subject: contour mapping
Date: 5 Dec 2000 08:28:38
Message: <3A2CEC7C.83FC2739@psu.edu>
Anybody have any ideas on how I could make a contour map of a height
field?  I tried trace() and dropping a sphere at a point if it had a
specific Y value, drop enough spheres and test for different heights and
you statrt to get something which is OK, but it take half-past forever.
Any other ideas? maybe a sphere sweep of some kind ??

-paul



--------------------------------------------------}
Paul Daniel Jones
The Pennslyvania State University

pdj### [at] psuedu
http://research.chem.psu.edu/glassgrp/paul

       C            The way is near, but men
     // \           seek it afar. It is in the
    N    N          easy things, but men seek it
    |    ||         in the difficult things.
    C    C          -Menicius
     \\  /
       C
--------------------------------------------------}


Post a reply to this message

From: Jérôme Grimbert
Subject: Re: contour mapping
Date: 5 Dec 2000 09:24:50
Message: <3A2CFAB8.73097DD2@atos-group.com>
Paul Jones wrote:
> 
> Anybody have any ideas on how I could make a contour map of a height
> field?  I tried trace() and dropping a sphere at a point if it had a
> specific Y value, drop enough spheres and test for different heights and
> you statrt to get something which is OK, but it take half-past forever.
> Any other ideas? maybe a sphere sweep of some kind ??
> 

What about the water-level ?
(multiple instance of the height field, each with a different water level,
and a pigment/color map which would be Clear, except around the water level,
with a vertical Gradient)

Or even just a very detailled pigment/color map with a vertical Gradient
applied to just one heightfield.
Using an orthographic camera should also help (direction -y)


Post a reply to this message

From: Christoph Hormann
Subject: Re: contour mapping
Date: 5 Dec 2000 09:28:06
Message: <3A2CFB74.3744C161@gmx.de>
Paul Jones wrote:
> 
> Anybody have any ideas on how I could make a contour map of a height
> field?  I tried trace() and dropping a sphere at a point if it had a
> specific Y value, drop enough spheres and test for different heights and
> you statrt to get something which is OK, but it take half-past forever.
> Any other ideas? maybe a sphere sweep of some kind ??
> 
> -paul
> 

I'm not totally sure what you want to do, but as i understand it, you want
that contour lines only in povray.  

How about just using a partly transparent gradient y texture on the HF.  

If that's not a good solution, it would help a lot if you would say what
you want to use these lines for.

Christoph

-- 
Christoph Hormann <chr### [at] gmxde>
IsoWood include, radiosity tutorial, TransSkin and other 
things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: Warp
Subject: Re: contour mapping
Date: 5 Dec 2000 10:04:52
Message: <3a2d0414@news.povray.org>
Wouldn't a pigment (gradient y?) be enough?

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


Post a reply to this message

From: Warp
Subject: Re: contour mapping
Date: 5 Dec 2000 10:20:10
Message: <3a2d07aa@news.povray.org>
Is this what you call a contour map?

http://www.cs.tut.fi/~warp/contour.jpg

  I made the image with this code:

#version Unofficial MegaPov 0.6;

camera { location <-2,15,-10> look_at 0 angle 35 }
light_source { <50,200,-100>, 1 }

isosurface
{ function { y-noise3d(x,y,z) }
  contained_by { box { <-5,0,-5><5,1,5> } }
  scale <1,4,1>
  pigment
  { gradient y color_map
    { [0 rgb 0][.1 rgb 0]
      [.1 rgb <1,.7,.2>][1 rgb <1,.7,.2>]
    }
    scale <1,.25,1>
  }
  finish { specular .25 }
}


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


Post a reply to this message

From: Paul Jones
Subject: Re: contour mapping
Date: 5 Dec 2000 11:32:43
Message: <3A2D17A0.8989156E@psu.edu>
Sorry.... 

What I want is this: To take a height field, which may or may not be
visible, and to create a series of closed loops, each loop sitting on a
specific elevation and encompasing only one "hill" of the hf. Now,
imagine that I apply a gradient y pigment to the hf, it would be
possible to get this effect, except that I want each "countour line" to
be 3-dimensional, like a pipe. 

One could also envision taking a hf and repeatedly intersecting it with
two plane, so you are left with some thin sliced in the shape of a loop.
I want those loops to be pipes. 

I hope this helps.

paul

Christoph Hormann wrote:
> 
> Paul Jones wrote:
> >
> > Anybody have any ideas on how I could make a contour map of a height
> > field?  I tried trace() and dropping a sphere at a point if it had a
> > specific Y value, drop enough spheres and test for different heights and
> > you statrt to get something which is OK, but it take half-past forever.
> > Any other ideas? maybe a sphere sweep of some kind ??
> >
> > -paul
> >
> 
> I'm not totally sure what you want to do, but as i understand it, you want
> that contour lines only in povray.
> 
> How about just using a partly transparent gradient y texture on the HF.
> 
> If that's not a good solution, it would help a lot if you would say what
> you want to use these lines for.
> 
> Christoph
> 
> --
> Christoph Hormann <chr### [at] gmxde>
> IsoWood include, radiosity tutorial, TransSkin and other
> things on: http://www.schunter.etc.tu-bs.de/~chris/

-- 



--------------------------------------------------}
Paul Daniel Jones
The Pennslyvania State University

pdj### [at] psuedu
http://research.chem.psu.edu/glassgrp/paul

       C            The way is near, but men
     // \           seek it afar. It is in the
    N    N          easy things, but men seek it
    |    ||         in the difficult things.
    C    C          -Menicius
     \\  /
       C
--------------------------------------------------}


Post a reply to this message

From: Paul Jones
Subject: Re: contour mapping
Date: 5 Dec 2000 11:34:54
Message: <3A2D1824.BCC93109@psu.edu>
Warp, that is very close to what I want, but I need (well, _need_ is
subjective :-) the contours to be 3-dimensional, like tubes or sphere
sweeps. In my final image, the actual height-field will not be visible.

-paul

p.s. I like the image :-)

Warp wrote:
> 
>   Is this what you call a contour map?
> 
> http://www.cs.tut.fi/~warp/contour.jpg
> 
>   I made the image with this code:
> 
> #version Unofficial MegaPov 0.6;
> 
> camera { location <-2,15,-10> look_at 0 angle 35 }
> light_source { <50,200,-100>, 1 }
> 
> isosurface
> { function { y-noise3d(x,y,z) }
>   contained_by { box { <-5,0,-5><5,1,5> } }
>   scale <1,4,1>
>   pigment
>   { gradient y color_map
>     { [0 rgb 0][.1 rgb 0]
>       [.1 rgb <1,.7,.2>][1 rgb <1,.7,.2>]
>     }
>     scale <1,.25,1>
>   }
>   finish { specular .25 }
> }
> 
> --
> main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
> ):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/

-- 



--------------------------------------------------}
Paul Daniel Jones
The Pennslyvania State University

pdj### [at] psuedu
http://research.chem.psu.edu/glassgrp/paul

       C            The way is near, but men
     // \           seek it afar. It is in the
    N    N          easy things, but men seek it
    |    ||         in the difficult things.
    C    C          -Menicius
     \\  /
       C
--------------------------------------------------}


Post a reply to this message

From: ingo
Subject: Re: contour mapping
Date: 5 Dec 2000 11:51:17
Message: <Xns9001B57DAseed7@povray.org>
Paul Jones wrote:

>imagine that I apply a gradient y pigment to the hf, it would be
>possible to get this effect, except that I want each "countour line" to
>be 3-dimensional, like a pipe.

Try using "trace" in combination with "evaluate pigment/pattern" to put 
lots of spheres on your HF.

Ingo

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


Post a reply to this message

From: Wlodzimierz ABX Skiba
Subject: Re: contour mapping
Date: 5 Dec 2000 11:56:29
Message: <3a2d1e3d$1@news.povray.org>
Paul Jones wrote in message <3A2D1824.BCC93109@psu.edu>...
>Warp wrote:
> >   Is this what you call a contour map?
> > http://www.cs.tut.fi/~warp/contour.jpg
>
> Warp, that is very close to what I want, but I need (well, _need_ is
> subjective :-) the contours to be 3-dimensional, like tubes or sphere
> sweeps. In my final image, the actual height-field will not be
visible.


he show you proper way
just use gradient y with color map [0 black] [0.9 black][0.9 white][1
white]
and find tool in povray/links or in news/binaries which convert
ouputed image to array in pov
(I don't remeber name nor author)
than run loop which puts sphere on pixels (array entries) different than
black
or use even spline for neighbours

ABX


Post a reply to this message

From: Wlodzimierz ABX Skiba
Subject: Re: contour mapping
Date: 5 Dec 2000 12:02:50
Message: <3a2d1fba@news.povray.org>
Wlodzimierz ABX Skiba wrote in message <3a2d1e3d$1@news.povray.org>...
> and find tool in povray/links or in news/binaries which convert
> ouputed image to array in pov
> (I don't remeber name nor author)


but I have net :-)
http://www.coe.uncc.edu/~adwoodfi/tga.html

ABX


Post a reply to this message

Goto Latest 10 Messages Next 3 Messages >>>

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