Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    162
  • comments
    262
  • views
    167464

Yet more filter effects

Sign in to follow this  
OrangyTang

110 views

One last bloom screenshot before I move onto something else. This is a star filter which uses four passes, one for each streak each with eight samples (the previous blurs used the same 8-sample shader, but only actually used 7 samples as otherwise the blur would be off center).



The nice thing about this is that it's now all data driven. You can set up a filter with a custom blur kernel and weights which allows for easy tweaking (in particular the weight strengths need to be balanced when the resolution of the effect is changed). Here's the xml for a simple glow filter (like in the previous image, but with a smaller 7x7 kernel):


name="BlurKernel7x7"
effectWidth="160"
effectHeight="120">





name="ExpWeights7"
normalise="true"
scaleFactor="1.6" >











name="HorizontalOffsets7" >










name="VerticalOffsets7" >









These will be referenced in my level's XML description so you can tweek them on a per-level basis. And it means I can now define different filters in data for different quality settings rather than having it all hard coded. [grin]
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!