Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: xenogia on Thu 21/01/2010 12:59:10

Title: How to make a noise filter
Post by: xenogia on Thu 21/01/2010 12:59:10
Hey guys,

I want to create a slight noise filter over the game, ala Silent Hill.  I tried creating one large object with some noise but slowed down the game considerably.  What ways do you suggest doing this with minimal slow down?
Title: Re: How to make a noise filter
Post by: Jim Reed on Thu 21/01/2010 13:05:57
Calin Leafshade used a film noise/grain effect in McCarthy Cronicles, so try to PM him, maybe he ca be of asistance.
Title: Re: How to make a noise filter
Post by: GarageGothic on Thu 21/01/2010 13:40:10
I found that a semi-transparent GUI with background sprite animated using rep_exec_always works quite well and is probably the most versatile solution if you're going to re-use it for multiple rooms. Not sure how this compares to using animated objects performance wise, but that's how I do it.
Title: Re: How to make a noise filter
Post by: xenogia on Thu 21/01/2010 13:55:56
What type of code do you put in rep_exec_always to get it running nicely?
Title: Re: How to make a noise filter
Post by: GarageGothic on Thu 21/01/2010 14:24:55
Just a very simple timer counting the loops and changing the background every 3 loops or so. You can modify the code I wrote for animated backgrounds here (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=31146.msg399865#msg399865) to change the GUI.Background instead of RawDrawing the sprite.