|
|
Thomas de Groot <tho### [at] degrootorg> wrote:
> Some time ago and entirely by chance, I came across this site/image:
> https://www.printables.com/model/431413-illusion-cube
>
> I thought this was an interesting shape and I built my own version in
> POV-Ray code:
>
> //==========================================================
> #declare BaseBox =
> box {
> <-1.00, -1.00, -1.00>,< 1.00, 1.00, 1.00>
> }
>
> #declare InsideHollow =
> union {
> box {< 0.00, -0.899, -0.70>,< 1.01, 0.70, 0.899>}//+x
> box {<-1.01, -0.70, -0.899>,< 0.00, 0.899, 0.70>}//-x
>
> box {<-0.70, -0.70, 0.00>,< 0.899, 0.899, 1.01>}//+z
> box {<-0.899, -0.899, -1.01>,< 0.70, 0.70, 0.00>}//-z
>
> box {<-0.899, 0.00, -0.70>,< 0.70, 1.01, 0.899>}//+y
> box {<-0.70, -1.01, -0.899>,< 0.899, 0.00, 0.70>}//-y
>
> box {<-0.90, -0.90, -0.90>,< 0.90, 0.90, 0.90> }
> }
>
> #declare EdgeHollow = box {<-1.01, -0.2, -0.2>,< 1.01, 0.2, 0.2>}
>
> #declare EdgeHollowsTop =
> union {
> object {EdgeHollow translate <0.00, 1.00,-1.00>}
> object {EdgeHollow rotate 90*y translate < 1.00, 1.00, 0.00>}
> }
>
> #declare EdgeHollowsBase =
> union {
> object {EdgeHollow translate <0.00, -1.00, 1.00>}
> object {EdgeHollow rotate 90*y translate <-1.00, -1.00, 0.00>}
> }
>
> #declare EdgeHollowsSides =
> union {
> object {EdgeHollow rotate 90*z translate <-1.00, 0.00, 1.00>}
> object {EdgeHollow rotate 90*z translate <1.00, 0.00,-1.00>}
> }
>
> #declare IllusionBox =
> difference {
> object {BaseBox}
> object {InsideHollow /*pigment {rgb <0,1,0>}*/}
> object {EdgeHollowsTop /*pigment {rgb <1,0,0>}*/}
> object {EdgeHollowsBase /*pigment {rgb <1,0,0>}*/}
> object {EdgeHollowsSides /*pigment {rgb <1,0,0>}*/}
>
> pigment {rgb 0.9}
> }
>
> object {IllusionBox}
> //==========================================================
>
> Adding a spaceship I built years ago using Silo, and a media (portal?) I
> composed the present scene.
>
> --
> Thomas
Very cool. Love the look.
Miller
Post a reply to this message
|
|
|
|
Op 30-7-2023 om 13:40 schreef Bald Eagle:
> Thomas de Groot <tho### [at] degrootorg> wrote:
>> Some time ago and entirely by chance, I came across this site/image:
>> https://www.printables.com/model/431413-illusion-cube
>>
>> I thought this was an interesting shape and I built my own version in
>> POV-Ray code:
>
> Nice. :)
>
> I would have been tempted to do it as a union, probably trying to be (too)
> clever and using some kind of algorithm to use +/- <x, y, z>, etc.
>
Oh, I am sure there are better ways; I just did a quick-and-dirty
modelling without thinking too deeply about other options. ;-)
> It _does_ kind of scream ... 3D L-system, now doesn't it? :D
>
Now, you are the second one here to mention that. I have not paid much
attention to the L_system discussion here however.
> This IS very well done - it has a very nice overall space fields, where all of
> the elements come together and blend into a nicely composed space scene.
>
Thanks indeed. It was a good occasion to use that Milkyway star field
together with my old spaceship. Always nice dig into the old dusty
coffers with discarded and forgotten models... :-)
--
Thomas
Post a reply to this message
|
|