• Welcome to World Machine Community. Please login or sign up.
 
October 16, 2019, 08:25:59 am

News:

Read the Development Diary for an inside look at World Machine's progress!


Faster Blur

Started by nikita, October 08, 2008, 03:48:53 am

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nikita

October 08, 2008, 03:48:53 am Last Edit: October 08, 2008, 03:52:30 am by nikita
I made a macro to fill the gap between uniform and gaussian blur: Hybrid Blur
You can get it on my website: http://nkblog.nkdev.de/?page_id=446 it's at the bottom of the page.

It's supposed to be faster than gaussian blur but without the artifacts uniform blur creates. Here is a comparison of the two existing types of blur and my macro:


The results are better than I thought and it's 35% faster than gaussian blur!
That's probably not a relevant speed-up for small terrains built on fast multi-core machines, but in certain cases (large terrains, lot's of blurring, slow machine) it can save you some time.
Having used a 650MHz pc myself, I know that blurring can in fact take long enough to wish you had a faster blur device :)


edit: btw this implements filtering with the triangle function. (As opposed to gaussian and uniform blur which use the gaussian and rectangle function respectively)
"Every time you read or write beyond the end of an array, somewhere a fairy dies."
Richard Buckland

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it's been approved by a moderator.

Name:
Email:
Verification:
Please leave this box empty:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:

Shortcuts: ALT+S save/post or ALT+P preview