POV-Ray : Newsgroups : povray.general : Strage Gradient! : Strage Gradient! Server Time
20 Nov 2024 04:15:10 EST (-0500)
  Strage Gradient!  
From: Eitan Tal
Date: 29 Oct 2001 05:05:44
Message: <3BDD2989.68C6AE34@netvision.net.il>
take a look at the image at .images.
This can only happen by scaling, I don't find any.
The texture code:

#declare MyGradientX=
texture {
  gradient x
  texture_map {
    [0.0 T_Stone10]
    [0.4 T_Stone10]
    [0.4 pigment {color rgbt <1,1,1,1,1>}]
    [0.5 pigment {color rgbt <1,1,1,1,1>}]
    [0.5 T_Stone15]
    [0.9 T_Stone15]
    [0.9 pigment {color rgbt <1,1,1,1,1>}]
    [1.0 pigment {color rgbt <1,1,1,1,1>}]
  }
}

#declare Texture3 =
texture {
  gradient z
  texture_map {
    [0.0 MyGradientX]
    [0.4 MyGradientX]
    [0.4 pigment {color rgbt <1,1,1,1,1>}]
    [0.5 pigment {color rgbt <1,1,1,1,1>}]
    [0.5 MyGradientX translate 0.5*x]
    [0.9 MyGradientX translate 0.5*x]
    [0.9 pigment {color rgbt <1,1,1,1,1>}]
    [1.0 pigment {color rgbt <1,1,1,1,1>}]
  }
  translate 90*x
}

Object code:

difference {
  plane { y, 0 }
  cylinder {-1*y, 3*y, 30 }
  texture {Texture3}
}


Post a reply to this message

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