Is a way to Detect what Cd of surface that particles hit?

   648   2   1
User Avatar
Member
14 posts
Joined: Sept. 2022
Offline
New houdini beginner here. I wanna do this, Particles hit black surface die, hit white surface bounce. any ideas?
Edited by a591280714 - Sept. 19, 2023 02:58:24

Attachments:
QQ图片20230916132732.png (2.2 MB)

User Avatar
Member
9 posts
Joined: Aug. 2016
Offline
If your collisions are handled by a popsolver, there are options in the Collision Behavior tab of the popsolver, to add prim and UV attributes on hit.
With those attributes you can sample any attrib from the hit surface using primuv function in VEX: https://www.sidefx.com/docs/houdini/vex/functions/primuv.html [www.sidefx.com]
User Avatar
Member
14 posts
Joined: Sept. 2022
Offline
play_w_madness
If your collisions are handled by a popsolver, there are options in the Collision Behavior tab of the popsolver, to add prim and UV attributes on hit.
With those attributes you can sample any attrib from the hit surface using primuv function in VEX: https://www.sidefx.com/docs/houdini/vex/functions/primuv.html [www.sidefx.com]
Hi, play_w_madness, Thank you for reply. Another problem here, How to detech which geo particles hit? I wanna group particles based on specific geo particles collide with.
Edited by a591280714 - Sept. 16, 2023 05:47:30
  • Quick Links