POV-Ray : Newsgroups : povray.binaries.images : Color Cube Server Time
11 Aug 2024 21:19:02 EDT (-0400)
  Color Cube (Message 11 to 20 of 20)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Florian Brucker
Subject: Re: Color Cube
Date: 13 Feb 2004 13:56:11
Message: <402d1dcb@news.povray.org>
> rendered with 8x8x8 cubes (well, superellipsoids actually, which makes 
> it hard to know exactly where in the y axis to place the object to get 
> it to stand on its end - I rendered this one with the same translation 
> as the 3x3x3 version so the white superellipsoid sticks through the floor):

You may want to use the macro Round_Box_Union() (Or Round_Box_Merge) 
from shapes.inc. It'll look (almost) the same, and you'll always know 
exactly how large the shape is.

HTH,
Florian


Post a reply to this message

From: Dan P
Subject: Re: Color Cube
Date: 13 Feb 2004 14:27:45
Message: <402d2531$1@news.povray.org>
"Florian Brucker" <tor### [at] torfboldcom> wrote in message
news:402d1dcb@news.povray.org...
> > rendered with 8x8x8 cubes (well, superellipsoids actually, which makes
> > it hard to know exactly where in the y axis to place the object to get
> > it to stand on its end - I rendered this one with the same translation
> > as the 3x3x3 version so the white superellipsoid sticks through the
floor):
>
> You may want to use the macro Round_Box_Union() (Or Round_Box_Merge)
> from shapes.inc. It'll look (almost) the same, and you'll always know
> exactly how large the shape is.

In your case, you'll want to use Round_Box_Union. The difference between
Union and Merge is:

Union: Will group the objects together but each object will still retain its
surface.
Merge: Will "melt" the objects together and remove surfaces.

Think of "union" as a grouping tool and "merging" as a melting tool. If all
of your objects are opaque, as they are in your case, you can use "union"
because you won't see the surfaces of the cylinder, spheres, and boxes that
make up the cube. However, if your cube was made of glass, you would see the
cylinder, spheres, and boxes that make up the cube unless you chose to melt
them together using "merge".

Note that, as you probably guessed, merge takes longer to render because of
the extra work it has to do. So, use union whenever you can get away with
it.


Post a reply to this message

From: Rohan
Subject: Re: Color Cube
Date: 16 Feb 2004 01:29:36
Message: <40306350@news.povray.org>
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.

Rohan _e_ii


Post a reply to this message


Attachments:
Download 'boxtest2.png' (34 KB)

Preview of image 'boxtest2.png'
boxtest2.png


 

From: Mikael Pohjola
Subject: Re: Color Cube
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

From: Steven Pigeon
Subject: Re: Color Cube
Date: 16 Feb 2004 18:48:55
Message: <403156e7$1@news.povray.org>
The best would be a mesh, I guess. I did
a very similar thing for LiveGraphics3D demo
on color spaces

(see http://www.iro.umontreal.ca/~pigeon/colorspaces/colorspaces.html )

The meshes are mathematica meshes (which can be converted
to pov rather easily)

Best,

    S.

--
Steven Pigeon, Ph. D.
pig### [at] iroumontrealca

"Rohan" <rox### [at] yahoocom> wrote in message
news:40306350@news.povray.org...
> 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.
>
> Rohan _e_ii
>


----------------------------------------------------------------------------
----


Post a reply to this message

From: Christopher James Huff
Subject: Re: Color Cube - colorcube.jpg (1/1)
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


 

From: Jörg 'Yadgar' Bleimann
Subject: Re: Color Cube
Date: 22 Feb 2004 07:16:19
Message: <40389E23.9541CF3D@gmx.de>
High!

Rohan schrieb:

> 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.

Back in 2000 when I (after strictly avoiding dealing with pure POV for years,
instead relying on those klickibunti toys like Moray...) first experimented
with
#while loops, I also rendered an RGB cube... only 11 x 11 x 11 boxes, but
I think it has potential... such as making them semi-transparent, connecting
them with glass tubes - and finally rendering an animated flight through these

cubes and tubes!

See you in Khyberspace!

Yadgar


Post a reply to this message


Attachments:
Download 'rgb.jpg' (82 KB)

Preview of image 'rgb.jpg'
rgb.jpg


 

From: Marc Roth
Subject: Re: Color Cube
Date: 22 Feb 2004 19:06:58
Message: <40394422@news.povray.org>

> I also rendered an RGB cube... only 11 x 11 x 11 boxes, but
> I think it has potential... such as making them semi-transparent, connecting
> them with glass tubes - and finally rendering an animated flight through these
> 
> cubes and tubes!
> 
> See you in Khyberspace!
> 
> Yadgar
i was somehow inspired by this ideo, so i made a rgb-cube with 11*11*11 
boxes as well, but with transparency and connecting tubes :) the code 
will soon be available in p.t.s-f (scalable rgb-cube with transparency) 
it includes some splines for an animation, but they are not that good 
and far from complete

bye,
	Marc

---------------------------------
and god said: let there be a light_source { location SUN look_at EARTH, 
rgb SUNLIGHT }


Post a reply to this message


Attachments:
Download 'rgb_cube.jpg' (59 KB)

Preview of image 'rgb_cube.jpg'
rgb_cube.jpg


 

From: Dan P
Subject: Re: Color Cube
Date: 22 Feb 2004 19:10:52
Message: <4039450c$1@news.povray.org>
"Marc Roth" <mar### [at] rothconsultcom> wrote in message
news:40394422@news.povray.org...

> > I also rendered an RGB cube... only 11 x 11 x 11 boxes, but
> > I think it has potential... such as making them semi-transparent,
connecting
> > them with glass tubes - and finally rendering an animated flight through
these

Wow, that really turned out cool!!!!!


Post a reply to this message

From: Marc Roth
Subject: Re: Color Cube
Date: 22 Feb 2004 19:15:46
Message: <40394632$1@news.povray.org>
Dan P wrote:

> "Marc Roth" <mar### [at] rothconsultcom> wrote in message
> news:40394422@news.povray.org...
> 

>>
>>>I also rendered an RGB cube... only 11 x 11 x 11 boxes, but
>>>I think it has potential... such as making them semi-transparent,
> 
> connecting
> 
>>>them with glass tubes - and finally rendering an animated flight through
> 
> these
> 
> Wow, that really turned out cool!!!!!
> 
> 
thx, took about 20min to render with AA0.3 but no radiosity... the only 
problem is the max_trace_level which has to be really high to give it a 
realistic look... i think for this render it was at 220. i set it to 
20*dim where dim is the number of cubes per side to get through all the 
layers...
bye
	Marc

-- 
---------------------------------
and god said: let there be a light_source { location SUN look_at EARTH, 
rgb SUNLIGHT }


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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