Animation Node experiment - cube grid

Nikolaus Gradwohl2015-11-23T08:11:38+00:00

For this animation I created a 9x9x9 grid of cubes and animated the position of the cubes using the Animation-Nodes-Addon you can download the blend file here

animated cube grid

When you download the blend file and look at the node setup it might look a bit confusing at the first glace but it's actually not so complicated when it's broken into sections.

first I generate 9x9x9 cubes using a object instance node and feed it to a loop

node setup

in this loop I calculate the X, Y and Z coordinates of the single cubes. X coordinate is the index modulo 9, the Y coordinate is the index divided by 9, converted to an integer - which cuts away the parts after the comma - and the result modulo 9, the z coordinate is the index divided by 81 and then converted to an integer - again to get rid of the part after the comma.

node setup

The color of the cubes is calculated from the x, y and z coordinates by scaling them to the interval 0 to 1 and feeding them into an RGB-Color node

node setup

to be able to offset 3x3x3 blocks of cubes I made a subgroup that divides a coordinate by 3, converts it to an integer and multiplies it with an ofset.

node setup

this offsets are animated using an "Animate Float"-Node. The resulting x, y and z coordinates are then combined into a vector and then set to the object location useng a "Object Transofrm" node

node setup

Tweet This! submit to reddit Digg! Tags: | no comments | no trackbacks

See also:

AN experiment - delayed instanciation
Animation Node experiment - circular sound visualizer
Animation Node experiment - polar coordinates
Animation Node experiment - closed curve
Animation Node experiment - script node spiral

Trackbacks

Comments

Leave a response

Leave a comment