POV-Ray : Newsgroups : povray.unix : Pov-Ray 3.1g (compiled from source) outputting odd... Server Time
28 Jul 2024 22:19:06 EDT (-0400)
  Pov-Ray 3.1g (compiled from source) outputting odd... (Message 11 to 12 of 12)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Dennis Clarke
Subject: Pov-Ray 3.1e not locked. Just dead slow.
Date: 7 Aug 1999 16:40:47
Message: <37AC99C0.89DD72B9@interlog.com>
I had a blob with six spheres that looked like so : 

#declare blobber = blob {
                             threshold 0.65
                             sphere { < ( -1.0 * sock ) , 0.0, 0.0>, 1.0, 1.0
                                 texture {
                                     // ruby color
                                     pigment { color rgbf <1.0, 0.0, 0.0, 0.9> }
                                         finish {
                                             ambient 0.1
                                             diffuse 0.1
                                             //reflection 0.25
                                             //specular 0.8
                                             roughness 0.0003
                                             //phong 0.8
                                             //phong_size 250
                                         }
                                 }
                             }
                             sphere { < ( 1.0 * sock ) , 0.0, 0.0>, 1.0, 1.0
                                 texture {
                                     pigment { color rgbf <0.0, 1.0, 0.0, 0.9> }
                                         finish {
                                             ambient 0.1
                                             diffuse 0.1
                                             //reflection 0.25
                                             //specular 0.8
                                             roughness 0.0003
                                             //phong 0.8
                                             //phong_size 250
                                         }
                                 }
                             }
                             sphere { < 0.0, ( 1.0 * sock ), 0.0 >, 1.0, 1.0
                                 texture {
                                     pigment { color rgbf <0.0, 0.0, 1.0, 0.9> }
                                         finish {
                                             ambient 0.1
                                             diffuse 0.1
                                             //reflection 0.25
                                             //specular 0.8
                                             roughness 0.0003
                                             //phong 0.8
                                             //phong_size 250
                                         }
                                 }
                             }
                             //sphere { < 0.0, ( -1.0 * sock ), 0.0 >, 1.0, 1.0
                             //    texture {
                             //        pigment { color rgbf <1.0, 1.0, 0.0, 0.9>
}
                             //            finish {
                             //                ambient 0.1
                             //                diffuse 0.1
                             //                //reflection 0.25
                             //                //specular 0.8
                             //                roughness 0.0003
                             //                //phong 0.8
                             //                //phong_size 250
                             //            }
                             //    }
                             //}
                             //sphere { < 0.0, 0.0, ( 1.0 * ock ) >, 1.0, 1.0
                             //    texture {
                             //        pigment { color rgbf <1.0, 0.0, 1.0, 0.9>
}
                             //            finish {
                             //                ambient 0.1
                             //                diffuse 0.1
                             //                //reflection 0.25
                             //                //specular 0.8
                             //                roughness 0.0003
                             //                //phong 0.8
                             //                //phong_size 250
                             //            }
                             //    }
                             //}
                             //sphere { < 0.0, 0.0, ( -2.0 * ock ) >, 1.0, 1.0
                             //    texture {
                             //        pigment { color rgbf <0.0, 1.0, 1.0, 0.9>
}
                             //            finish {
                             //                ambient 0.1
                             //                diffuse 0.1
                             //                //reflection 0.25
                             //                //specular 0.8
                             //                roughness 0.0003
                             //                //phong 0.8
                             //                //phong_size 250
                             //            }
                             //    }
                             //}

                             interior{ ior 1.5
                                     }
                        }

and you will note that three of the spheres are commented out so that I could
test for a bug.  I didn't find a bug but what I did find was that the following
command :

truss -t!ioctl,time -o truss_blob.out /usr/local/povray31/x-povray
+I./cmyrgb.pov +O../../output/cmy_.tga +W320 +H240 +FT +A0.3 +AM2 +R3 -J +Q9 +V
+GA +X +B2048 +D +P +SP1 +EP1 +SF9 +EF12 +KC +KFI0 +KFF64

would render frame 9 in 22 seconds ...

Displaying...
Using 24 bit TrueColor visual...
 00:00:00 so far, Rendering frame 9, going to 12.
  0:00:22 Rendering line  240 of  240 supersampled 0 times.        
Click on window to exit...
Done Tracing
./cmyrgb.pov Statistics, Resolution 320 x 240
----------------------------------------------------------------------------
Pixels:           76800   Samples:          103875   Smpls/Pxl: 1.35
Rays:            161551   Saved:                 0   Max Level: 5/32
----------------------------------------------------------------------------
Ray->Shape Intersection          Tests       Succeeded  Percentage
----------------------------------------------------------------------------
Blob                            311859          111165     35.65
Blob Component                  371105          345693     93.15
Blob Bound                      935577          371105     39.67
----------------------------------------------------------------------------
Roots tested:               260926   eliminated:              181088
Calls to Noise:             844023   Calls to DNoise:         856900
----------------------------------------------------------------------------
Shadow Ray Tests:           150308   Succeeded:                53792
Refracted Rays:              57676
----------------------------------------------------------------------------
Smallest Alloc:                 12 bytes   Largest:          2097160
Peak memory used:          2303846 bytes
----------------------------------------------------------------------------
Time For Trace/Frame:    0 hours  0 minutes  22.0 seconds (22 seconds)
Time For Trace Total:    0 hours  0 minutes  22.0 seconds (22 seconds)
          Total Time:    0 hours  0 minutes  22.0 seconds (22 seconds)


Parsing.......No pigment type given.


Scene contains 1 frame level objects; 0 infinite.

Displaying...
 00:00:22 so far, Rendering frame 10, going to 12.
  0:05:32 Rendering line  240 of  240 supersampled 0 times.        
Click on window to exit...$


BUT FRAME 10 was over 5 minutes! Why?  Because the blob components entered each
others field area at frame 10 but not in frame 9.  In frame 9 they were just
spheres but in frame 10 we get a bit of pinching as the components begin to
merge.  If the reflection, specular and phong lines are left in the scene file
then the whole process is much like a rocket sled hitting a wall of jello.  Even
after 10 hours the computer has not rendered a single line.

What the heck goes on here?  IT must be because the individual components all
have different colors.  If I change the blob to the following : 

#declare blobber = blob {
                             threshold 0.65
                             sphere { < ( -1.0 * sock ) , 0.0, 0.0>, 1.0, 1.0
                                 //texture {
                                 //    pigment { color rgbf <1.0, 0.0, 0.0, 0.9>
}
                                 //        finish {
                                 //            ambient 0.1
                                 //            diffuse 0.1
                                 //            //reflection 0.25
                                 //            //specular 0.8
                                 //            roughness 0.0003
                                 //            //phong 0.8
                                 //            //phong_size 250
                                 //        }
                                // }
                             }
                             sphere { < ( 1.0 * sock ) , 0.0, 0.0>, 1.0, 1.0
                                 //texture {
                                 //    pigment { color rgbf <0.0, 1.0, 0.0, 0.9>
}
                                 //        finish {
                                 //            ambient 0.1
                                //             diffuse 0.1
                                //             //reflection 0.25
                                //             //specular 0.8
                                //             roughness 0.0003
                                //             //phong 0.8
                                //             //phong_size 250
                                //         }
                                // }
                             }
                             sphere { < 0.0, ( 1.0 * sock ), 0.0 >, 1.0, 1.0
                                 //texture {
                                 //    pigment { color rgbf <0.0, 0.0, 1.0, 0.9>
}
                                 //        finish {
                                 //            ambient 0.1
                                 //            diffuse 0.1
                                 //            //reflection 0.25
                                 //            //specular 0.8
                                 //            roughness 0.0003
                                 //            //phong 0.8
                                 //            //phong_size 250
                                 //        }
                                // }
                             }
                             //sphere { < 0.0, ( -1.0 * sock ), 0.0 >, 1.0, 1.0
                             //    texture {
                             //        pigment { color rgbf <1.0, 1.0, 0.0, 0.9>
}
                             //            finish {
                             //                ambient 0.1
                             //                diffuse 0.1
                             //                //reflection 0.25
                             //                //specular 0.8
                             //                roughness 0.0003
                             //                //phong 0.8
                             //                //phong_size 250
                             //            }
                             //    }
                             //}
                             //sphere { < 0.0, 0.0, ( 1.0 * ock ) >, 1.0, 1.0
                             //    texture {
                             //        pigment { color rgbf <1.0, 0.0, 1.0, 0.9>
}
                             //            finish {
                             //                ambient 0.1
                             //                diffuse 0.1
                             //                //reflection 0.25
                             //                //specular 0.8
                             //                roughness 0.0003
                             //                //phong 0.8
                             //                //phong_size 250
                             //            }
                             //    }
                             //}
                             //sphere { < 0.0, 0.0, ( -2.0 * ock ) >, 1.0, 1.0
                             //    texture {
                             //        pigment { color rgbf <0.0, 1.0, 1.0, 0.9>
}
                             //            finish {
                             //                ambient 0.1
                             //                diffuse 0.1
                             //                //reflection 0.25
                             //                //specular 0.8
                             //                roughness 0.0003
                             //                //phong 0.8
                             //                //phong_size 250
                             //            }
                             //    }
                             //}

                                 texture {
                                     pigment { color rgbf <1.0, 1.0, 1.0, 0.9> }
                                         finish {
                                             ambient 0.1
                                             diffuse 0.1
                                             //reflection 0.25
                                             //specular 0.8
                                             roughness 0.0003
                                             //phong 0.8
                                             //phong_size 250
                                         }
                                 }

                             interior{ ior 1.5
                                     }
                        }

Then frame 10 renders ...

Displaying...
Using 24 bit TrueColor visual...
 00:00:00 so far, Rendering frame 10, going to 10.
  0:01:04 Rendering line  240 of  240 supersampled 0 times.        
Click on window to exit...
Done Tracing
./cmyrgb.pov Statistics, Resolution 320 x 240
----------------------------------------------------------------------------
Pixels:           76800   Samples:          132461   Smpls/Pxl: 1.72
Rays:            451288   Saved:                 0   Max Level: 32/32
----------------------------------------------------------------------------
Ray->Shape Intersection          Tests       Succeeded  Percentage
----------------------------------------------------------------------------
Blob                           1329580          714404     53.73
Blob Component                 2069305         1787820     86.40
Blob Bound                     3988740         2069305     51.88
----------------------------------------------------------------------------
Roots tested:              1279187   eliminated:              977700
Calls to Noise:            1006629   Calls to DNoise:        1052992
----------------------------------------------------------------------------
Shadow Ray Tests:           880070   Succeeded:               395577
Reflected Rays:             194999   Total Internal:          194999
Refracted Rays:             123828
----------------------------------------------------------------------------
Smallest Alloc:                 12 bytes   Largest:          2097160
Peak memory used:          2310466 bytes
----------------------------------------------------------------------------
Time For Trace/Frame:    0 hours  1 minutes   4.0 seconds (64 seconds)
Time For Trace Total:    0 hours  1 minutes   4.0 seconds (64 seconds)
          Total Time:    0 hours  1 minutes   4.0 seconds (64 seconds)


SO unless I have a mainframe or a Sun E10000 with 64 processors, don't bother
rendering a 64 frame animation with multicolor blob elements.  

Dennis Clarke


Post a reply to this message

From: TigerHawk
Subject: Re: Pov-Ray 3.1g (compiled from source) outputting odd...
Date: 8 Aug 1999 00:53:38
Message: <37AE6084.C3062BF9@sitc.net>
Well, I tried what you said and it worked like a charm. Thanks for the
help....I wish Pov-Ray compile docs were a bit more helpful in that matter
(though, I guess they really don't have to be wish so few people compiling it
themselves).

Good luck, and happy tracing!

Tim Soderstrom
TigerHawk

cab5 wrote:

> It could be two things that I know of.  First the simple thing.  Make
> sure you built the xwindows binary, not just the unix binary (which
> doesn't know about X, so it tries to output an ascii approximation of
> the image to the console or the xterm you called it from.)
>
> I found I still had this problem, even with the X windows compile.  The
> problem only happened when I did a "make newunix" followed by a "make
> xwin".  In theory, this shouldn't be a problem but... try doing a "make
> clean ; make newxwin" and see if the x-povray binary works properly for
> you.  I wonder if this qualifies as a bug in the makefile?
>


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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