# Testing SLICE and CUT meshes and skeletal meshes

**URL:** <https://forums.unrealengine.com/t/testing-slice-and-cut-meshes-and-skeletal-meshes/92325>\
**Category:** Game Development\
**Tags:** unreal-engine\
**Created:** [May 17, 2017, 4:10pm UTC](https://forums.unrealengine.com/t/testing-slice-and-cut-meshes-and-skeletal-meshes/92325 "2017-05-17T16:10:36Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![VerumBit](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/verumbit/32/750218_2.png) [@VerumBit](https://forums.unrealengine.com/u/VerumBit)\
**Post date:** [June 7, 2017, 4:22pm UTC](https://forums.unrealengine.com/t/testing-slice-and-cut-meshes-and-skeletal-meshes/92325/41 "2017-06-07T16:22:07Z")

</div>

Another test on slicings Trees and Giant moving Spheres.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/7/2/472443a49c5e088d2e87332af2372506a050904d.jpeg "Katana Cut Trees & Giant Spheres") ](https://www.youtube.com/watch?v=nCauAmOM9-w)

---

<div class="post-metadata">

**Author:** ![Roamin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Roamin](https://forums.unrealengine.com/u/Roamin)\
**Post date:** [June 7, 2017, 10:12pm UTC](https://forums.unrealengine.com/t/testing-slice-and-cut-meshes-and-skeletal-meshes/92325/42 "2017-06-07T22:12:48Z")

</div>

Awesome work @. Could you post some more information on how you fixed cutting skeletal meshes while they are animating? I want to achieve the effect you have in your video here [https://www.youtube.com/watch?v=cf2mjgBUb-Q](https://www.youtube.com/watch?v=cf2mjgBUb-Q). I’m running into the problem you had where the mesh does not animate after being cut. If you don’t want to post your project yet a screenshot of the blueprint where you attach the new mesh to the proper socket would be very helpful.

---

<div class="post-metadata">

**Author:** ![Shisou](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shisou](https://forums.unrealengine.com/u/Shisou)\
**Post date:** [June 9, 2017, 1:38pm UTC](https://forums.unrealengine.com/t/testing-slice-and-cut-meshes-and-skeletal-meshes/92325/43 "2017-06-09T13:38:15Z")

</div>

> [@Aumaan Anubis;719442](#):
>
> Can you post a screenshot of your changes, and a video of the issue?

I edited the post and added an image in the same post. ^^  
The “problem” is not really a problem, when you be a godlike fantasy warrior that can slash all and everything. xD  
But imagine the following: A big wall is in front of you, like 100x100 meter, you attack at the bottom and the complete wall is sliced, no matter how high or wide it is. ^^"  
I think the best usage of the slice is for small objects like barrels, trees, ropes, chains and so.

---

<div class="post-metadata">

**Author:** ![Shisou](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shisou](https://forums.unrealengine.com/u/Shisou)\
**Post date:** [June 9, 2017, 2:22pm UTC](https://forums.unrealengine.com/t/testing-slice-and-cut-meshes-and-skeletal-meshes/92325/44 "2017-06-09T14:22:01Z")

</div>

> [@;719474](#):
>
> Hi Shisou,  
> thanks, I appreciate any possible personalization on the slice effects you want to obtain.  
> Here my answers:
> 
> - ’ the created meshs can’t be sliced’: because you set the code not in the player BP but on the slicemesh BPrint and the new half mesh will be a NEW proc mesh that you can not cut untill you add extra code to manage it, but then a new sliced mesh will come out and you will have to add code to manage also that…and so on…which is not the best way. In order to cut ANY mesh or slicedmesh you have to keep the code in the player Bprint.
> - About the length of the katana cut…15mt or 2mt, it depends on the scale of the procedural mesh parameter and also on the collision of the static mesh you choose:  
> the procedural mesh scale should stay 1,1,1. If you set more than 1, the cut performance will be distorted and zoomed. When you choose a static mesh, it’s collision creates also the procedural mesh collision that will drive the blade overlap…so the more precise the collision is set on the static mesh the better are the slices. You can substitute the OVERLAP with the HIT , trace it and see if gives you better results.
> - If you already have an animation attack with your katana and you want to decide when to start the cut and when to stop go in the animation montage section and add 2 New Notifies: startcut and stopcut exactly where you want…use these notifies in the bprint to manage the cut timing. I did so, works fine and I can change easily the cut activation moment or even place 2 cut moments in the same animation.

Thanks for the answers.

- I didn’t tested the “hit event”, because I thought it would only work with a mesh that is blocking other meshs and not overlapping. I’ll give it a try and also other ideas I have, maybe something will work. ^^

- I don’t have and use animations for attack. I use a dynamic battle system with manually bone movement.

- In your video, I saw a problem that you have with your slice. With one attack, you can’t slice through two objects at the same time, so maybe you should try it with the delay or change the “doOnce” with “branch” and as boolean “is currently animating?”, so it would slice as long the animation is running. How I said, I don’t have attack animations, so I can’t test it out, I can you only give possible solutions. ^^"  
([https://youtu.be/QkYVLicKbNQ?t=66](https://youtu.be/QkYVLicKbNQ?t=66) at the 2 green blocks, when you make the cut near the corner, the angle say that the cut should also be go through the bottom block)

- I did one mistake in my “solution #2”.  
I have misunderstand the “delay”. It does not go to the next step after the duration is finished, instead it needs constantly input until duration reaches 0 and then it goes to the next step.  
Example: Mouse movement -\> delay (1 sec) -\> slice  
Means: You have to move the mouse continuous for 1 sec. and then it slices the mesh. (But when the mouse is already moving after the first cut, it makes more cuts with less wait time, not so fast as without it, but faster as the 1 sec.)  
Of course, it is better as omit it and slice the mesh with high repetition, but it is not the “wait time” that I really wanted to have.

---

<div class="post-metadata">

**Author:** ![VerumBit](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/verumbit/32/750218_2.png) [@VerumBit](https://forums.unrealengine.com/u/VerumBit)\
**Post date:** [June 9, 2017, 7:06pm UTC](https://forums.unrealengine.com/t/testing-slice-and-cut-meshes-and-skeletal-meshes/92325/45 "2017-06-09T19:06:02Z")

</div>

I reply to a comment of Marvin Cruz on the youtube video asking if also the red cut material can be managed and edited. Yes I’ve just done was simple than I tought: just added a material in the procedural mesh construction script, made it editable and SET it. Then in Player Bprint I just got it with a cast to proc mesh and connected to the Slice mesh material. It works for all meshes. 🙂  
 ![6dafb28a98870ee047188811eaa8a32a7de1f1f7.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

---

<div class="post-metadata">

**Author:** ![VerumBit](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/verumbit/32/750218_2.png) [@VerumBit](https://forums.unrealengine.com/u/VerumBit)\
**Post date:** [June 9, 2017, 7:24pm UTC](https://forums.unrealengine.com/t/testing-slice-and-cut-meshes-and-skeletal-meshes/92325/46 "2017-06-09T19:24:59Z")

</div>

To Shisou:  
For the big wall my suggestion is to create small cubes and build the wall with them…like brick by brick…so you will cut only the bricks you hit.  
Thanks for the multiple cut suggestion…I’ll test it in order to cut 2 meshes with one animation.

---

<div class="post-metadata">

**Author:** ![VerumBit](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/verumbit/32/750218_2.png) [@VerumBit](https://forums.unrealengine.com/u/VerumBit)\
**Post date:** [June 9, 2017, 7:34pm UTC](https://forums.unrealengine.com/t/testing-slice-and-cut-meshes-and-skeletal-meshes/92325/47 "2017-06-09T19:34:40Z")

</div>

> [@Roamin;720988](#):
>
> Awesome work @. Could you post some more information on how you fixed cutting skeletal meshes while they are animating? I want to achieve the effect you have in your video here [https://www.youtube.com/watch?v=cf2mjgBUb-Q](https://www.youtube.com/watch?v=cf2mjgBUb-Q). I’m running into the problem you had where the mesh does not animate after being cut. If you don’t want to post your project yet a screenshot of the blueprint where you attach the new mesh to the proper socket would be very helpful.

You have to create a new socket on the skeleal bone and then attach the mesh to the new socket. I discovered this after many tests on the head: when I hit the head I HIDE the original head and you see the procedural mesh head been sliced…the problem is that IF you HIDE a bone like the head also the socket of that bone deactivates and the mesh falls down. So creating a new socket on that bone and attaching the proc mesh head there it will stay up.  
See the pics attached with the new headsocket I created on the head bone and aslo the part of code I use to cut skeletals BUT IS NOT YET WORKING PERFECTLY beacuse the capsule collision is not working good and enemy has strange dynamics like not moving after a cut (plays animations but stays in place) or rotating the pelvis and all body mesh some times if I hit while he is jumping and never go back straight…so the code is just a tentative.

 ![headsocket.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/2/42ecf645f8695021883ade10688d52afb97adcab.jpeg)

 ![skeletal_cut_test1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/a/6a48632143d59512f9d9e2913fa6b08d9b075b43.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9d7a9e0b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9d7a9e0b](https://forums.unrealengine.com/u/anonymous_user_9d7a9e0b)\
**Post date:** [June 10, 2017, 11:13am UTC](https://forums.unrealengine.com/t/testing-slice-and-cut-meshes-and-skeletal-meshes/92325/48 "2017-06-10T11:13:30Z")

</div>

Looking great mate! Keep up the good work!

PS- I see you’re Portuguese as well 🙂

---

<div class="post-metadata">

**Author:** ![iamrob88](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@iamrob88](https://forums.unrealengine.com/u/iamrob88)\
**Post date:** [June 11, 2017, 5:05am UTC](https://forums.unrealengine.com/t/testing-slice-and-cut-meshes-and-skeletal-meshes/92325/49 "2017-06-11T05:05:02Z")

</div>

subscribed

---

<div class="post-metadata">

**Author:** ![VerumBit](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/verumbit/32/750218_2.png) [@VerumBit](https://forums.unrealengine.com/u/VerumBit)\
**Post date:** [June 12, 2017, 8:45pm UTC](https://forums.unrealengine.com/t/testing-slice-and-cut-meshes-and-skeletal-meshes/92325/50 "2017-06-12T20:45:49Z")

</div>

> [@;722078](#):
>
> Looking great mate! Keep up the good work!
> 
> PS- I see you’re Portuguese as well 🙂

Thanks , sure I keep on it. Actually I’m testing a lot of alternatives for the wolverine project…it’s interesting to discover how good & realistic stuff comes out from these tests!  
I was looking the new E3 game trailers and admired these huge game scenarios, huge effects and animations…really inspiring stuff.  
Sometimes I discover an effect or a scenario not yet explored and not yet used into a game and if I like it I try to jump into it and challenge myself on how much I can do to realize it and to reach the goal line I set. It’s just challenging myself!

PS. Not portuguese but half english half italian…and I must say Lisbona is fantastic city! 🙂

---

<div class="post-metadata">

**Author:** ![Shisou](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shisou](https://forums.unrealengine.com/u/Shisou)\
**Post date:** [June 14, 2017, 4:18am UTC](https://forums.unrealengine.com/t/testing-slice-and-cut-meshes-and-skeletal-meshes/92325/51 "2017-06-14T04:18:16Z")

</div>

After a few tests, I now have 2 slice variations that work well, #1 with overlap and #2 with hit.  
They are designed for bone transform movement. @: but maybe it inspires you and helps you at your version for animations.  
Because of the strange collision impulse between objects, I prefer the overlapping version.

The node “Convert Physics Linear Velocity” is from 's victory plugin (-\> [(39) 's Extra Blueprint Nodes for You as a Plugin, No C++ Required! - Blueprint - Epic Developer Community Forums](https://forums.unrealengine.com/showthread.php?3851-(39)--s-Extra-Blueprint-Nodes-for-You-as-a-Plugin-No-C-Required!)).  
It can be replaced with the node “VectorLength”.  
I also attached a text file with the code, so it can be easily copied from the text file and pasted into a blueprint.

---

<div class="post-metadata">

**Author:** ![VerumBit](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/verumbit/32/750218_2.png) [@VerumBit](https://forums.unrealengine.com/u/VerumBit)\
**Post date:** [June 14, 2017, 2:40pm UTC](https://forums.unrealengine.com/t/testing-slice-and-cut-meshes-and-skeletal-meshes/92325/52 "2017-06-14T14:40:12Z")

</div>

> [@Shisou;723440](#):
>
> After a few tests, I now have 2 slice variations that work well, #1 with overlap and #2 with hit.  
> They are designed for bone transform movement. @: but maybe it inspires you and helps you at your version for animations.  
> Because of the strange collision impulse between objects, I prefer the overlapping version.
> 
> The node “Convert Physics Linear Velocity” is from 's victory plugin (-\> [(39) 's Extra Blueprint Nodes for You as a Plugin, No C++ Required! - Blueprint - Epic Developer Community Forums](https://forums.unrealengine.com/showthread.php?3851-(39)--s-Extra-Blueprint-Nodes-for-You-as-a-Plugin-No-C-Required!)).  
> It can be replaced with the node “VectorLength”.  
> I also attached a text file with the code, so it can be easily copied from the text file and pasted into a blueprint.

Ah I see! Thanks for sharing your work! So you use the sequence 0,1 trick to delay time and reset cut. I also prefer the overlap solution on my side. I’ve done some tests and the “do once” solution is really stable but slices only one mesh.  
So to cut more meshes in one time and not using the delay trick I did this:  
I created 2 proc mesh arrays and clear them at the beginning of each cut animation. Before cutting I compare the length of the 2 arrays and check if the 1st is \> the 2nd. If yes I cut, if No I branch again and check if length are \>= and if true I cut if false nothing.  
If I cut a new proc mesh I add this to the 1st array and the half generated part is added to the 2nd array. Doing like this when the blade overlaps any proc mesh I’m always sure that all the sliced meshes have a half part already generated somewhere and this gives me more control on multiple cuts over meshes that have not yet complete the slicing process.

In my opinion, for a final game, I would go with the simplest “do once” solution…preferring a 1 cut stability to multiple cuts realism…but the array solution is another possible road instead od using delay time that can be dangerous in slow motions. 🙂

---

<div class="post-metadata">

**Author:** ![VerumBit](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/verumbit/32/750218_2.png) [@VerumBit](https://forums.unrealengine.com/u/VerumBit)\
**Post date:** [June 15, 2017, 11:59am UTC](https://forums.unrealengine.com/t/testing-slice-and-cut-meshes-and-skeletal-meshes/92325/53 "2017-06-15T11:59:57Z")

</div>

**– THE WOLVERINE CHALLENGE –**  
I started studying the most efficient workflow in order to generate new realistic characters.  
Before creating the Wolverine character, I need a strong enemy to fight: Trolls are very popular at E3 in these days, so why not a Troll!  
Here the 6 macro steps I choose for having this realistic Troll into UE4:

1. select a rigged realistic mesh with high def textures with morphings (muscles increase, fat, face movements, etc) and Tpose.
2. export to iclone3dxchange, fix skeleton via Tpose and apply to iclone 6
3. use iclone to apply basic movement animations and effects like Apex clothing. Save all and export as fbx back to 3dXchange, fix animations if needed and finally export to fbx.
4. Import into UE4 with animation (also morphing sliding bars ready to use via bprint, if present)
5. import into UE4 all original mesh highdef textures (color, normal, occlusion, etc) and create ue4 body parts materials (body, eye, mouth, clothing)
6. animate and test a final scenario with different body scales (1,5,10)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/3/c/63c3f079e84630dbaf75427a9ad1a563e1c4f20b.jpeg "Rigged Troll UE4 import process (screenshot Tutorial)") ](https://www.youtube.com/watch?v=zffHhmSFuf8)

---

<div class="post-metadata">

**Author:** ![VerumBit](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/verumbit/32/750218_2.png) [@VerumBit](https://forums.unrealengine.com/u/VerumBit)\
**Post date:** [June 21, 2017, 11:17am UTC](https://forums.unrealengine.com/t/testing-slice-and-cut-meshes-and-skeletal-meshes/92325/55 "2017-06-21T11:17:21Z")

</div>

Similar to the above Troll process, today I imported 2 new character from DAZ into UE4.  
Before animating them, I used the UE4 photorealistic scenario to check how far I’m from the UE4 head man.

![f0492489d5e78d38cdd120f1ee1757492f0d3343.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)  
 ![0ea3c307e4574877795d0e2e0317921071f33741.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)  
 ![a38eefb9f36eef1fda7ff69b933430a3d09b42ab.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

 ![4.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/8/c8e5ba4618ca523e21f74e4e4e2b708ab743bd93.jpeg)  
 ![9d30f793a45950954b14e1218ba231280a39ec29.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

---

<div class="post-metadata">

**Author:** ![VerumBit](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/verumbit/32/750218_2.png) [@VerumBit](https://forums.unrealengine.com/u/VerumBit)\
**Post date:** [July 2, 2017, 2:16pm UTC](https://forums.unrealengine.com/t/testing-slice-and-cut-meshes-and-skeletal-meshes/92325/56 "2017-07-02T14:16:44Z")

</div>

Testing and re-testing again,again,again… for the best final result.  
Animations have been recorded via a sensor full body technique.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/7/c/b7c44b307e1647601fcbb5c257e603f93c77c9ff.jpeg "DAZ to UE4 Genesis 3 animation tests") ](https://www.youtube.com/watch?v=eU1T3XwUnXw)

---

<div class="post-metadata">

**Author:** ![VerumBit](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/verumbit/32/750218_2.png) [@VerumBit](https://forums.unrealengine.com/u/VerumBit)\
**Post date:** [July 5, 2017, 12:35pm UTC](https://forums.unrealengine.com/t/testing-slice-and-cut-meshes-and-skeletal-meshes/92325/57 "2017-07-05T12:35:44Z")

</div>

I link this post I created days ago on slicing trees and the magic use of sockets:  
[https://forums.unrealengine.com/showthread.php?148770-Unusual-way-sockets-can-be-used](https://forums.unrealengine.com/showthread.php?148770-Unusual-way-sockets-can-be-used)

---

<div class="post-metadata">

**Author:** ![jjwisniewka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jjwisniewka](https://forums.unrealengine.com/u/jjwisniewka)\
**Post date:** [July 7, 2017, 8:32am UTC](https://forums.unrealengine.com/t/testing-slice-and-cut-meshes-and-skeletal-meshes/92325/58 "2017-07-07T08:32:02Z")

</div>

I just found this tutorial - It will be great starting point. But I’ll try to implement it in C++.

---

<div class="post-metadata">

**Author:** ![VerumBit](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/verumbit/32/750218_2.png) [@VerumBit](https://forums.unrealengine.com/u/VerumBit)\
**Post date:** [July 13, 2017, 1:17am UTC](https://forums.unrealengine.com/t/testing-slice-and-cut-meshes-and-skeletal-meshes/92325/59 "2017-07-13T01:17:43Z")

</div>

**UE4 Wolverine Test 2: camera switching in slowmotion**

- blades on both hands
- 3 attack animations
- Bprint switching view from 4 camera action around the player.

[![]( " - YouTube") ](https://www.youtube.com/watch?v=bIzGL6d--e4)

---

<div class="post-metadata">

**Author:** ![VerumBit](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/verumbit/32/750218_2.png) [@VerumBit](https://forums.unrealengine.com/u/VerumBit)\
**Post date:** [July 13, 2017, 5:04pm UTC](https://forums.unrealengine.com/t/testing-slice-and-cut-meshes-and-skeletal-meshes/92325/60 "2017-07-13T17:04:23Z")

</div>

This time I’m looking for a realistic scene using Photogrammetry rocks, realistic landscape assets and real skyset.  
Using onlyh 3 attacks animations for the moment: new attack animation will be included in the next days.  
3 camera action dynamically changing via bprint code.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/5/e/15e3379c3d9e42b07e2c7e04b5983b3de8ffea68.jpeg "UE4 Slice Real Rocks : Photogrammetry test in daylight and sunset") ](https://www.youtube.com/watch?v=hBBQFchk_AE)

---

<div class="post-metadata">

**Author:** ![VerumBit](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/verumbit/32/750218_2.png) [@VerumBit](https://forums.unrealengine.com/u/VerumBit)\
**Post date:** [July 15, 2017, 5:00pm UTC](https://forums.unrealengine.com/t/testing-slice-and-cut-meshes-and-skeletal-meshes/92325/61 "2017-07-15T17:00:45Z")

</div>

**Laser Cut Insanity**  
After re-watching a Star Wars movie…went back to UE4 and did this.  
Just 3 emissive materials, nothing more!

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/b/b/0bbbadb8355f14aedacb7159beb0e89b408d664c.jpeg "Laser Cut Insanity UE4 emissive material for a Star Wars scenario") ](https://www.youtube.com/watch?v=Vm7GSmkAYRk)

[Previous page](https://forums.unrealengine.com/t/testing-slice-and-cut-meshes-and-skeletal-meshes/92325.md?page=2)

[Next page](https://forums.unrealengine.com/t/testing-slice-and-cut-meshes-and-skeletal-meshes/92325.md?page=4)
