![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
height_field {
pattern 200,200 {
hf_gray_16
wrinkles
scale 0.1
color_map {
[0 , rgb 0]
[0.4, rgb 0.4]
}
}
translate -0.5
rotate <-90,0,0>
scale <20,20,2>
pigment {
wrinkles
scale 0.1
color_map {
[0 , rgb 0.5]
[0.4, rgb 0.5]
[0.4, rgb 1]
}
What transformations do I need put here, to make the pigment exactly match
the heightfield?
}
}
Ingo
--
Photography: http://members.home.nl/ingoogni/
Pov-Ray : http://members.home.nl/seed7/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On 10 Mar 2000 15:09:12 -0500, ingo wrote:
>What transformations do I need put here, to make the pigment exactly match
>the heightfield?
warp {planar y 0}
translate -.5
scale <20,20,2>
--
These are my opinions. I do NOT speak for the POV-Team.
The superpatch: http://www2.fwi.com/~parkerr/superpatch/
My other stuff: http://www2.fwi.com/~parkerr/traces.html
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Ron Parker wrote:
> warp {planar y 0}
> translate -.5
> scale <20,20,2>
>
Thanks Ron, that's it. Never thought of planar warp. Actually I'm not sure
I completely understand how it works. The helpfile is a bit cryptic for
this one.
Is it like rendering plane{y 0 Texture}, and use the resulting image as an
image map? An imagemap is projected in the xy-plane, that's the reason for
the absence of a rotation around the x-axis. If this is so the translate -
0.5 can be commented out, but it can't, it gives a different result.
Re-reading this and after some more experiments I see the light (I think).
A translation <-0.5,-0.5,0> also does it. It's just like an imagemap.
All this looks like a promising way to make old wall with parts of the
stucco coming off.
Ingo
--
Photography: http://members.home.nl/ingoogni/
Pov-Ray : http://members.home.nl/seed7/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On 10 Mar 2000 18:23:05 -0500, ingo wrote:
>Is it like rendering plane{y 0 Texture}, and use the resulting image as an
>image map?
Yes, that's exactly it, though I see you already figured that out for yourself.
In fact, I asked MCB to add the planar warp precisely because I wanted to have
a way to texture height fields made from patterns.
--
These are my opinions. I do NOT speak for the POV-Team.
The superpatch: http://www2.fwi.com/~parkerr/superpatch/
My other stuff: http://www2.fwi.com/~parkerr/traces.html
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |