POV-Ray : Newsgroups : povray.beta-test : sstl: mm_per_unit, units : sstl: mm_per_unit, units Server Time
5 Oct 2024 15:37:34 EDT (-0400)
  sstl: mm_per_unit, units  
From: StephenS
Date: 11 Apr 2009 20:10:00
Message: <web.49e1311655474e48f5d208390@news.povray.org>
I've made a simple scene based on the subsurface.pov. When I use mm_per_units
0.82, the scene takes about 4sec. When I use 0.81 the scene takes much longer,
more than 10 min, will run it longer tomorrow. Cancelling the render with the
stop icon, POV-Ray says it stoped. Exiting POV-Ray then gives a runtime error
popup window.

Run at 320 x 240
Begin code////
global_settings {
  adc_bailout       0.003
  ambient_light     rgb <1.000,1.000,1.000>
  assumed_gamma     2.200
  irid_wavelength   rgb <0.250,0.180,0.140>
  max_trace_level   5
  number_of_waves   10
  noise_generator   3
  charset           ascii
}

background { color rgb <1.000,1.000,1.000> }

// ****************************************************************************
// referenced scene items and forced visible scene items declaration begin
// ****************************************************************************

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

}

#default{ texture{ Default_Red } }

#declare Cork =
texture {
  pigment {
    granite
    color_map {
      [0.000 rgbft <0.930,0.710,0.532,0.000,0.000>]
      [0.600 rgbft <0.980,0.810,0.600,0.000,0.000>]
      [0.600 rgbft <0.500,0.300,0.200,0.000,0.000>]
      [0.650 rgbft <0.500,0.300,0.200,0.000,0.000>]
      [0.650 rgbft <0.800,0.530,0.460,0.000,0.000>]
      [1.000 rgbft <0.850,0.750,0.350,0.000,0.000>]
    }

  }

  finish {
    ambient     rgb <0.100,0.100,0.100>
    brilliance  1.000
    crand       0.000
    diffuse     0.600
    metallic    0.000
    phong       0.000
    phong_size  40.000
    specular    0.100
    roughness   0.500
  }

  scale     <0.250,0.250,0.250>
}

#declare Camera =
camera {
  perspective
  location <-4.000,6.000,-12.000>
  up y
  right 1.333*x
  angle 33.000
  sky <0.136,0.904,0.407>
  look_at < 0.000, -0.000, 0.000 >
}  // end Camera

#declare CSG0 =
difference {
  box {  // Box0
    < -0.500000, -0.500000, -0.500000 >, < 0.500000, 0.500000, 0.500000 >
  }  // end Box0

  cone {  // Cone0
    -0.500000*y,0.375000,0.500000*y,0.520000
    translate <0.000000,0.002000,0.000000>
  }  // end Cone0

}  // end CSG0


//------- CSG0 Raw Script Begin -------
global_settings {
  mm_per_unit .81
  subsurface { samples 400, 40 }
}

#declare CSG0=object{
CSG0
texture {
  pigment { color rgb 1 }
  finish{
    specular 0.6 roughness 0.1
    // "artificial" wax parameters
    subsurface { < 1.6732, 1.2806, 0.6947>,< 0.0005, 0.0018, 0.0131> }
  }
}
}//end declare
//------- CSG0 Raw Script End ---------


// ****************************************************************************
// referenced scene items and forced visible scene items declaration end
// ****************************************************************************

light_source {  // Light_Source0
  < 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 <-10.516600,17.558300,-10.602100>
}  // end Light_Source0

light_group {  // Light_Group0
  light_source {  // Light_Source
    < 0.000000, 0.000000, 0.000000 >, color rgb <0.800,0.796,0.690>*0.800
    fade_power 0.000
    fade_distance 100.000
    media_attenuation off
    media_interaction on
  }  // end Light_Source

  object{ CSG0 }

  global_lights off
  translate <0.000,0.500,0.000>
}  // end Light_Group0

plane {  // Plane0
  y , 0
  texture{ Cork }
}  // end Plane0


camera{ Camera }

End code////


Post a reply to this message

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