POV-Ray : Newsgroups : povray.binaries.images : My first attempt at macros and blobs : Re: My first attempt at macros and blobs Server Time
15 Aug 2024 22:30:20 EDT (-0400)
  Re: My first attempt at macros and blobs  
From: Matt Schikore
Date: 25 Apr 2002 14:59:40
Message: <3cc8521c$1@news.povray.org>
> Nice.  This is a grid of stretched sphere blobs, right?  DO you have code
> for the grid?

Sure:

blob {
        threshold 1
#declare curX = -15;
#declare curZ = -15;

#while (curZ < 15)
        sphere {
          <curX, 0, curZ>, 0.49, 1
        }
        #declare curX = curX + 0.5;
        #if (curX > 15)
                #declare curX = -15;
                #declare curZ = curZ + 0.5;
        #end
#end


        texture {
                pigment {
                        color rgb <1,1,1>
                }
                finish{
                        diffuse 0.3
                        ambient 0.0
                        specular 0.6
                        reflection {
                                0.7
                                metallic
                        }
                }
        }
}


Post a reply to this message

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