Jump to content
  • Advertisement
Sign in to follow this  
ello

radial / circular or spin blur (HLSL)

This topic is 3034 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,

can anyone point me on how to create such a circular blur like photoshop offers under radial blur when using teh option circular??
I'd like to do it via hlsl as a postprocessing effect.

any ideas are welcome... thanks in advance for your input.

cheers,
ello

Share this post


Link to post
Share on other sites
Advertisement
Something like:

float step_size = max_angle/steps;
float color_sum = 0.0;
float weight = 1.0;

for(float angle = 0.0; angle <= max_angle; angle += step_size)
{
color_sum += weight * tex2(cos(angle)*radius, sin(angle)*radius);
weight *= 0.9; // or some other falloff
}

color_sum /= steps;

Share this post


Link to post
Share on other sites
ah, of course.. thank you very much for the input, i must have had some kind of blindness :)

best regards,
ello

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!