I've made cases for a few guns, particularly take down's and shotguns. Which the generic cases are far too large, why have a case 8" longer than the gun and wide when you can have a nicely fit case.
For padding there are a few options, you can get eggshell foam, or other open cell foam from fabric stores. It is very soft and padded, and works like most generic cases where the foam squeezes around the gun.
I prefer a fitted case though, so I use a firmer foam, namely carpet padding or rebond foam. Which is closed cell. I then cut the sections to fit the case, to full depth. The bottom layer will not be cut further. But then the remaining layers are cut to the general outline of the gun, and all layers of foam are layered in place with 3M spray adhesive. Once those layers dry in place you can cover it with felt using spray adhesive and working in the cut out first. Then once you get the cut out layered smoothly you can glue it to the flat areas, don't spray the flat areas at first or it will be hard to work.