Jump to content

Multi-Shader RBD sim, diffuse to Cd


Recommended Posts

I'm wondering if anyone could help with some suggestions here. I was scanning through the forums and not really finding what I'm looking for - and perhaps I'm approaching this in the wrong way.

I have an RBD sim with dissolving parts. The RBD naturally contains multiple objects with a handful different shaders and diffuse maps attached to them.
As the pieces dissolve, I need particles to be emitted, but I'd like the particles to pick up the diffuse map color so they somewhat match the look and color of the rendered pieces. No need for super accuracy, just something close.

 

If it was one object, I could bake the texture and/or use Attribute from Map, but since there's multiple materials here, I am not quite sure how to approach it.
Would appreciate any suggestions. Thanks!

Edited by Tronotrond
Link to comment
Share on other sites

just a random thing that popped into my mind:

storing the sourceprim a particle was emitted from, using that with primuv() to lookup the shop_materialpath attribute to get the shader assinged to that sourcprim and from there get the texturepath (not figured out that part)

Link to comment
Share on other sites

  • 3 weeks later...

Thanks, and sorry for the late reply. Been away for some holidays travels.

I thought about the same thing, and I also got stuck at the same point, haha. Not quite sure how to get the material diffuse map through VEX, from having the shop_materialpath. Perhaps need a Python snippet for that.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...