Jump to content

Creating mask, matte, from animated geo?


Recommended Posts

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

Screenshot 2022-01-15 092122.jpg

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

@terencemace Some useful stuff. Maybe it Helps! Just Combine .
Hope that you can open those files .
 

Masks and attribf.hiplc

011115.jpg

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 by Librarian
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...