Dr. K. L. Metlov (dr_klm) wrote,
Dr. K. L. Metlov
dr_klm

достали...



// (c) 2004 by K.L. Metlov <metlov@fzu.cz>
//*PMRawBegin
#include "functions.inc"
//*PMRawEnd

global_settings {
   assumed_gamma 1.5
   noise_generator 2
}

light_source {
   <4, 5, -5>, rgb <1, 1, 1>
}

camera {
   perspective
   location <5, 1.5, 0>
   sky <0, 1, 0>
   direction <0, 0, 1>
   right <1.3333, 0, 0>
   up <0, 1, 0>
   look_at <0, 0, 0>
}
sphere_sweep {
   linear_spline,
   2,
   <0, -1, 0>,0.001
   <0, -1.1, 0>,0.05

   pigment {
      color rgb <0.752941, 0, 0>
   }
}

isosurface {
   function { sqrt(pow(x*2,2)+z*z+pow(abs(y*1.1-0.7*sqrt(sqrt(z*z+pow(x/2,2)/
(pow(abs(y+1.5),4)+0.001)))),2))-1+f_noise3d(x*15, y*15, z*15)*0.2 }
   contained_by { box { <-1.4, -1.4, -1.4>, <1.4, 1.4, 1.4> } }
   accuracy 0.005
   max_gradient 5
   max_trace 1

   pigment {
      color rgb <0.752941, 0, 0>
   }
   translate y*0.65
}
sky_sphere {
   pigment {
      gradient <0, 1, 0>

      color_map {
         [ 0 color rgb <0, 0, 1>
         ]
         [ 1 color rgb <0, 0, 0.752941>
         ]
      }
   }

   pigment {
      bozo
      turbulence <0.65, 0.65, 0.65>
      omega 0.7

      color_map {
         [ 0 color rgb <0.85, 0.85, 0.85>
         ]
         [ 0.1 color rgb <0.75, 0.75, 0.75>
         ]
         [ 0.5 color rgbt <1, 1, 1, 1>
         ]
         [ 1 color rgbt <1, 1, 1, 1>
         ]
      }
      scale <0.2, 0.1, 0.2>
   }
}

union {
   difference {
      plane {
         <0, 1, 0>, 0
         scale 1
         rotate <0, 0, 0>
         translate <0, 0, 0>
      }

      cylinder {
         <0, -1, 0>, <0, 0.0001, 0>, 2.25
         scale 1.5
         rotate <0, 0, 0>
         translate <0, 0, 0>
      }

      cylinder {
         <0, -100, 0>, <0, -0.0001, 0>, 1.25
         scale 1.5
         rotate <0, 0, 0>
         translate <0, 0, 0>
      }
   }

   torus {
      2.25, 1
      scale 1.5
      rotate <0, 0, 0>
      translate y*(-1.5)
   }

   texture {
      normal {
         spiral1 20
         0.25
         turbulence <0.1, 0.1, 0.1>
         rotate x*90
         scale <0.25, 0.5, 0.25>
      }

      finish {
         ambient rgb <0.15, 0.15, 0.15>
         diffuse 0.85

         reflection {
            rgb <0.2, 0.2, 0.2>
         }
      }
   }
Subscribe

  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 11 comments