POV-Ray : Newsgroups : povray.binaries.images : Color Cube : Re: Color Cube Server Time
11 Aug 2024 23:23:29 EDT (-0400)
  Re: Color Cube  
From: Mikael Pohjola
Date: 16 Feb 2004 10:18:52
Message: <opr3gx5zmv0x9foi@news.povray.org>
On Mon, 16 Feb 2004 17:29:10 +1100, Rohan <rox### [at] yahoocom> wrote:

> I had an attempt at making an RGB colour cube out of cubes, too. This
> one is 64*64*64 boxes. I would have tried it larger, except I ran out of
> memory.

Have you thought of removing the cubes inside your colorcube, since the 
only visible small cubes are the outermost. For the whole cube 64*64*64 = 
262.144 small cubes, but with the outer shell only 6*63*63 = 23.814, and 
you perhaps won't ran out of memory (unless you already have done this).

-- 
light_source{20*y,1}#macro _(M,X,Y,P)#macro L(N,D)#if(N)#declare 
P=P+D;box{-
0.5,0.5translate z*mod(9*P.gray,4)pigment{rgb P}rotate 45*x+clock*y 
translate
P}L(N-1,D)#end#end#if(M)L(mod(M,8)<mod(X,3)mod(Y,3)1>-1)_(div(M,8)div(X,3)div
(Y,3)P)#end#end _(2301603551,12850,60365,20*z-5*x)plane{y,-9pigment{rgb 1}}


Post a reply to this message

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