terencemace Posted January 15, 2022 Share Posted January 15, 2022 Good morning, I'm trying to find a way to create a mask, or black and white matte, of my subdivided, transformed geo. (see attached.) As the falloff is animated, I need to be able to create a matte so anything transformed and subdivided is white, and the unchanged grid is black. Thank you for any ideas! T Quote Link to comment Share on other sites More sharing options...
flcc Posted January 15, 2022 Share Posted January 15, 2022 Hi terence - You say "a mask of my subdivided, transformed geo", but In your sketch you show white area on non subdivided area. - You say matte, are you after a bitmap mask for some post processing ? - You have already a falloff . probably a solution here, but without take a look at your file difficult to say. A file and some infos will help people to help you. Quote Link to comment Share on other sites More sharing options...
Librarian Posted January 15, 2022 Share Posted January 15, 2022 (edited) @terencemace Some useful stuff. Maybe it Helps! Just Combine . Hope that you can open those files . Masks and attribf.hiplc and this vex can make some nice stuff vector inf_pos = point(1,"P",0); float radius = chf("rad"); int handle = pcopen(0,"P",inf_pos,radius,chi("maxP")); int ptnum = -1; float distance= 0.0; while(pciterate(handle)) { pcimport(0,"point:number",ptnum); pcimport(0,"point:distance",distance); if(distance > radius- chf("trash")) { vector pos = point(0,"P",ptnum); vector dir = normalize(pos -inf_pos); setpointattrib(0,"P",ptnum,pos+dir *chf("pushdist")); setpointattrib(0,"Cd",ptnum,{1,1,0}); } else { setpointattrib(0,"Cd",ptnum,{0,0,1}); } } Edited January 15, 2022 by Librarian Quote Link to comment Share on other sites More sharing options...
terencemace Posted January 15, 2022 Author Share Posted January 15, 2022 Thanks guys, I'll take a look. Cheers. 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.