Sign in to follow this  

how to blur outside bounds of mesh

This topic is 4858 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, I'm trying to get a nice glow going, right now I have multiple passes with the vertex shader rendering a slightly larger object with the glow behind the original. But the glow appears like a ring (the effectEdit glow.fx, thats exaclty what Im talking about) and I'd like it to slowly fade out instead. How would I do this? I know Ive seen shadows fade out neatly like that (I think the nvidia soft shadows shader example does that)... thanks in adv.

Share this post


Link to post
Share on other sites
By glow.fx I guess you mean the effect in the cg Browser? I think what they do to fade the glow (blur it) is draw the glow to a texture blur it there and blend it back with the screen. I have a nice glow effect on my web site too, not much but it looks cool.

Share this post


Link to post
Share on other sites
hmm well no that is too slow for me to be rendering to a texture and then applying a fade (which how would I do anyway?).
There should be a way to calculate a fading term that reduces the alpha as the pixel nears the color boundary of the outer ("glow") mesh... Im just not quite sure how to do that, any ideas?

Share this post


Link to post
Share on other sites
Quote:
Original post by dhanji
is there a simple HLSL method for blur u know of? Im having a bit of trouble understanding the assembly.

- I don't know of any. Sadly, I don't have the time to read the thing and write a high-level translation...
But doesn't the article explain the theory? Can't you start from that and write an HLSL implementation?
- It's good to learn the shader assembly - it's really helpful.

Share this post


Link to post
Share on other sites

This topic is 4858 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.

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