POV-Ray : Newsgroups : povray.general : Height field as displacement map? Server Time
19 Nov 2024 07:25:04 EST (-0500)
  Height field as displacement map? (Message 1 to 4 of 4)  
From: FlyerX
Subject: Height field as displacement map?
Date: 29 Apr 2002 01:24:42
Message: <Xns91FF3F22C4E6flyerx@204.213.191.226>
Hello,

I am wondering something about the heightfield in POV-Ray 3.5. Is there a 
way to use a height field as a displacement map? That would require the 
height field to wrap an object using the object's UV coordinates just like 
an image map.

thanks for any info on this,

FlyerX


Post a reply to this message

From: Hugo
Subject: Re: Height field as displacement map?
Date: 29 Apr 2002 03:53:40
Message: <3cccfc04@news.povray.org>
> I am wondering something about the heightfield in POV-Ray 3.5. Is there a
> way to use a height field as a displacement map? That would require the
> height field to wrap an object using the object's UV coordinates just like
> an image map.

I suppose you mean *real* surface displacement - they're easier to fake. But
with an isosurface you can apply a displacement map to any shape. The tricky
thing will be UV mapping. Isosurfaces don't have UV coordinates. The only
other approch I can think of, is to tesselate an object (the tesselation
patch will soon be released). After this you have a grid of points that
follows the original objects shape.. And then it's easy to wrap a
heightfield around those points - with UV mapping included.

So for now, it's not easily going to work.. Unless UV are not so important
to you, then isosurfaces is the answer.

Regards,
Hugo


Post a reply to this message

From: Christoph Hormann
Subject: Re: Height field as displacement map?
Date: 29 Apr 2002 11:27:53
Message: <3CCD6679.9CC33D3F@gmx.de>
FlyerX wrote:
> 
> Hello,
> 
> I am wondering something about the heightfield in POV-Ray 3.5. Is there a
> way to use a height field as a displacement map? That would require the
> height field to wrap an object using the object's UV coordinates just like
> an image map.

Sounds strange and does not make much sense to me, but you are probably
looking for something like the HF macros in POV-Ray 3.5.

See file 'shapes.inc'.

Christoph

-- 
POV-Ray tutorials, IsoWood include,                 
TransSkin and more: http://www.tu-bs.de/~y0013390/  
Last updated 26 Apr. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: Hugo
Subject: Re: Height field as displacement map?
Date: 30 Apr 2002 05:43:51
Message: <3cce6757@news.povray.org>
> Sounds strange and does not make much sense to me, but you are probably
> looking for something like the HF macros in POV-Ray 3.5.

Well, it does not sound so strange to me. Surface displacement with UV
coordinates, could easily spice up any shape, most useful with image_maps of
course.. Lets take an example: A brick wall.. Make the wall round / any
shape you want, and apply a bump-map only this time it's real bumps..

But often, it's probably meant as a faster way to model, than .. for example
a macro to place each brick.. Though there are some more advanced bump
textures that would be real hard to "macro-nize"..

I think.. ;o)
Hugo


Post a reply to this message

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