Jump to content
  • Advertisement
Sign in to follow this  
manhaeve

Effects on a bitmap

This topic is 3811 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!