Jump to content

Help with "nearbyPts" -- Trail/Curves generated from Alembic volumetric capture mesh

Recommended Posts

Posted (edited)




I'm trying to achieve the effect of trail curves generated from a mesh-like the example above. (credits to matt from CgWiki)



In my case, the mesh is an alembic mesh from a volumetric scan (above) - thus the topology is a mess and points move around or change ID every frame due to the scanning process. 

I've been trying different ways to connect the points that are emitted from the mesh through a popnet, however instead of getting a continuous curve, I get messy shapes and triangle forms. 

I've been using the attributeWrange with this VEX by acey195 on OCDFORCCE:



int nearbyPts[], pt, connectingPrim;
nearbyPts = nearpoints(0, v@P, chf("range"));

foreach(pt; nearbyPts)
        if(pt <= @ptnum)
    connectingPrim = addprim(0, "polyline");
    addvertex(0, connectingPrim, @ptnum);
    addvertex(0, connectingPrim, pt);



This is how it looks with the wrangle: 



And this is the particles:




I very much appreciate someone guiding me through this to be able to get continuous trail curves out of this particular deforming shape: like the example with the sphere.

I guess that means creating arguments to not repeat using the same point more than once with the price of missing some odd/far points.


I'm new to Houdini btw :)

Thanks a lot!





Edited by Omitsu

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now