POV-Ray : Newsgroups : povray.binaries.images : Few code, many objects contest : Re: Few code, many objects contest Server Time
3 Aug 2024 06:15:40 EDT (-0400)
  Re: Few code, many objects contest  
From: curtmack
Date: 15 Feb 2007 18:05:01
Message: <web.45d4e64dc270a2dd498d62b30@news.povray.org>
Here's mine. I could've bumped it up and squeezed more cubes into each ring,
but I'm not a CPU sadist. 2 minutes 30 seconds at 800x600 with 0.1
antialiasing

//Lots of objects in little code
#macro circ (a)
  #declare i = 25;
  object {
    union {
      #while (i>0)
      box {-.07,.07
        pigment { color rgb .5 }
        translate 1*z
        rotate i*(360/25)*y
      }
      #declare i = i-1;
      #end
      #if (mod(a,10)=0)
      light_source {<0,0,2>
        color rgb <.2,.2,.6>
      }
      light_source {<0,0,0>
        color rgb <.2,.6,.2>
      }
      #end
    }
    translate (a/8)*x + 2*z
    rotate (360/40)*a*x
  }
#end

#declare j = 140;
#while (j>=-140)
  circ(j)
  #declare j = j-1;
#end

camera {
  location 6
  look_at  0
}

Here's all the render stats (minus the configuration information at the
beginning):

Scene Statistics
  Finite objects:         7025
  Infinite objects:          0
  Light sources:            58
  Total:                  7083

Render Statistics
Image Resolution 800 x 600

Pixels:           480800   Samples:         1944040   Smpls/Pxl: 4.04
Rays:            1944040   Saved:                 0   Max Level: 1/5

Ray->Shape Intersection          Tests       Succeeded  Percentage

Box                           75278235        34041790     45.22
Bounding Box                  74833731        40966070     54.74
Light Buffer                1434219443       383715398     26.75
Vista Buffer                  77198516        42158149     54.61

Calls to Noise:                   0   Calls to DNoise:              10

Shadow Ray Tests:          58571546   Succeeded:              32576089

Smallest Alloc:                  18 bytes
Largest  Alloc:               56216 bytes
Peak memory used:          35698021 bytes
Total Scene Processing Times
  Parse Time:    0 hours  0 minutes  5 seconds (5 seconds)
  Photon Time:   0 hours  0 minutes  0 seconds (0 seconds)
  Cloth Time:    0 hours  0 minutes  0 seconds (0 seconds)
  Mechsim Time:  0 hours  0 minutes  0 seconds (0 seconds)
  Render Time:   0 hours  2 minutes 25 seconds (145 seconds)
  Postpr. Time:  0 hours  0 minutes  0 seconds (0 seconds)
  Total Time:    0 hours  2 minutes 30 seconds (150 seconds)
CPU time used: kernel 0.50 seconds, user 138.52 seconds, total 139.02
seconds
Render averaged 3452.85 PPS over 480000 pixels

POV-Ray finished



(yes I use MegaPOV, I never bother switching back and forth since MegaPOV is
fully back-compatible)

I think this is an elementary example of how powerful lightsources are. As
you can see, there are only 58 lightsources in a scene full of thousands of
boxes and it looks fully lit.


Post a reply to this message


Attachments:
Download 'lotsofobjects.png' (505 KB)

Preview of image 'lotsofobjects.png'
lotsofobjects.png


 

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