POV-Ray : Newsgroups : povray.beta-test : Blob component textures transformed twize : Re: Blob component textures transformed twize Server Time
30 Jul 2024 10:17:04 EDT (-0400)
  Re: Blob component textures transformed twize  
From: Rune
Date: 19 Nov 2001 17:14:57
Message: <3bf98461@news.povray.org>
"Greg M. Johnson" wrote:
> Hmm. Consider:

Interesting that variance in the scaling can trigger the bug...

Here's a shorter and clearer example:

light_source {<1,2,-3>*1000, color 1.5}
background {color <0.3,0.5,0.8>}
#declare OddScale=<2.5,2.5,2.499999999999999>;
#declare OKScale= <2.5,2.5,2.4999999999999999>;
#declare piggy=
pigment{
   gradient y
   pigment_map{[0.5,red 1][0.5,rgb <1,1,0>]}
}
blob {
   threshold .5
   sphere {
      0, 2, 1 scale OKScale
      texture {pigment {piggy}}
      rotate 45*z // pigment OK!
   }
   translate <+3,0,10>
}
blob {
   threshold .5
   sphere {
      0, 2, 1 scale OddScale
      texture {pigment {piggy}}
      rotate 45*z // pigment rotated twize!
   }
   translate <-3,0,10>
}


Post a reply to this message

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