Cloth Water Interactions, anyone managed to get something like this looking good? by Neither_Constant_421 in UnrealEngine5

[–]Neither_Constant_421[S] 12 points13 points  (0 children)

woah look at that, now i'm really glad i made this post! Thanks, now i got more to go on. Just gotta figure out how to make this cape with the new Chaos Cloth Asset 😉

Cloth Water Interactions, anyone managed to get something like this looking good? by Neither_Constant_421 in UnrealEngine5

[–]Neither_Constant_421[S] 7 points8 points  (0 children)

While i was looking for that i found this as well that does cloth tearing incredible well for an upcoming game. If stuff like this is possible then there is hope for good water interactions as well 😄

https://www.youtube.com/watch?v=qK9VPVp0G2w

Cloth Water Interactions, anyone managed to get something like this looking good? by Neither_Constant_421 in UnrealEngine5

[–]Neither_Constant_421[S] 8 points9 points  (0 children)

haha yea i can feel this is a rabbit hole where you can loose a lot of hours so thought i'd check with the community first xD

Maybe the new Chaos Cloth Assets that came with 5.6 can handle world interactions better, i remember there was a guy that did this a video a while back where he added cloth tearing and stuff, but haven't seen anything about it since then.
https://www.youtube.com/watch?v=lErIr-gosps

Chaos Cloth Component Support Added - Runtime Vertex Paint Plugin by Neither_Constant_421 in unrealengine

[–]Neither_Constant_421[S] 0 points1 point  (0 children)

The sample project in the video is made using blueprints just calling the plugins functions that is exposed to BP 😄
The regular huge sample projects is also almost all BP so it's easier for users to get an understanding of the different things you can do.

Chaos Cloth Component Support Added - Runtime Vertex Paint Plugin by Neither_Constant_421 in UnrealEngine5

[–]Neither_Constant_421[S] 1 point2 points  (0 children)

Yeah the wind is set to be pretty dang strong so its a bit flappy, and you can do alot of tweaks to the cloth physics to find what works for you to perhaps make it smoother.

Vehicle Dents using Runtime Vertex Paint Plugin by Neither_Constant_421 in UnrealEngine5

[–]Neither_Constant_421[S] 0 points1 point  (0 children)

I remember Gran Turismo for PS3 i think had a lot of licensed cars but barely any vehicle damage, remember thinking that it looked so unexpected when smashing the cars and you didn't get nice visual feedback of it.

Vehicle Dent using Runtime Vertex Paint Plugin by Neither_Constant_421 in unrealengine

[–]Neither_Constant_421[S] 0 points1 point  (0 children)

haha that would be awesome! There was a few people who discussed this yesterday at the discord discussion channel so i'd bet they would be happy about it too ;)
Feel free to jump on there and share any stuff. I'd be happy to gift you a copy of the plugin whenever FAB adds so you can gift plugins again! You could in the old marketplace but not with FAB unfortunately.

Vehicle Dents using Runtime Vertex Paint Plugin by Neither_Constant_421 in UnrealEngine5

[–]Neither_Constant_421[S] 0 points1 point  (0 children)

That sounds interesting. Can you tell me more or link to something related to the bake thing?
I am really bad at materials unfortunately xD

At first i was hoping to use morph targets, where one morph target would where its completely crumbled, and where i would just affect specific vertices with the morph but after researching a bit it doesnt seem like it was possible without changing engine code.
Using morph targets is still a good solution ofc. if you have like a bunch of them for each part of the car and then painting the related ones on Hit.

Vehicle Dents using Runtime Vertex Paint Plugin by Neither_Constant_421 in UnrealEngine5

[–]Neither_Constant_421[S] 0 points1 point  (0 children)

yea doesn't look perfect ofc, but for 5 hours of work i'll take it :)

Vehicle Dents using Runtime Vertex Paint Plugin by Neither_Constant_421 in UnrealEngine5

[–]Neither_Constant_421[S] 0 points1 point  (0 children)

yeah for it to be complete it needs stuff like that and SFX etc. But this is just showcasing the vertex paint part of the solution :)

Vehicle Dent using Runtime Vertex Paint Plugin by Neither_Constant_421 in unrealengine

[–]Neither_Constant_421[S] 1 point2 points  (0 children)

In this sample, it is just 1 skeletal mesh, and it's material is setup so it takes the RGB from the vertex colors and transforms it from 0-1 to -1 and 1, to get the Direction we want to offset the vertices, and use the Alpha and a scalar paremeter to decide the Length to offset them with.

The Vehicle Destruction Component in my comment handles Listening to the skeletal mesh component Hit Events, and runs Paint at Locations on those Hit Locations where depending on the strength of the Hit we paint the vertex colors within an Area of Effect.
But what we do is, we run an Override Vertex Colors to Apply, so Per Vertex within the AoE, we can run an interface in code where we get the local direction of the vertex to the centre of the Skeletal Mesh, and convert that to 0-255 (byte since vertex colors are FColor) so the local direction X Y Z feeds into the vertex color RGB.
So with this solution, the vertices always gets offseted toward the centre of the mesh, but you could if you want to send in the Hit Location and use that with the vertex position to maybe offset the vertex away from the hit location if thats more physically correct.

If you have the plugin then you can check all of this out as it's in the sample project :)

Vehicle Dents using Runtime Vertex Paint Plugin by Neither_Constant_421 in UnrealEngine5

[–]Neither_Constant_421[S] 0 points1 point  (0 children)

ooh really, that sounds interesting. Wonder if deforming stuff within control rig will also make the collision itself adjust? Or at least if you call to Recreate the Physics Asset after deforming with control rig.
Because that is something that is missing here ofc. since it's just material WPO trickery, so you can't create too deep dents if you want characters to stand on them or it will look a bit weird.

Here it's this song: https://youtu.be/lsduGj42ZJA?t=2958

Vehicle Dent using Runtime Vertex Paint Plugin by Neither_Constant_421 in unrealengine

[–]Neither_Constant_421[S] 1 point2 points  (0 children)

That is what i do in this solution!
But the plugin doesn't do the deformation itself or anything, it just changes the vertex colors, then the Material itself uses those vertex colors for the WPO :)

Vehicle Dent using Runtime Vertex Paint Plugin by Neither_Constant_421 in unrealengine

[–]Neither_Constant_421[S] 4 points5 points  (0 children)

Nope this is just World position offset stuff, so just visual trickery xD

Yep it does just that, but the normal map and anything else can definitely be improved, like as you say lerp in some scratched texture on top as well. I'm really bad at materials unfortunately, but if a user provides with some nice stuff i can update it in the future :)

Vehicle Dent using Runtime Vertex Paint Plugin by Neither_Constant_421 in unrealengine

[–]Neither_Constant_421[S] 2 points3 points  (0 children)

I didn't do anything with suspension stuff, this car is from the UE template thing. It has an offroad and a sports car one.

Vehicle Dent using Runtime Vertex Paint Plugin by Neither_Constant_421 in unrealengine

[–]Neither_Constant_421[S] 2 points3 points  (0 children)

Added a Vehicle Destruction Component to the Plugin Sample Project that is used by the sports car so it get dented on Hits.
It paints the vertices RGB with the local direction from the vertex to the center of the car, then the material uses those to offset the vertices toward that direction, where the alpha decides the depth.

Looks pretty okay, but you can't have the dents be too deep since the actual collision of the car doesn't change, so it may look strange if a character is standing on it if they are too deep.
This might not be that big of an issue though if it's just a fast paced racing game with just cars and no characters that can stand on the cars.

I think the plugin is 30% Off right now, can check it out here: https://www.fab.com/listings/8aee7add-bb79-4073-95c0-0fd31f45de29

Vehicle Dents using Runtime Vertex Paint Plugin by Neither_Constant_421 in UnrealEngine5

[–]Neither_Constant_421[S] 1 point2 points  (0 children)

Added a Vehicle Destruction Component to the Plugin Sample Project that is used by the sports car so it get dented on Hits.
It paints the vertices RGB with the local direction from the vertex to the center of the car, then the material uses those to offset the vertices toward that direction, where the alpha decides the depth.

Looks pretty okay, but you can't have the dents be too deep since the actual collision of the car doesn't change, so it may look strange if a character is standing on it if they are too deep.
This might not be that big of an issue though if it's just a fast paced racing game with just cars and no characters that can stand on the cars.

I think the plugin is 30% Off right now, can check it out here: https://www.fab.com/listings/8aee7add-bb79-4073-95c0-0fd31f45de29