hindukush Posted January 30, 2018 Share Posted January 30, 2018 Hi everybody! I'm working on a paint peeling effect, i need to make the paint fragments to disappear, they are obtained from voronoi fracture , i have set up a loop to make them scale down, it works but i need make it work only on the active fragments and not on those are still in place, i have an i@active attribute to interact with the cloth solver. Any help would be great, thanks in advice! Carlo Quote Link to comment Share on other sites More sharing options...
Sepu Posted January 31, 2018 Share Posted January 31, 2018 Have a look at this. It should give you a few pointers https://www.youtube.com/watch?v=rHeFoy6hrIs Quote Link to comment Share on other sites More sharing options...
hindukush Posted January 31, 2018 Author Share Posted January 31, 2018 Hi Sepu! Thanks alot!, I aready saw this, i'm at the point that i have those fragments animated and i whant them to disappear after a certain distance from the original position... Can't find a way... C. Quote Link to comment Share on other sites More sharing options...
Atom Posted January 31, 2018 Share Posted January 31, 2018 You could run an attribute wrangle over the i@active group and reduce the f@Alpha attribute over time. When f@Alpha is zero the piece should be invisible. Quote Link to comment Share on other sites More sharing options...
hindukush Posted February 1, 2018 Author Share Posted February 1, 2018 Hi atom! Thanks for the hint! Here come a noob question...since i@active is 0 when still and 1 when moving....how i connect Alpha wich is the opposite value...0 when active and 1 when still...? Hope u understand my dubt!:-) Carlo Quote Link to comment Share on other sites More sharing options...
Atom Posted February 1, 2018 Share Posted February 1, 2018 Try placing the wrangle in your existing loop and set the group for the wrangle to i@active==1. Quote Link to comment Share on other sites More sharing options...
hindukush Posted February 5, 2018 Author Share Posted February 5, 2018 (edited) Hi Atom! I have slightly changed way to make them disappear...instead of scale down each shard or simply fade his alpha which are a little fake I'm trying to blast the single vertices as they are bumped up from the surface. So I did use group but directly in the blast node,and it works! But i have a new problem;-) If i do use the @active attribuite it will disappear as soon as it moves...i would like to have some delay between the bumping and the corrosion. So I need a new attribute (@corrosion) For this porpouse i think to do something like: @corrosion=@active+something that increase over time. Create a group of those points who reach a value of corrosion of 1.5 for example...and blast that group. There is a way to add 0.1 each frame? Other than animate a slider of course! I will post the scene tomorrow! Thanks a lot! C. Edited February 5, 2018 by hindukush Quote Link to comment Share on other sites More sharing options...
coltonmil Posted February 5, 2018 Share Posted February 5, 2018 You'll need another attribute that has the frame at which the points activate, so you can compare current frame and activation frame, and then remove them when they exceed 1.5. Something like: @corrosion = (@Frame - i@activationFrame) * .1; if (@corrosion > 1.5){ removepoint(geoself(),@ptnum); } For user-friendliness it'd be nice to replace those hard coded numbers with sliders though @corrosion = (@Frame - i@activationFrame) * ch("FrameStep"); if (@corrosion > ch("KillThresh")){ removepoint(geoself(),@ptnum); } Quote Link to comment Share on other sites More sharing options...
hindukush Posted February 6, 2018 Author Share Posted February 6, 2018 Hi Peon! Thanks for the help!Is a great hint! i have some dubt...if i 'm at frame 1 and subtract 50...is 49...if i multiply that for -0.1...is -4.9...not in the range... I also can't understand how increase of 0.1 each frame..is a loop needed? I attach the scene file! Thanks alot! C. cloth_tear_collision_test.hipnc Quote Link to comment Share on other sites More sharing options...
hindukush Posted February 7, 2018 Author Share Posted February 7, 2018 OK solved...with a solver! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.