Rival Consoles Posted March 29, 2022 Share Posted March 29, 2022 Hi there, I'm studying Houdini for some time and at this point i'm trying to create something with a little more complexity than the usual. This time, I have a pattern applied to a spherical cage and would like to add a distortion similar to the "liquify" filter from photoshop. I've been experimenting with attribute vop but so far I couldn't get to the aesthetic that I'm looking for. That said, is there a way or how to achieve a liquify effect on geo within Houdini? I'm attaching an image of the sphere that I created and the liquify effect that I'm looking for. Any suggestions would be appreciated. Quote Link to comment Share on other sites More sharing options...
Librarian Posted March 30, 2022 Share Posted March 30, 2022 (edited) this or @Rival Consoles int pts = npoints(1); vector color = 0; for(int i = 0; i < pts; i++){ float age = point(1,"age",i); float life = point(1,"life",i); vector pos = point(1,"P",i); vector id = point(1,"id",i); vector ptColor =point(1,"Cd",i); float nage = age/life; float maxDist = chf("max_dist")*fit01(rand(id),1-chf("dist_var"),1+chf("dist_var")); float dist = distance(v@rest, pos); float width = chramp("width",nage); float sampleMaxDist = maxDist *chramp("spr_motion",nage); float sampleMinDist = sampleMaxDist * width; float intensity = chramp("intens",nage); vector colorTemp = ptColor*chramp("spr_ramp",fit(dist,sampleMinDist,sampleMaxDist,1,0)); colorTemp *= intensity; color = max(color,colorTemp); } v@Cd= color; or use particles on surface with some min pose movement Edited March 30, 2022 by Librarian 1 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.