POV-Ray : Newsgroups : povray.general : Primitive finite objects turn into infinite over a certain size - bug? : Re: Primitive finite objects turn into infinite over a certain size - bug? Server Time
30 Jul 2024 20:28:33 EDT (-0400)
  Re: Primitive finite objects turn into infinite over a certain size - bug?  
From: helge h
Date: 5 Jul 2008 12:50:00
Message: <web.486fa4b41a95014ac5bb7070@news.povray.org>
Here is my file and output; the only difference between the two sessions is the
sphere radius - 1357 units makes finite objects that render fast, 1358 units
makes infinite objects that render much slower, and also where there are no
objects.
--
1) The POV file:
--
// Persistence of Vision Ray Tracer Scene Description File
// Vers: 3.6
// Date: 2008.07.05

#version 3.6;

global_settings { assumed_gamma 1.8 }

camera {
 location  <0, 5000, -10000>
 direction 1.5 * z
 right     x * image_width/image_height
 look_at   <0, 1000, 0>
}

sky_sphere {
 pigment {
  gradient y
  color_map {
   [0.0 rgb <0.6,0.7,1.0>]
   [0.7 rgb <0.0,0.1,0.8>]
  }
 }
}

light_source {
 <-30000, 30000, -30000>
 color rgb <1, 1, 1>
}

light_source {
 <30000, 20000, -30000>
 color rgb <1, 1, 1> * 0.4
}

#local Green = texture {
 pigment { color rgb <0.6, 0.7, 0.4> }
 finish { ambient 0 diffuse 1 specular 0.1 roughness 0.5 }
}

#local Blue = texture {
 pigment { color rgb <0.0, 0.5, 1.0> }
 finish { ambient 0 diffuse 1 specular 0.1 roughness 0.5 }
}

plane { y, 0 texture { Green } }

#local theSphere = sphere { <0, 1400, 0>, 1358 } // 1357 does not make infinite
sphere

union {
 #local AZ = 25;
 #while (AZ > 0)
  #local AX = 25;
  #while (AX > 0)
   object { theSphere translate <AX * 2.0, 0, AZ * 2.0> }
   #local AX = AX - 1;
  #end
  #local AZ = AZ - 1;
 #end
 texture { Blue }
}
--
The results in the message window:
A) Start with value 1357 for sphere radius:
--
POV-Ray 3.6 for Mac OS Frontend Build 197


Persistence of Vision(tm) Ray Tracer Version 3.6.1 for G4 (Mac CodeWarrior)
This is an official version prepared by the POV-Ray Team. See the
 documentation on how to contact the authors or visit us on the
 internet at http://www.povray.org/.
POV-Ray is based on DKBTrace 2.12 by David K. Buck & Aaron A. Collins
Copyright 1991-2003 Persistence of Vision Team
Copyright 2003-2004 Persistence of Vision Raytracer Pty. Ltd.
Parsing Options
  Input file: Harddisk ... (edited) ... sphere.pov (compatible to version 3.60)
  Remove bounds........On   Split unions.........On
  Library paths:
    Harddisk:Applications:POV-Ray 3.6:include:
    Harddisk:Library:Fonts:
    Harddisk:System:Library:Fonts:
Output Options
  Image resolution 320 by 240 (rows 0 to 240, columns 0 to 320).
  Output file: sphere.pict, 24 bpp (system format)
  Graphic display.....On  (gamma:  1.8)
  Mosaic preview.......Off
  CPU usage histogram.Off
  Continued trace......Off
Tracing Options
  Quality:  9
  Bounding boxes......On  Bounding threshold: 1
  Light Buffer.........On   Vista Buffer.........On   Draw Vista Buffer....Off
  Antialiasing........Off
  Radiosity............Off
Animation Options
  Clock value....   0.000  (Animation off)
Scene Statistics
  Finite objects:          625
  Infinite objects:          1
  Light sources:             2
  Total:                   628
Preview may be significantly reducing the renderer performance for this scene.
You should consider turning (mosaic) preview off.
Render Statistics
Image Resolution 320 x 240
----------------------------------------------------------------------------
Pixels:            76800   Samples:           76800   Smpls/Pxl: 1.00
Rays:              76800   Saved:                 0   Max Level: 1/5
----------------------------------------------------------------------------
Ray->Shape Intersection          Tests       Succeeded  Percentage
----------------------------------------------------------------------------
Plane                           223343           76800     34.39
Sphere                        20199127         4031031     19.96
Bounding Box                  24984246        20303964     81.27
Light Buffer                  17462472        16939358     97.00
Vista Buffer                   8922975         8723749     97.77
----------------------------------------------------------------------------
Calls to Noise:                   0   Calls to DNoise:              10
----------------------------------------------------------------------------
Shadow Ray Tests:            232906   Succeeded:                  5724
----------------------------------------------------------------------------
Smallest Alloc:                  19 bytes
Largest  Alloc:               38416 bytes
Peak memory used:            623373 bytes

Total Scene Processing Times
  Parse Time:    0 hours  0 minutes  0 seconds (0 seconds)
  Photon Time:   0 hours  0 minutes  0 seconds (0 seconds)
  Render Time:   0 hours  0 minutes 51 seconds (51 seconds)
  Total Time:    0 hours  0 minutes 51 seconds (51 seconds)
--
B) Sphere radius = 1358:
--
Parsing Options
  Input file: Harddisk ... (edited) ... sphere.pov (compatible to version 3.60)
  Remove bounds........On   Split unions.........On
  Library paths:
    Harddisk:Applications:POV-Ray 3.6:include:
    Harddisk:Library:Fonts:
    Harddisk:System:Library:Fonts:
Output Options
  Image resolution 320 by 240 (rows 0 to 240, columns 0 to 320).
  Output file: eng.pict, 24 bpp (system format)
  Graphic display.....On  (gamma:  1.8)
  Mosaic preview.......Off
  CPU usage histogram.Off
  Continued trace......Off
Tracing Options
  Quality:  9
  Bounding boxes......On  Bounding threshold: 1
  Light Buffer.........On   Vista Buffer.........On   Draw Vista Buffer....Off
  Antialiasing........Off
  Radiosity............Off
Animation Options
  Clock value....   0.000  (Animation off)
Scene Statistics
  Finite objects:            0
  Infinite objects:        626
  Light sources:             2
  Total:                   628
Preview may be significantly reducing the renderer performance for this scene.
You should consider turning (mosaic) preview off.
Render Statistics
Image Resolution 320 x 240
----------------------------------------------------------------------------
Pixels:            76800   Samples:           76800   Smpls/Pxl: 1.00
Rays:              76800   Saved:                 0   Max Level: 1/5
----------------------------------------------------------------------------
Ray->Shape Intersection          Tests       Succeeded  Percentage
----------------------------------------------------------------------------
Plane                           223330           76800     34.39
Sphere                       139667610         4227743      3.03
Light Buffer                  91874310        91874310    100.00
Vista Buffer                  48454320        48454320    100.00
----------------------------------------------------------------------------
Calls to Noise:                   0   Calls to DNoise:              10
----------------------------------------------------------------------------
Shadow Ray Tests:            232890   Succeeded:                  5732
----------------------------------------------------------------------------
Smallest Alloc:                  19 bytes
Largest  Alloc:               38416 bytes
Peak memory used:            624401 bytes

Total Scene Processing Times
  Parse Time:    0 hours  0 minutes  0 seconds (0 seconds)
  Photon Time:   0 hours  0 minutes  0 seconds (0 seconds)
  Render Time:   0 hours  3 minutes 20 seconds (200 seconds)
  Total Time:    0 hours  3 minutes 20 seconds (200 seconds)
--


Post a reply to this message

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