POV-Ray : Newsgroups : povray.unofficial.patches : pattern & texturing Server Time
2 Nov 2024 05:22:45 EDT (-0400)
  pattern & texturing (Message 1 to 4 of 4)  
From: ingo
Subject: pattern & texturing
Date: 10 Mar 2000 15:09:12
Message: <8EF3D3D87seed7@204.213.191.228>
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

From: Ron Parker
Subject: Re: pattern & texturing
Date: 10 Mar 2000 16:08:29
Message: <38c9644d$1@news.povray.org>
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

From: ingo
Subject: Re: pattern & texturing
Date: 10 Mar 2000 18:23:05
Message: <8EF4EBD0seed7@204.213.191.228>
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

From: Ron Parker
Subject: Re: pattern & texturing
Date: 13 Mar 2000 08:09:13
Message: <38cce879$1@news.povray.org>
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

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