anthonymcgrath Posted February 26, 2017 Share Posted February 26, 2017 hey all this one is really biting my butt - i've got a grains setup with a simple shape passing through it - much like the classic balloon and bullet vids.. i cant get the grains to stay still tho!!!! its really winding me up - i added an attribute targetweight which is based on colour. My understanding is the red points would be pinned and the black would hang. So i'd at least get something hanging on... but all the points fall. can anyone suggest any ideas please or take a look at my scene see where i'm going wrong - i'm trying like hell to understand getting the attributes into a dopnet but for some annoying reason it never seems to work for me balloon_pop_v01_grains.hip Quote Link to comment Share on other sites More sharing options...
fencer Posted February 26, 2017 Share Posted February 26, 2017 how about balloon_pop_v01_grains.hipnc 1 Quote Link to comment Share on other sites More sharing options...
6ril Posted February 26, 2017 Share Posted February 26, 2017 (edited) If you want to simply pins them, you can replace your targetweight wrangle with this @mass = @Cd.x; setting mass to 0 act as pinning. but it will just separate your grains into 2 blocks. Edited February 26, 2017 by 6ril 1 Quote Link to comment Share on other sites More sharing options...
anthonymcgrath Posted February 26, 2017 Author Share Posted February 26, 2017 @fencer wow this seems to work pretty well thankyou didn't even know there was a pop awaken in there - that seems to work quite well and provides a nice pinning point too@6ril thankyou that also works quite well but like you say it separates into two chunks - i was actually trying to suss out where to set the @mass tbh as i'd read something about that but was utterly lost where to find the attribute in the dopnet :/ thanks guys if you have any other suggestions i'm all ears! I was thinking further and wondering if i can create a simple cloth shape from the original balloon mesh in my scene and usethat to 'hold' the grains in place. might be a bit heavy and sluggish tho? Quote Link to comment Share on other sites More sharing options...
anthonymcgrath Posted February 26, 2017 Author Share Posted February 26, 2017 to add is there a way to pin the upper grains and have the others dangle from it at all? I was thinking this setup would make an interesting snot setup lol so the top grains hold the others beneath and they swing about maybe ? Quote Link to comment Share on other sites More sharing options...
6ril Posted February 26, 2017 Share Posted February 26, 2017 not sure (no exp with grains), but you might have to use constraints for holdin them up together ? If so, I think it's not compatible with opencl.. (I would keep switchin opencl on and off : / ) There's some info in the doc. 1 Quote Link to comment Share on other sites More sharing options...
anthonymcgrath Posted February 26, 2017 Author Share Posted February 26, 2017 3 minutes ago, 6ril said: not sure (no exp with grains), but you might have to use constraints for holdin them up together ? If so, I think it's not compatible with opencl.. (I would keep switchin opencl on and off : / ) There's some info in the doc. ok will try that out - i did try a target constraint - that seemed to work on groups of points with a FEM sim a while back - dunno if it works with pop grains tho but will try ! 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.