POV-Ray : Newsgroups : povray.binaries.images : Oh dear! [Image ~ 40KB] : Re: Oh dear! [Image ~ 40KB] Server Time
15 Aug 2024 00:16:52 EDT (-0400)
  Re: Oh dear! [Image ~ 40KB]  
From: Marc Champagne
Date: 25 Sep 2002 18:20:43
Message: <Xns9294BAA7F58F4POVMIKA@204.213.191.226>
"Andrew Coppin" <orp### [at] btinternetcom> wrote in
news:3d91c5a5@news.povray.org: 

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Have a look on povray.text.scene-files, it *should* be there now...


Andrew, replace your '// Bubbles' section with the following, it'l
render the same but much faster...

U don't really need a union here

/// BEGIN ///
// Bubbles
#declare lp = 0;
#while (lp<500)
  #declare X = rand(RND)*2*Spread - Spread;
  #declare Y = rand(RND)*2*Spread - Spread;
  #declare Z = rand(RND)*900 + 20;
  #declare R = rand(RND)*10 + 30;
  object {
    sphere {<X, Y, Z>, R}
    texture {
      pigment {colour rgbt <0, 0, 0, 1>}
      finish {ambient 0 specular 1 reflection {0, 1} conserve_energy}
    }
    interior {ior 1/1.33}
  }
  #declare lp = lp + 1;
#end
/// END ///


-- 
(MIKA) Marc Champagne
marcch.AT.videotron.DOT.ca
Montreal, CANADA


Post a reply to this message

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