0
$\begingroup$

I work on a Node Setup with which I can spawn Houses on Faces. Now I want to make the instanced House Fassades the same Color as the Face it´s been spawned on while only using one Mastermaterial for the Fassades.

More detailed:

  • I give several Faces in one Object a random H/S/V-Shift per Mesh Island in it´s Material (Attributes on the left in the Shader Editor).
  • I want to spawn Instances on these Faces and the Instances Material shall get the same H/S/V-Shift, the Face itself got. The red Roofs have a separate Material and they shall stay that way.
  • Right now the Instances have all the same Color. Can I achieve this without realizing the Geometry? Because that would make my scene too heavy.

enter image description here

Thanks in Advance!

EDIT: @Crantisz I don´t know if I understand you correctly, right now everything has the same color: enter image description here

$\endgroup$

1 Answer 1

0
$\begingroup$

If you use instances, there is no need in Mesh Island node. Do the following:

  1. Switch the Mesh Island to Random node
  2. Change attribute domain of Geometry nodes output from vertex to instance (N Panel)

enter image description here

  1. In the Attribute node set type to Instancer
$\endgroup$
5
  • $\begingroup$ thanks for your answer, but I think I don´t understand it right. I´ve added a Pic in my Post :) $\endgroup$
    – Tucker
    May 26, 2023 at 16:29
  • $\begingroup$ random value makes a number from 0 to 1 plug it directly to color ramp $\endgroup$
    – Crantisz
    May 26, 2023 at 21:35
  • $\begingroup$ Ah okay, I got what you mean. But now the groundplanes on which I spawn the Instances are pitch black. But I want them to have a different color aswell. And it should be the same color, the Instances get... The groundplanes shall be all in one Object. $\endgroup$
    – Tucker
    May 29, 2023 at 11:34
  • $\begingroup$ I see. Ground planes are not instances, so this doesn't work. Should be separate material then. $\endgroup$
    – Crantisz
    May 29, 2023 at 15:24
  • $\begingroup$ oh yeah thank you, with different Materials it´s pretty easy :) $\endgroup$
    – Tucker
    Jun 6, 2023 at 15:05

You must log in to answer this question.

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