First i want to say that this was supposed to happen a lot faster, but i got sick and it’s a tad difficult programming when you’re snotting all over the keyboard.



So i’ve been working on a squirming stomach. Now this is a difficult problem to solve.

I have a lot of frames for different belly sizes. Thus making an animated squirming version for each of those would take forever, because of that i have to be more clever.



So what i did is i made a shader that will use the sprite, along with two extra textures to distort the sprite.

Those two textures are a mask, and a distortion texture, the mask to ensure that only the belly is squirming (a squirming face would probably look quite horrifying) and the distortion is to tell the shader which parts move where. With those we get something like this:

Looks a tad odd doesn’t it?

So how do we fix this? well what i decided to do is make some changes to the distortion texture. Originally red meant moving left and right and green meant moving up and down.



Now red > 0.5 means move right, red < 0.5 means move left, same for green.

Each of these directions are separated in terms of their timing. Making multiple distinct bumps. And this is what that looks like:

Looks a lot better in my opinion. Also it works really well on the bigger bellies (these small ones do look a little bit odd, though that might be the distortion texture’s fault).

You might have noticed something else. The skin colors have changed a bit. This is because i like these ones better.

Because of being sick this is all the progress i have made since the last post, but hopefully i can get something more substantial next time.

