Particles Color from Object

   170   3   0
User Avatar
Member
72 posts
Joined: March 2016
Offline
Hey All,
Im still very new to particles so Im doing some experimenting. Can someone point me in the direction of how to get my particles to get their color from my model? Right now I have them set up to get their colors from a color ramp.

Im on Houdini 20.0.688




Image Not Found
Edited by vishnu1024 - Jan. 2, 2025 11:06:42

Attachments:
CokeTest.png (4.0 MB)
Screenshot 2025-01-02 at 11.05.59AM.png (569.4 KB)
Screenshot 2025-01-02 at 11.05.59AM.png (569.4 KB)

User Avatar
Member
8853 posts
Joined: July 2007
Offline
Make sure your particles inherit uv attribute from the can

Then use Attribute From Map SOP to sample the same texture you are using on the can
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
72 posts
Joined: March 2016
Offline
tamte
Make sure your particles inherit uv attribute from the can

Then use Attribute From Map SOP to sample the same texture you are using on the can

Thank you very. I'll give this a try. The can has several materials on it, would I need to put all of them on one uv/ Texture sheet?
User Avatar
Member
8853 posts
Joined: July 2007
Offline
Not necessarily, there is a plenty of ways you can approach it

Id probably store texture path as an attribute on the can geo so that the particles inherit it also

To do this you can either assign it in SOPs to the same elements as your materials
Or you can do a small Python SOP to extract the texture paths based on materials assigned through s@shop_materialpath attribute

Then you can use something like
v@Cd = texture( s@texture_path, v@uv.x, v@uv.y );
To sample the color in VEX
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links