Snow Deformation (Rewrite)

Hey, I’ve recently wanted to make something like this but it lacked resources I could have taken inspiration out of. When I finally got it working I just had to make it a resource so people didn’t have to do the same as I had to lol.

Uncopylocked test game

Here is the model: (OUTDATED!!!)

HOW TO USE:
In StarterPlayerScripts there is an actor called “SnowDef”, and inside it is the main code for it, all you should touch is the settings section at the top.

In ReplicatedStorage there is a module called “ModifierClass”, it’s a class for attachments which would deform the snow.
To use it, you have to require the module and call the “new” feature when you need it like this:

Local Modifier = ModifierClass.new(Attachment , Radius_To_Deform)

you can currently only use :Remove() and :Change(New_Radius) on the modifier.

HOW IT WORKS:
every frame, it goes through near modifiers and checks if they are near the player, if they are, it gets bones in the radius given using an octree and deforms them.

  • Awesome
  • Good
  • Mid
  • Bad
  • Terrible
0 voters

(poll reset due to the rewrite)

44 Likes

Let me know if you find a way to optimize it!

3 Likes

I forgot to uncopylock it :sweat_smile: Now it should be!

1 Like

Its decent i think it could have been more better. its not really visible .

3 Likes

Thanks for your feedback, yes it could be better and more optimized, but it’s my first time using blender so yeah… It’s not the best. But it’s really the only snow deformation which is uncopylocked (I looked on the internet and I didn’t saw anyone make it open source.)

this is neat tech man! im no animator or modeler or nothing, but looking into the snow deformationplate shows over like over a thousand bones! this cannot be well optimized at all, so i dont think wide spread use of this is possible yet, but the display of what is possible is very neat!

i will say though, when you drive a buggy into the snow it looks a little funky, im going to guess this is because its just deforming bone clusters sorta like voxels. but if your just using it for like characters, it does a really good job!

2 Likes

Thank you, there is over one thousand bones inside, the bones are being “tweened” down. And I know many people did a lot better like XSwezan Snow Deformation Test - Roblox.

2 Likes

Optimization fix:

  • Made the car have a single attachment per wheel which will deform the snow.

Bottom Of the deformation:

  • Has a bottom with a different color.

Let me know if it’s better! Or i should remove the bottom.

this is very good, although i found a bug with it, if you walk slowly or jump on it, it doesn’t recognise you touching it, but still looks great!

Oh and I just found out its the same if your fast as well

1 Like

Thank you, there are bugs since I just made it today. I’ll definitely fix it!

I’ve fixed it now!

New bug fix:

  • walking slowly will make snow deform now

I created the model. Here is the link!

1 Like

you’re a good and hardworking man. appreciate you! good luck!!

3 Likes

Another bug fix:

  • Sometimes the deformation would go below the baseplate, and when it reset it would still be deformed but forever. Now it should reset normally!
1 Like

bump because i really like this concept, though im not the best at scripting, i know someone out there is talented enough to optimize this for the community <3 really want to use this for a christmas themed project, but performance is not well (i have a rig built for AAA games and i lag lol)

1 Like

New update:

  • Added 250 bone deformation plate.

EDIT: Added 250 bone deformation plate to the model.

I’ve added a 250 bone plate, which can allow for more than 10 plates, but it’s still sadly not enough to cover a map without big perfomence problems.

1 Like

awesome ill check it out again!

1 Like

Definitely needs some work. Good, but not finished. Thanks for sharing. I might use this!

1 Like

Added another plate. With now 500 bones!

It’s available in the testing place and the model.

1 Like