Jump to content
Marcomeeuwse

box stacking no interpenetration

Recommended Posts

hi, Im looking for a way to stack boxes like this! they should be like delivery packages

image.png.f736cdace2aff92ba6688555a7368f03.png   image.thumb.png.1fc3519c3133739a07a4a1526e93a172.pngat the moment i've got this image.png.254bcb62189055f1fb3d53ea05bc9d87.png

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

image.png.d2b728e655de2a9fa4ce7506535c0210.png

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

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

×