0
$\begingroup$

I'm trying to project a logo texture across a grid of instances so that I can control it's movement with the Object Controller Falloff node.

Here's an example of what I'm trying to accomplish that was just done with a bunch of separate cube objects without Animation Nodes. First Example - Separate Cubes

When trying to place the UV texture on the instanced objects using Animation Nodes, it applies the texture to each cube separately like below. 2nd Example - Animation Nodes

Is there are way to project the texture across all the cubes like the first example using Animation Nodes?

At the very least, is there a way I can use the the Object Controller Node as an effector on the separate cube objects so that they move the same way as they would if they were instanced? I've tried using translation matrices to move them but they don't snap back into place after I move the effector away like the instanced objects do...

Any help would be much appreciated! Thank you!

$\endgroup$

1 Answer 1

4
$\begingroup$

You can use fragment position as you texture coordinates as follows:

Node Tree

Alternatively, you can make the instances as a single object as follows:

Node Tree 2

$\endgroup$
5
  • $\begingroup$ Thank you @OmarAhmad!! The texture did project how I wanted after following your steps. However, when using the falloff past a certain point, the texture disappears from the cubes. The texture also resets/re-centers on the cube after falloff instead of just pushing out the portion of the texture it's falling over and repeats at the top of the grid. Here's a link to an example: imgur.com/a/W8Xt4 Any idea what i'm doing wrong? Thanks! $\endgroup$
    – Chey Jax
    Oct 30, 2017 at 2:42
  • $\begingroup$ @CheyJax Can you show me the material and AN nodes trees? $\endgroup$
    – Omar Emara
    Oct 30, 2017 at 13:09
  • $\begingroup$ Here you go! imgur.com/a/UhPUa (Material Nodes) - imgur.com/a/Bk0qZ (Animation Nodes) Thanks! $\endgroup$
    – Chey Jax
    Oct 30, 2017 at 23:11
  • $\begingroup$ @CheyJax The second node tree (Which you used) uses the generated output from texture coordinates node and not the position as the first node tree. Also, notice that my objects are lying on the xy plane, while yours are lying on the zx plane, so you have to rotate it. $\endgroup$
    – Omar Emara
    Oct 31, 2017 at 13:44
  • $\begingroup$ Thank you!! @OmarAhmad - The texture coordinate output did the trick! Thanks again for all your help and patience. You're awesome! :-) $\endgroup$
    – Chey Jax
    Nov 3, 2017 at 5:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .