POV-Ray : Newsgroups : povray.binaries.images : Blob object, CSG difference : Re: Blob object, CSG difference Server Time
4 Nov 2024 13:15:21 EST (-0500)
  Re: Blob object, CSG difference  
From: StephenS
Date: 29 Mar 2010 10:10:01
Message: <web.4bb0b4976340747120bec040@news.povray.org>
"StephenS" <nomail@nomail> wrote:
> I'm getting different results with using a blob object in a CSG difference,
> using version 3.7b36 and 3.6.1c.
....
And the code:


//#version 3.6;
#version 3.7;
background { color rgb <0.502,0.502,0.502> }

#declare Default_Red =
texture {
  pigment {
    color rgbft <1.000,0.000,0.000,0.000,0.000>
  }

}

#default{ texture{ Default_Red } }

#declare Light_blue =
texture {
  pigment {
    color rgbft <0.000,1.000,1.000,0.000,0.000>
  }

}

#declare Patterned_Texture =
texture {
  checker
  texture {
    pigment {
      color rgbft <0.000,0.537,0.000,0.000,0.000>
    }

  }

  texture {
    pigment {
      color rgbft <0.859,0.000,0.371,0.000,0.000>
    }

  }

  scale     <0.500,0.500,0.500>
}

#declare M_yellow =
material{
  texture {
    pigment {
      color rgbft <1.000,1.000,0.502,0.000,0.000>
    }

  }

  interior{
    ior                 1.000
    caustics            0.000
    dispersion          1.000
    dispersion_samples  7.000
    fade_power          0.000
    fade_distance       0.000
    fade_color          rgb <0.000,0.000,0.000>
  }

}

#declare Camera =
camera {
  perspective
  location <-3.157,7.114,-11.731>
  up y
  right 1.333*x
  angle 32.822
  sky <0.186,0.890,0.416>
  look_at < 1.941, 0.738, -0.357 >
}

#declare Blob0 =
blob {
  threshold 0.100
  sphere {  // spherical_component0
    0, 1.000000
    strength 1.000000
      texture { Patterned_Texture }
  }
  sphere {  // spherical_component1
    0, 1.000000
    strength 1.000000
    translate <0.593750,0.000000,0.000000>
  }
  sphere {  // spherical_component2
    0, 0.522000
    strength -2.000000
      texture { Light_blue }
    translate <-0.562500,0.000000,-0.593750>
  }
  sturm
  material{ M_yellow }
}


light_source {  // Light_Source
  < 0.000000, 0.000000, 0.000000 >, color rgb <1.000,1.000,1.000>
  fade_power 0.000
  fade_distance 100.000
  media_attenuation off
  media_interaction on
  translate <-6.343750,10.000000,-12.500000>
}

object{ Blob0 }

difference {  // CSG2
  cone {  // Cone0
    -0.5000000*y,0.500,0.5000000*y,0.000
    texture{ Patterned_Texture }
  }

  box {  // Box2
    < -1.9060000, -0.9850000, -0.3815000 >, < 1.9060000, 0.9850000, 0.3815000 >
    translate <0.312500,0.000000,-0.500000>
  }

  cutaway_textures
  texture{ Light_blue }
  translate <5.343750,2.125000,1.250000>
}

difference {  // CSG0
  object {  // Reference0
    Blob0
  }
  box {  // Box0
    < -1.9060000, -0.9850000, -0.3815000 >, < 1.9060000, 0.9850000, 0.3815000 >
    translate <0.312500,0.000000,-0.875000>
  }

  texture{ Light_blue }
  translate <1.937500,2.125000,1.250000>
}

difference {  // CSG1
  object {  // Reference0
    Blob0
  }

  box {  // Box1
    < -1.9060000, -0.9850000, -0.3815000 >, < 1.9060000, 0.9850000, 0.3815000 >
    translate <0.312500,0.000000,-0.875000>
  }

  cutaway_textures
  texture{ Light_blue }
  translate <3.968750,0.000000,0.000000>
}


camera{ Camera }


Post a reply to this message

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