Jump to content
Sign in to follow this  

Dynamically Adding Geo to Vellum solver

Recommended Posts

Is there a way to dynamically add geometry to a vellum solver?  

I have a situation where I'm generating new patches of geometry every ten frames.  The vellum solver is only solving for the first patch, but not picking up the rest.  The newly created geo is showing up in the vellum configure node, but not the solver. 

Any ideas?

Many thanks!






Share this post

Link to post
Share on other sites

@tamagochy Thanks for the reply!  I tried this and it almost works.  There's a couple of problems I run into:

The geo is being added every frame, thus the geometry is being duplicated every frame.  I'm spawning the different patches every 10 frames, therefore the vellum source is making 10 copies for each patch.

I'm losing all dynamics - the solver stops working and the geo becomes static. 

Any idea on how to add geometry only on a single frame? 

Thanks again

Share this post

Link to post
Share on other sites

Okay, so I figured out how to add geo every specific frame through some vex wrangling.  Kinda hacky, but it works in the Vellum Source node by adding the geo every 10 frames. 

//Cycle every 10 frames
int prim = (@Frame*0.1)%9
i@p = prim;

i@n = 1;
if((@Frame * 0.1)%9==@p)
//turn n on and off
    @n = 0;

//Add to group ONLY every 10th frame
if(@n == 0){
    setprimgroup(0, "patchGrp", prim, 1, 'set');


Problem is, the geo that's added is not being solved!  Here's my node setup:


I'm throwing the patches directly into the solver, which (not surprisingly) isn't working.  

How do I solve for geo that's dynamically added to the vellum solver through the vellum source node?


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
Sign in to follow this