Procedural Case-Hardened Knife Skin

So while I was working on my own take of a murder game, I thought of the idea to try and remake how VALVe made case-hardened skins for CS:GO with EditableImages and EditableMeshes.

So a bit of maths later, I managed to recreate random case-hardened textures in Roblox Studio, and applied it onto a classic murder knife. Feedback appreciated!

7 Likes

Hm very cool, I wanna try to guess how this is done, so

So at first I saw points on what iā€™m thinking is an Editable Image and looking a bit closer it seems like the points are based on the shape of the knife

image

So, maybe some sort of raycasting onto the surface of where the editable image is and then yeah thats all I got

The method I used for this is almost the same as the one used in CS:GO. Basically I picked a random seed which then calculates a random point in the texture. Then I shift over the UV of the blade towards that point relative to the center, and the use a bit of trig to rotate the UV.

To explain the dots on the texture;
Black dots - vertices
Red dot - point of origin/center

No raycasting was used, the texture on the SurfaceGui was only there as visualizer :grin:

1 Like

This knife skin looks great! Nice job on it!