Jump to content

Selective(random) bricks fracturing HELP

Screenglow VFX

Recommended Posts

Hello guys,

I have a beginner question,if someone can help.I have a brick wall (simple box copied on x and then on y) and I want to fracture inside a loop network.Some of the bricks I want to leave them intact and some of them to fracture.In the end I will have random bricks fractured and other bricks intact.I want to use an expression or some other approach so that inside the loop node the bricks to be fracture are selected randomly.

Which is the best approach with this?


Link to comment
Share on other sites

after you copied your box in sops, plug in a connectivity sop set it to primitive. get a primitive wrangle and type in: 

@group_frag = (random(i@class)<0.5);

now you have approx half of your boxes set in a group called frag. blast sop all not inside that group and feed that into your loop. (btw you dont need to loop over them, you can fracture them all at once, just make sure that @class attribute is copied over to new fragments).

merge that result to the bevor blasted prims.

Edited by sekow
Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...