POV-Ray : Newsgroups : povray.beta-test : Scale in function pattern ? : Scale in function pattern ? Server Time
31 Jul 2024 06:24:26 EDT (-0400)
  Scale in function pattern ?  
From: Jan Walzer
Date: 7 Sep 2001 09:46:20
Message: <3b98cfac@news.povray.org>
Sorry for not finding in the docs ...
In the example source I can change the marked scale-value without any
effect...
But as the parser accepts it, it can't be completely wrong, can it ?

If it's wrong, is there another way to set the "scale" of the structure in
the function G ?

#declare FP=
    function {
        pattern {
            gradient 1
            }
        }
#declare G=
    function {
        pattern {
            crackle solid
            scale 0.1    // <---- No effect !
        }
    }


#declare MyPFkt=
    function {
        FP(x+G(x,y,z)*1,y+G(x,y,z)*1,z+G(x,y,z)*1)
    }

plane { -z,-30
    finish {
        ambient 1
    }
    pigment {
        function {
            MyPFkt(x,y,z)
        }
        color_map {
            [0,rgb z]
            [1,rgb x+y]
        }
    }
}


--
Jan Walzer <jan### [at] lzernet>


Post a reply to this message

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