POV-Ray : Newsgroups : povray.general : Math problem : Re: Math problem Server Time
12 Aug 2024 13:11:46 EDT (-0400)
  Re: Math problem  
From: Spider
Date: 16 Mar 1999 19:32:58
Message: <36EEF69E.A0D14EC4@bahnhof.se>
To reduce memory of the scene, declare a pigment for the spheres, and then call
that. This will reduce it grately if you have more advanced scenes.
Here's a test.
#declare N = 100000;
#while(N>0)
	#declare N = N-1;
	sphere {
		<0,0,N>,.25
		texture {
			pigment {
				hexagon
				Red
				Blue
				Green
			}
			finish { ambient 1 }
		}
	}
#end
compared to

#declare T = 
texture {
	pigment {
		hexagon
		Red
		Blue
		Green
	}
	finish { ambient 1 }
}

#declare N = 100000;
#while(N>0)
	#declare N = N-1;
	sphere { <0,0,N>,.25 texture { T } }
#end

(sorry about the tabs)
-- 
//Spider
        [ spi### [at] bahnhofse ]-[ http://www.bahnhof.se/~spider/ ]
What I can do and what I could do, I just don't know anymore
                "Marian"
        By: "Sisters Of Mercy"


Post a reply to this message

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