Attribute Flow --> Solver SOP

   389   3   1
User Avatar
Member
260 posts
Joined: July 2006
Offline
Hello,
I am trying to solve a problem, but kind of stuck

Basically I am trying to do a propagation, but only based on a vector available per point on the attribute itself, so if the underlying point says go right, spread should be only to the right, and next frame we query again, check the vector and only spread along that direction.

So I played around with points in a solver sop, pcopen check the nearest attribute on the surface @P+=v@dir; and points move as expected.

But how do I do that for an attribute on the geo itself. Well I mean not the attribute but the value of the next point that should inherit the value on the neighboring point based on the direction vector. Almost like a 2d gas solver I suppose. But the surface is not a plane, and UVs are not very straight forward to work on UV space on a grid.
Open to ideas, Thanks
Edited by tricecold - May 10, 2024 18:00:38
Head of CG @ MPC
CG Supervisor/ Sr. FX TD /
https://gumroad.com/timvfx [gumroad.com]
www.timucinozger.com
User Avatar
Member
1748 posts
Joined: May 2006
Online
pccone maybe? i used that to art direct particles to check for collisions, move on paths. thinking out loud, you should be able to do that to just lookup in a specific direction and then ask 'should i be infected?'

https://www.tokeru.com/cgwiki/PopsSplitAvoid.html#pccone [www.tokeru.com]
http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
User Avatar
Member
260 posts
Joined: July 2006
Offline
Yep, that must be it, i was thinking to solve this from wrong direction as how do i affect the next guy rather than should be infected, let me give that a spin
Head of CG @ MPC
CG Supervisor/ Sr. FX TD /
https://gumroad.com/timvfx [gumroad.com]
www.timucinozger.com
User Avatar
Member
1748 posts
Joined: May 2006
Online
i mean the other way probably works too, but usually with vex its better to think 'can i sample the points around me and then set a value on myself' vs 'can i sample the points around me and set their values'.
http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
  • Quick Links