5
$\begingroup$

I was making the tutorial of the "easy environment design " of Ducky 3D. I wanted to try to randomize the color of the arrayed cylinders' emission part. by info object node and color ramp. but I couldn't. shall anyone helps me?enter image description here

I made the changes that Dear lemon said. but It didn't help me. would you please let me know if there is anything that I have not done? enter image description here

thanks alot.many many thanks. enter image description here

$\endgroup$
3
  • 4
    $\begingroup$ related blender.stackexchange.com/questions/195876/… $\endgroup$
    – lemon
    Oct 15, 2020 at 12:41
  • $\begingroup$ Agreed. Since it looks like Eevee you won't be able to use random per Island output, so offseting the uvs in the array modifier seems like the next best thing :) $\endgroup$
    – Gorgious
    Oct 15, 2020 at 14:46
  • 1
    $\begingroup$ Please don't use answers if you didn't solve your problem, you can instead edit your question to add more information. This will help potential helpers find your question if it seems it is unanswered. In the case of cycles, you can instead of the random per object output, use a Geometry node and use its Random Per Island output $\endgroup$
    – Gorgious
    Oct 15, 2020 at 15:26

2 Answers 2

3
$\begingroup$

Using the same method as provided in @lemon's answer, you can also achieve random colors with a white noise node :

enter image description here

enter image description here

$\endgroup$
1
  • $\begingroup$ thanks a lot, dear Gorgious $\endgroup$ Oct 16, 2020 at 8:53
4
$\begingroup$

A possible way to do it is to use UV offset from the array modifier (as mentioned by Gorgious, random per island is not implemented for Eevee).

enter image description here

From that we can use UV texture coordinates:

enter image description here

  • Get X (U from UV) value
  • Multiply it (just to tune randomness)
  • Get cell value to have one color per arch
  • Use Voronoi texture to have randomness (easier to tune than noise texture)
  • Eventually map range to tune the result
  • Plug it to a colorramp containing the colors you want

$\endgroup$
1
  • $\begingroup$ Thanks a lot, dear Lemon $\endgroup$ Oct 16, 2020 at 8:54

You must log in to answer this question.

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