It's no secret that I like palette cycling. What I've always found pretty annoying, though, is that there's no native workable solution to get the effect running in Game Maker (which is what I'm making my Sonic engine in). Some levels absolutely rely on it or they look lifeless and lame - just picture Techno Base without it! More importantly, it's used to animate huge waterfalls that would be a real pain to make with sprites in GM.
Well, after lots of searching and beating my head against solid surfaces, I finally found a pixel shader solution that works. It's easy for me to implement even with my feeble grasp of shaders, and runs on both of my machines (they're about 5 years old, I guess) without slowdown.
So, I want to know how it works for anybody else. Download this demo of the effect and run it. If it runs on a fair amount of systems, I'll go ahead and use it for my engine (and by extension Sonic Time Twisted will get the benefit, too).
(If I'm feeling particularly generous - and not too self-conscious about how kludged together it all is - I might also write a tutorial explaining how I did it. =P )
Thanks in advance!
EDIT: I realise now that, though I'm using this for a Sonic engine, it's really only tangentially related to Sonic and mods might want to move this to Technical Discussion (?).
Well, after lots of searching and beating my head against solid surfaces, I finally found a pixel shader solution that works. It's easy for me to implement even with my feeble grasp of shaders, and runs on both of my machines (they're about 5 years old, I guess) without slowdown.
So, I want to know how it works for anybody else. Download this demo of the effect and run it. If it runs on a fair amount of systems, I'll go ahead and use it for my engine (and by extension Sonic Time Twisted will get the benefit, too).
(If I'm feeling particularly generous - and not too self-conscious about how kludged together it all is - I might also write a tutorial explaining how I did it. =P )
Thanks in advance!
EDIT: I realise now that, though I'm using this for a Sonic engine, it's really only tangentially related to Sonic and mods might want to move this to Technical Discussion (?).
This post has been edited by Mercury: 07 May 2011 - 03:50 AM


00

