Sign in to follow this  
manhaeve

Effects on a bitmap

Recommended Posts

Hi there, I'd like to create a gaussian blur effect and a "wind" effect you can find in photoshop, but I dont know where to start. My goal is to let my mapmaker generate this grass, so I have to implement the effects into SDL. Here is the tutorial for Photoshop, can I get this to work in SDL? http://www.myinkblog.com/2008/06/11/create-an-awesome-grass-texture-in-photoshop/ Greets Pontus [Edited by - manhaeve on July 4, 2008 5:00:33 AM]

Share this post


Link to post
Share on other sites
The answer I gave to VPK's post (Image processing) might be usefull for you as well. You apply a kernel with the proper values used for a gaussian blur for each pixel on the image. I think the wind effect is applied in the same way, but with other values in that kernel (and depending on the wind direction you like to use)

I don't know the exact values for both filters, but I'm sure you can find them on the internet if you look for "guassian blur kernel". Sometimes you can see these values in your painting program, or in programs like Matlab (with image processing package installed).

I don't know if you want to apply these effects on a static image, or realtime when rendering. In case you want to do it realtime, things get more difficult (because filtering is a relative heavy task). The principles stay the same, but people often use tricks and workaround to achieve the effects in a faster way.

Greetings,
Rick

Share this post


Link to post
Share on other sites

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

Sign in to follow this