benttoenail Posted November 11, 2021 Share Posted November 11, 2021 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! -max Quote Link to comment Share on other sites More sharing options...
tamagochy Posted November 12, 2021 Share Posted November 12, 2021 use vellum source and turn continuous mode Quote Link to comment Share on other sites More sharing options...
benttoenail Posted November 15, 2021 Author Share Posted November 15, 2021 @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 Quote Link to comment Share on other sites More sharing options...
benttoenail Posted November 15, 2021 Author Share Posted November 15, 2021 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? Quote Link to comment Share on other sites More sharing options...
HM_2020 Posted November 18, 2021 Share Posted November 18, 2021 Would this help? 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.