Toon Animation Shader

Didn’t sleep too well last night, my mind was racing after an intense afternoon in HLSL (High Level Shader Language) developing a new shader I had thought up over the weekend.

I’m thinking about putting together an entry for the new XNA Dream-Build-Play competition. One of the feedback concepts I dreamt up was to pack the area with static characters and objects which start off black and white, these animate and gain colour the better you perform.

Being a one man team there’s no way I’m going to be able to animate all these objects in max, so I came up with a vertex shader to do it, a few sin waves and matrix calcs later it was all working (I say that but it pushed my matrix math and HLSL skills to the limit).

You have to use your imagination with these static images but imagine the coloured ones bopping and swaying in time to some music.

ToonAnimation1 ToonAnimation2

Leave a Reply

Your email address will not be published.