POV-Ray : Newsgroups : povray.newusers : Heightfield pattern Server Time
5 Nov 2024 01:22:00 EST (-0500)
  Heightfield pattern (Message 1 to 3 of 3)  
From: Ramanan M G
Subject: Heightfield pattern
Date: 1 Aug 2004 02:44:22
Message: <410c9146@news.povray.org>
I am using HF to depict window curtains. How can I apply, image pattern
with tiling.
    Any help would be appreciated.


Post a reply to this message

From: Hughes, B 
Subject: Re: Heightfield pattern
Date: 2 Aug 2004 00:46:32
Message: <410dc728$1@news.povray.org>
"Ramanan.M.G" <bak### [at] vsnlcom> wrote in message
news:410c9146@news.povray.org...
>     I am using HF to depict window curtains. How can I apply, image
pattern
> with tiling.

Hiya. Image maps are -90 degrees around the x axis compared to the HF
surface, so when you apply:

pigment {
    image_map {
        jpeg "tile.jpg"
    }
    rotate +90*x
}

this will turn it down onto the surface.

The image will tile if the HF size is larger than 1 unit, since both are
initially 1 unit in size. That said, be sure to put a scale <2,1,2> (or
whatever dimensions) before the pigment or texture or material being used,
not afterward. Or... you may scale the pigment smaller... either way you
want.

Note: This will not map onto the actual surface undulations, and only as
though projected onto the HF from above by a HF-sized column of light,
meaning it will stretch downward into the sloped parts. To avoid that you
would need to use uv mapping in another type of object, e.g. a mesh, since
HF's can't be uv mapped.

If there's another way, I'm not able to provide it.

Bob H.


Post a reply to this message

From: Florian Brucker
Subject: Re: Heightfield pattern
Date: 2 Aug 2004 15:35:26
Message: <410e977e@news.povray.org>
> I am using HF to depict window curtains. How can I apply, 
> image pattern with tiling.

Try using the HF_* macros from shapes.inc (They are described in the 
documentation, take a look at 
http://povray.org/documentation/view/3.6.0/95/), they support UV-mapping 
which will allow your image map to actually follow the curtain (instead 
of a simple projection with a normal image map).


HTH,
Florian


Post a reply to this message

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