Sharpen Mesh

   1773   4   1
User Avatar
Member
385 posts
Joined: 7月 2018
Offline
Is there a way to sharpen a mesh, that doesnt involve VDBs?
User Avatar
Member
7805 posts
Joined: 9月 2011
Online
Have you tried a negative blend with a blurred mesh?
User Avatar
Member
385 posts
Joined: 7月 2018
Offline
jsmack
Have you tried a negative blend with a blurred mesh?
yes tried that but its not what i'm looking for. The best example i've seen so far is this video

https://www.youtube.com/watch?v=bRNMVfn_Cl0&list=PLk8eJfNApHfKP7EIrIb6ErBtdGEIOyS22&index=108&t=0s [www.youtube.com]

What i cant figure out is how do you get the points to move on to the surface and not just straight through the mesh
User Avatar
Member
7805 posts
Joined: 9月 2011
Online
Hmm, that looks like a curvature/Laplacian approach. Maybe fiddle with the measure sop.
User Avatar
Member
4530 posts
Joined: 2月 2012
Offline
Maybe try something like this in Point Wrangle:

vector pcfilter2 ( int input; int pts [ ]; float dist [ ]; string attrib )
{
    float sum = 0, w, d;
    vector value, result = 0;
    float maxd = dist [ -1 ];
    int count = len ( pts );
    for ( int i = 0; i < count; ++i )
    {
        value = point ( input, attrib, pts [ i ] );
        w = 1 - smooth ( 0, 1.1 * maxd, dist [ i ] );
        sum += w;
        result += w * value;
    }
    result /= sum;
    return result;
}

float radius = ch("r");
int maxpts = chi("maxpts");
float dist [ ] = { };
int pts [ ] = pcfind ( 0, "P", @P, radius, maxpts, dist );
vector blurred = pcfilter2 ( 0, pts, dist, "P" );
@P += ( @P - blurred ) * ch("amount");
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
  • Quick Links