POV-Ray : Newsgroups : povray.beta-test : Non-rotating slope maps in 3.5.beta.11.incl.win32 : Re: Non-rotating slope maps in 3.5.beta.11.incl.win32 Server Time
29 Jul 2024 22:31:13 EDT (-0400)
  Re: Non-rotating slope maps in 3.5.beta.11.incl.win32  
From: Greg M  Johnson
Date: 14 Feb 2002 12:59:49
Message: <3c6bfb15$1@news.povray.org>
// try a succession of deleting the # after "piggy"
#declare piggy1 = texture{pigment {slope {y} frequency 4} finish{ambient 1}}
#declare piggy2 = texture{pigment {bozo      frequency 4} finish{ambient 1}}
#declare piggy3 = texture{pigment {rgb 1}
                        normal {
                                gradient x
                                slope_map {
                              [0   <0, 1>]
                              [0.5 <1, 1>]
                              [0.5 <1,-1>]
                              [1   <0,-1>]
                                }
                                frequency 4
                                }
                        finish{ambient 0.25}
                        }


// unrotated slope map
sphere{0,2
  texture{piggy}
  rotate 0*z
  translate -3*x+10*z
                     }

// rotated slope map

sphere{0,2
  texture{piggy}
  rotate 90*z
  translate 3*x+10*z }

light_source{ y*10 rgb 1}


Post a reply to this message

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