|
|
On Mon, 11 Feb 2002 08:44:56 +0200, "Nekar Xenos"
<j-p### [at] citywalkcoza> wrote:
>> Experimenting with switching objects off leads to the conclusion that
>> your wheels are bounded poorly as the rest of the objects render
>> faster than the wheels alone!
>
>This is one area I'm not very clear on. How should I do the bounding? I guess
>the treads are what's making it so slow..?
Before POV-Ray had automatic bounding we used bound_by, but POV-Ray
strips those by default, and I don't think you'll want to hand-bound
your whole scene. Clipped_by is a usable alternative. Looking at where
the trace is slow indicates that POV-Ray isn't sure where the wheels
end and the only bounding that catches it is the clipped_by on the
whole car. Re-rendering with/out detail shows that detailing takes 4+
times as long as no detailing.
No details:
Scene contains 4 frame level objects; 2 infinite.
Statistics for C:\Programmer\POV-Ray for Windows
v3.5\scenes\Erkki\NekCar!F15.pov, Resolution 160 x 120
----------------------------------------------------------------------------
Pixels: 19200 Samples: 19200 Smpls/Pxl: 1.00
Rays: 49770 Saved: 6009 Max Level: 5/5
----------------------------------------------------------------------------
Ray->Shape Intersection Tests Succeeded Percentage
----------------------------------------------------------------------------
Blob 1382668 227178 16.43
Blob Component 27552041 7766219 28.19
Blob Bound 54657217 36113608 66.07
Box 2567812 268006 10.44
Cone/Cylinder 395048 16319 4.13
CSG Intersection 1827097 182123 9.97
CSG Merge 543191 100283 18.46
CSG Union 691334 58829 8.51
Plane 307809 137600 44.70
Sphere 790096 1305 0.17
Clipping Object 70891 70859 99.95
Bounding Box 85524 49381 57.74
Light Buffer 176724 164792 93.25
Vista Buffer 91808 91776 99.97
----------------------------------------------------------------------------
Roots tested: 1022365 eliminated: 31913
Calls to Noise: 21034 Calls to DNoise: 86567
----------------------------------------------------------------------------
Shadow Ray Tests: 36072 Succeeded: 6579
Reflected Rays: 19320
Refracted Rays: 8
Transmitted Rays: 11242
----------------------------------------------------------------------------
Smallest Alloc: 25 bytes Largest: 12056
Peak memory used: 1430818 bytes
----------------------------------------------------------------------------
Time For Parse: 0 hours 0 minutes 1.0 seconds (1 seconds)
Time For Trace: 0 hours 0 minutes 39.0 seconds (39 seconds)
Total Time: 0 hours 0 minutes 40.0 seconds (40 seconds)
POV-Ray finished
With details:
Scene contains 4 frame level objects; 2 infinite.
Statistics for C:\Programmer\POV-Ray for Windows
v3.5\scenes\Erkki\NekCar!F15.pov, Resolution 160 x 120
----------------------------------------------------------------------------
Pixels: 19200 Samples: 19200 Smpls/Pxl: 1.00
Rays: 49621 Saved: 5973 Max Level: 5/5
----------------------------------------------------------------------------
Ray->Shape Intersection Tests Succeeded Percentage
----------------------------------------------------------------------------
Blob 1452493 232641 16.02
Blob Component 32915495 8055383 24.47
Blob Bound 62197080 43095282 69.29
Box 90355144 695798 0.77
Cone/Cylinder 1753004 31328 1.79
CSG Intersection 3355750 201843 6.01
CSG Merge 550946 102830 18.66
CSG Union 1252134 124594 9.95
Plane 311220 138333 44.45
Sphere 801376 1303 0.16
Superellipsoid 250418 3410 1.36
True Type Font 1202008 5531 0.46
Clipping Object 118498 118210 99.76
Bounding Box 86077 50083 58.18
Light Buffer 180630 168704 93.40
Vista Buffer 91808 91776 99.97
----------------------------------------------------------------------------
Roots tested: 1054047 eliminated: 29977
Calls to Noise: 21013 Calls to DNoise: 86252
----------------------------------------------------------------------------
Shadow Ray Tests: 36844 Succeeded: 7446
Reflected Rays: 19188
Refracted Rays: 8
Transmitted Rays: 11225
I-Stack overflows: 88
----------------------------------------------------------------------------
Smallest Alloc: 25 bytes Largest: 12056
Peak memory used: 4352195 bytes
----------------------------------------------------------------------------
Time For Trace: 0 hours 2 minutes 38.0 seconds (158 seconds)
Total Time: 0 hours 2 minutes 38.0 seconds (158 seconds)
POV-Ray finished
The first big sinner is boxes, from 2.5 mill tests (at 10.44%) to 90
mill test (at 0.77%). Looking at your Cylinder and Tread code I notice
that you difference out 720 small boxes from your cylinder and then
repeat 6 times to make the full tread. Try reversing the construction
so you union the blocks on instead of differencing the cuts off.
Unions are much easier to autobound than differences so using unions
will add a whole extra layer of bounding. I would expect that to speed
up the tread rendering by at least a factor 20!
If these cars are for racing they'll use either slicks or a coarser
patterned tire for rain racing.
/Erkki
Post a reply to this message
|
|