Saya Posted October 11, 2019 Share Posted October 11, 2019 hi, Im looking for a way to stack boxes like this! they should be like delivery packages at the moment i've got this so boxes should stack like a tower and have different heights, width, and depth. In the end they should come together in a point. Right now i've used a cirlce and a scatter and copied the boxes onto that. that causes interpenetration and i've solved that with the uv layout texture. This comes with somes other issues but lets leave it at that. stacking them now is transforming another set of boxes on top of it. Hope someone can help me out. I've got a file attached on how i've approached this thingy so far Cheers! box stacking packing.hipnc Quote Link to comment Share on other sites More sharing options...
toadstorm Posted October 11, 2019 Share Posted October 11, 2019 Use RBD. Set a point attribute on your (packed) boxes, i@found_overlap=1, then run the boxes through a packed RBD simulation. That point attribute will force the Bullet solver to separate the boxes on the initial frame. You might have to use drag / sleeping to get them to settle properly afterwards without too much mess. Quote Link to comment Share on other sites More sharing options...
Saya Posted October 14, 2019 Author Share Posted October 14, 2019 Hi Toad, the point attribute expression works perfectly. However, getting the boxes not to fall (to much) with the use of "drag forces" is without success for me. Additionally, i cannot find the "sleeping"(probably a force too) thing you mentioned. Cheers! gift tower.hipnc Quote Link to comment Share on other sites More sharing options...
ThomasPara Posted October 14, 2019 Share Posted October 14, 2019 Heres a quick and dirty setup of the concept Toad was talking about. scatterbox_01.hiplc 5 Quote Link to comment Share on other sites More sharing options...
Saya Posted October 14, 2019 Author Share Posted October 14, 2019 wow thanks! wouldn't have thought of frame by frame stacking. Also not how to do that much in VEX. Thanks. This give me something new to play with Quote Link to comment Share on other sites More sharing options...
ThomasPara Posted October 15, 2019 Share Posted October 15, 2019 np, happy you liked it Quote Link to comment Share on other sites More sharing options...
Saya Posted November 7, 2019 Author Share Posted November 7, 2019 Hi Thomas, This is created with a foreach, a curve and a ramp for thickness control. the goal now is to fix the interpenetration from the boxes. I've tried to re-create and edit your simulation to get something like this but I feel like im missing some understanding on vex or how the sopsolver works. Hope you can point me in the right direction on how to approach this. Thanks in advance marco scatterbox_03.hipnc Quote Link to comment Share on other sites More sharing options...
vinyvince Posted December 22, 2020 Share Posted December 22, 2020 (edited) On 07/11/2019 at 4:02 PM, Marcomeeuwse said: Hi Thomas, This is created with a foreach, a curve and a ramp for thickness control. the goal now is to fix the interpenetration from the boxes. I've tried to re-create and edit your simulation to get something like this but I feel like im missing some understanding on vex or how the sopsolver works. Hope you can point me in the right direction on how to approach this. Thanks in advance marco scatterbox_03.hipnc You don't need a DOp to fix the penetration problem, the problem come from the resample which drive the copy number with a box of one unit. If you project your curve to straight line and compute your resample distance there and comeback to your curve after, it works, no box penetration. ( i tweak your curve and ramp here but that's not important obviously) Now this become more difficult if you have piece with different topology and size... ________________________________________________________________ Vincent Thomas (VFX and Art since 1998) Senior Env and Lighting artist & Houdini generalist & Creative Concepts http://fr.linkedin.com/in/vincentthomas Edited December 22, 2020 by vinyvince 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.