|
![](/i/fill.gif) |
High!
K schrieb:
> here is your source,
> I tried to improve it for you.
>
> K
>
I looked it up and tried it out... awesome! But how is it possible?
Shouldn't each new cb2 definition override the previous one?
Eager to learn,
Yadgar
Now playing: Chip Meditation (Software)
Post a reply to this message
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
The new definitions do override.
but the order is important.
#declare cb2 = object
{
union
{
object{ cb }
object{ cb2 scale 1/2.5 translate <1, 1, 1> }
object{ cb2 scale 1/2.5 translate <1, 1, -1> }
object{ cb2 scale 1/2.5 translate <1, -1, 1> }
object{ cb2 scale 1/2.5 translate <1, -1, -1> }
object{ cb2 scale 1/2.5 translate <-1, 1, 1> }
object{ cb2 scale 1/2.5 translate <-1, 1, -1> }
object{ cb2 scale 1/2.5 translate <-1, -1, 1> }
object{ cb2 scale 1/2.5 translate <-1, -1, -1> }
}
}
POV creates the new object that is defined, before it assigns it to cb2.
it is like the statement.
a = a + 1;
a + 1 is figured out first, and the result is stored in a.
this is a very common statement in many computer programs (C++)
using this method, you should be able to easily add iterations (cut and
paste)
but be warned, that by doing that the number of cubes, will grow
exponentially, so will the time needed to render.
best of luck with you next projects.
K
"Yadgar" <yad### [at] tiscalinet de> wrote in message
news:3CB7F62D.30A4DABB@tiscalinet.de...
> High!
>
> K schrieb:
>
> > here is your source,
> > I tried to improve it for you.
> >
> > K
> >
>
> I looked it up and tried it out... awesome! But how is it possible?
> Shouldn't each new cb2 definition override the previous one?
>
> Eager to learn,
>
> Yadgar
>
> Now playing: Chip Meditation (Software)
>
Post a reply to this message
|
![](/i/fill.gif) |