POV-Ray : Newsgroups : povray.newusers : texture_map question : Re: texture_map question Server Time
4 Nov 2024 19:16:58 EST (-0500)
  Re: texture_map question  
From: Christopher James Huff
Date: 16 Apr 2003 20:46:01
Message: <cjameshuff-0A2EB1.20460116042003@netplex.aussie.org>
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.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

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