0
$\begingroup$

I have a problem creating a color gradient in the AN grid (I used vertex color, but only one color remains). This image below shows the effect you would like to have on AN. But I used the array and the Node Cycles. How do I have the same effect on AN without instancer.enter image description here

That's how I did it at Cycles

I'm using this Config in AN enter image description here But I only get this enter image description here

$\endgroup$
  • $\begingroup$ What do you mean by "without instancer"? Would you like all the arrows to be in the same mesh? Also, what do you mean by "only one color remains"? $\endgroup$ – Omar Emara Jan 19 at 6:19
  • $\begingroup$ The arrows change size according the distance of the object wanted to do the same for colors (gradient) so I followed this video (youtube.com/watch?v=kw-HCeo_Lg8), but the colors are fixed. The gradient is applied to each arrow. $\endgroup$ – wishmasteregl Jan 20 at 5:29
1
$\begingroup$

You are using the local texture coordinates to color the objects, thus the colors are local and identical for all arrows. What you want to do is color the objects solely based on their locations. In Cycles, the Object Info node can be employed as follows:

Node Tree

Where the value controls the radius of the gradient.

$\endgroup$
  • $\begingroup$ So I keep Grid from the animation node and configure Cycles node this form. I still do not understand this difference from the global to the local (continue with same problem). I'll search (I have very questions, but I'm afraid they are elementary. I follow your SquirtArt tutorials that are incredible. Though difficult for me. $\endgroup$ – wishmasteregl Jan 20 at 17:49
  • $\begingroup$ @wishmasteregl What exactly is the problem you are facing now? You can edit the question to add more information if you want. If I understand correctly, you have a group of objects created using the instancer node and you would like to color each object based on the distance to some empty object, right? $\endgroup$ – Omar Emara Jan 20 at 19:05
  • $\begingroup$ Yes. I made the arrow grid with the nodes of the second image above. I clicked on the grid, shader, created a new material and applied the nodes you showed. But now it appeared in single in object ¬ (interesting when I connected the object info-with randon, it works- all arrows).I would like to add the file, but I could not. did you talk about local texture coordinates how do i change it? $\endgroup$ – wishmasteregl Jan 20 at 20:58
  • $\begingroup$ @wishmasteregl you can use this site to upload your blend file. What I mean't is that you shouldn't use the local texture coordinates, and instead use the locations of the objects. Are you sure you applied the material to all objects? Did you try decreasing the value in the node tree? It could be that the value is too high. $\endgroup$ – Omar Emara Jan 21 at 9:36
  • $\begingroup$ Thank you very much! I got it thanks to your help. In fact, it was necessary to select all the objects, also when I clicked on the generator object of the grids of arrows worked. Now I do not understand the fact that the colors follow the movement only when the viewport is in rendered. You were very friendly. So I'll ask another question about grids. It's Amazing. $\endgroup$ – wishmasteregl Jan 22 at 2:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.