POV-Ray : Newsgroups : povray.newusers : texture_map question : Re: texture_map question Server Time
4 Nov 2024 19:14:43 EST (-0500)
  Re: texture_map question  
From: Bill Hails
Date: 17 Apr 2003 03:34:40
Message: <3e9e5910@news.povray.org>
Christopher James Huff wrote:

> As you've found out, transforms affect the entire texture, not just the
> pattern. You can work around this though:
> 
> cylinder {
>     <Length1, 0, 0>, <Length2, 0, 0>, 1
>     texture {
>         function {
>             pattern {
>                 gradient x
>                 turbulence 1
>                 scale 10
>             }
>         }
>         texture_map {
>             [0 T_Paper ]
>             [0.5 T_Paper ]
>             [0.5 T_Transparent ]
>             [1 T_Transparent ]
>         }
>     }
> }
> 
> That's a texture_map using a function pattern with a pattern function
> using a turbulated and scaled pattern as the pattern. You may need to
> declare the pattern function separately, I've ran into some oddities
> with this area of the function syntax before.
> 

Wonderful! that worked perfectly. Like you say I did have to declare
the pattern function separately, but then it worked.

I really don't understand why though :-)

-- 
I would've gotten away with it too, if it wasn't for those pesky kids!


Post a reply to this message

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