12
$\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$
  • $\begingroup$ Could you clarify the last part and provide an example of what you are looking for? $\endgroup$ – Carlo Sep 8 '15 at 10:34
15
$\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$
  • $\begingroup$ Sorry, should have clarified. I want it to be the color of the face after shading and all that other stuff $\endgroup$ – user17982 Sep 8 '15 at 3:56
  • $\begingroup$ @user17982 add that your original question $\endgroup$ – Highstaker Sep 8 '15 at 8:43
  • $\begingroup$ How would you set up a texture as a shader mask? $\endgroup$ – user17982 Sep 8 '15 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 Sep 8 '15 at 22:07
  • 1
    $\begingroup$ Here it is: blend-exchange.giantcowfilms.com/b/482 $\endgroup$ – Carlo Sep 8 '15 at 22:38

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.