POV-Ray : Newsgroups : povray.binaries.images : Color Cube : Re: Color Cube - colorcube.jpg (1/1) Server Time
11 Aug 2024 23:25:16 EDT (-0400)
  Re: Color Cube - colorcube.jpg (1/1)  
From: Christopher James Huff
Date: 16 Feb 2004 21:06:04
Message: <cjameshuff-FDD00D.21063616022004@news.povray.org>
In article <40306350@news.povray.org>, 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.

Given that you can only see 3 sides, you could remove the vast majority 
of the boxes. Or you could do it with one box and an average pigment:

box {0.001, 0.999
    texture {
        pigment {average
            pigment_map {
                [1 gradient x color_map {[0 rgb 0][1 blue 1]}]
                [1 gradient y color_map {[0 rgb 0][1 green 1]}]
                [1 gradient -z color_map {[0 rgb 0][1 red 1]}]
            }
        }
        finish {diffuse 0 ambient 1}
    }
    translate -0.5 scale 2
}

Peak memory used:           266864 bytes

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: <chr### [at] tagpovrayorg>
http://tag.povray.org/


Post a reply to this message


Attachments:
Download 'colorcube.jpg' (14 KB)

Preview of image 'colorcube.jpg'
colorcube.jpg


 

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