Jump to content
IhabAli

Vellum intersections upon instancing

Recommended Posts

Hello,

i have a setup using instancing from the vellum source node. I’m essentially using single point each frame to instance a vellum patch. The trouble is, if the instance happens to be created intersecting with an already instanced patch the they seem to weld together. It’s not actual welding but I think the collision algorithm just gets confused and keeps the overlapping surfaces stuck together as it tries to minimize intersections between the pscales of these points. Is there anyway to resolve that?

Share this post


Link to post
Share on other sites

In case anyone is interested this is my temporary fix to the issue so that my patches don't stick together:

I added a pop wrangle node after my vellum source to make sure this is the last step of the sim.

Inside this is what I have

if(@overlap_self>0&&@overlap_self<999)

{

@disableslef=1;

}

else

{

@disableself=0;

}

 

basically disables self collision if an overlap is detected...at least this is how I understand it. it seems to work..

Share this post


Link to post
Share on other sites

Hey IhabAli,

I just wanted to say Thank you! for sharing your solution! It helped me a ton in my current project! 

Cheers

CYTE

Share this post


Link to post
Share on other sites

Thank you IhabAli, very useful piece of code. I was scratching my head with overlapping sticky collisions for a long time. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×