Jump to content
Sign in to follow this  
circa23

Color to cloth attribute transfer

Recommended Posts

Hi guys.

I'm pretty new to Houdini and I'm really unsure of the avenue to pursue achieving this effect.

Essentially I have a grid with a solver changing the color of the points over time, like the infection system Simon Holmedal used in the HypervenomII spot. I then want to use this attribute to activate the cloth solver (black not affected, white affected).

I really stumble at what stage in DOPs I can implement this attribute. I tried to add POP force however this doesn't work with cloth. I played a little with the multisolver node and mask input to the gravity however I have no idea how they work.

 

If anyone could shed some light on this it would be massively appreciated.

Scenefile attatched.

Cheers

Al   

 

 

Infect_To_Cloth.hip

Share this post


Link to post
Share on other sites

what exactly are you trying to achieve? is your goal to only have the cloth obejct active and react to forces where the infection has spread (attrib = 1) ?

Share this post


Link to post
Share on other sites

Yeah thats it, I guess the cloth would always be active but the gravity is activated by the attribute.

See pic for reference.

Cheers

 

 Cloth_Grav.thumb.jpg.e67ba76f83ebd31e192b5d1e3f97491d.jpg

Edited by circa23

Share this post


Link to post
Share on other sites

Hi @3dome (and if anyone stumbles upon this thread) I worked out a solution.

It's a multisolver with the cloth object, cloth solver and a sop solver pumped into it. The sop solver (importing infect attrib) is merged with a pop force using a vex  'if else' statement in conjunction with the 'infect' attrib created in SOPS.

It doesn't quite work how Simon Holmedal demo'd it as the un-affected regions still react to the pull from the cloth, rather than being completely static until affected.

Scenefile attached if you're interested.

Cheers

Al

    

 

 

Infect_To_Cloth_Force.hip

Share this post


Link to post
Share on other sites

had a look at your file but it's not working for me?! it just remains flat. even when i fix things like the attribtransfer after the solver it still does nothing. using 16.5.323

 

this is what i came up with

dm_Infect_To_Cloth.hipnc

Share this post


Link to post
Share on other sites

Cheers @3dome !!

When I open the file it isn't transferring the attribute properly in DOP's, Im pretty sure Its because I'm on an older version '15.5.632'. The geometrywrangle you added is a great idea. The VEX expression is exactly what I'm looking for. I'm going to pick it apart and understand it a bit more, then re-build it in my previous version in houdini and see if it takes.

Thanks again for the solution, much appreciated!

Cheers

 

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
Sign in to follow this  

×