Tronotrond Posted December 19, 2019 Share Posted December 19, 2019 (edited) 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 December 19, 2019 by Tronotrond Quote Link to comment Share on other sites More sharing options...
3dome Posted December 19, 2019 Share Posted December 19, 2019 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) Quote Link to comment Share on other sites More sharing options...
Tronotrond Posted January 6, 2020 Author Share Posted January 6, 2020 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. Quote Link to comment Share on other sites More sharing options...
Skybar Posted January 6, 2020 Share Posted January 6, 2020 It's pretty straight forward, like Dominik said: mattextopoint.hipnc 1 Quote Link to comment Share on other sites More sharing options...
Tronotrond Posted January 6, 2020 Author Share Posted January 6, 2020 36 minutes ago, Skybar said: It's pretty straight forward, like Dominik said: mattextopoint.hipnc Thank you so much! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.