13
$\begingroup$

Is it possible to change a particle's color to the color of the face/texture part it comes out of in cycles?

I want it to be the color of the face after shading and all that other stuff

$\endgroup$
2

1 Answer 1

20
$\begingroup$

Texture coordinates from Dupli

You can make your particles materials inherit the Emitting Object's UV Coordinates to project the texture onto your particles.

You can simply unwrap the parent object (particle emitter in your case) and with the Texture Coordinates node set as in the picture, you'll be able to acces to the coordinates of the UV map of the surface point where the particle is born.

enter image description here

enter image description here

By assigning the same material to the Emitter an Particles and using the texture as a shader mask you'll be able to achieve a perfect correspondecy between the objects:

enter image description here

Above you can see a plane initially emitting diffusive blue particles, than some areas of the surface switch to glossy-pink shading and particles follow this change because the material is the same.

$\endgroup$
8
  • $\begingroup$ Sorry, should have clarified. I want it to be the color of the face after shading and all that other stuff $\endgroup$
    – user17982
    Commented Sep 8, 2015 at 3:56
  • $\begingroup$ @user17982 add that your original question $\endgroup$
    – Highstaker
    Commented Sep 8, 2015 at 8:43
  • $\begingroup$ How would you set up a texture as a shader mask? $\endgroup$
    – user17982
    Commented Sep 8, 2015 at 21:43
  • $\begingroup$ By using the Texture's output as Factor's imput of a Mix Shader node. If the texture is RGB convert to BW before or take one channel with Separate RGB node. $\endgroup$
    – Carlo
    Commented Sep 8, 2015 at 22:07
  • $\begingroup$ Could you upload a blend? I'm still confused $\endgroup$
    – user17982
    Commented Sep 8, 2015 at 22:17

You must log in to answer this question.

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