In article <40306350@news.povray.org>, Rohan <rox### [at] yahoo com>
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] earthlink net>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: <chr### [at] tag povray org>
http://tag.povray.org/
Post a reply to this message
Attachments:
Download 'colorcube.jpg' (14 KB)
Preview of image 'colorcube.jpg'
![colorcube.jpg](/povray.binaries.images/attachment/%3Ccjameshuff-FDD00D.21063616022004%40news.povray.org%3E/colorcube.jpg?preview=1)
|