0 registered members (),
1,091
guests, and 9
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Small Update
[Re: Superku]
#399897
04/22/12 22:30
04/22/12 22:30
|
Joined: Mar 2006
Posts: 2,252
Hummel
Expert
|
Expert
Joined: Mar 2006
Posts: 2,252
|
No, you can use it like your box blur. Itīs just an other kernel and happily separable too. For a 7x7 blur you can try these weights: float gauss1D_weights2[7]={0.015f,0.083f,0.235f,0.332f,0.235f,0.083f,0.0015f}; but you can compute your own of course, depending on the width and falloff you prefer. Not much effort as you can see. Just give it a try. You'll notice that your bloom fates out more smoothly.
|
|
|
up in the clouds
[Re: Hummel]
#400201
04/27/12 02:36
04/27/12 02:36
|
Joined: Sep 2003
Posts: 6,861 Kiel (Germany)
Superku
OP
Senior Expert
|
OP
Senior Expert
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
|
I've tried to implement gaussian blur, the falloff is really smooth now, but maybe a little too smooth as I want the bloom to stretch nicely and wide across the screen. I will keep experimenting, though (maybe something like "cosinus blur"). I've rewritten the clouds, first screen is without shader: Second screen is with cloud shader applied (I need to create better cloud models, though): And the last screen shows the start of a lightning:
Last edited by Superku; 04/27/12 02:36.
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual Check out my new game: Pogostuck: Rage With Your Friends
|
|
|
Re: up in the clouds
[Re: Hummel]
#400268
04/27/12 22:15
04/27/12 22:15
|
Joined: Sep 2003
Posts: 6,861 Kiel (Germany)
Superku
OP
Senior Expert
|
OP
Senior Expert
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
|
Ok now I get what you mean with separable. I now have two different switchable blurs implemented, the gaussian blur and one where I simply use the weights {0.25,0.5,0.75,1,...,1,0.75,0.5,0.25} (and divide by their sum). It works quite well with the blocky geometry and both blurs look much nicer than my previous box blur, so thank you very much for the tip!
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual Check out my new game: Pogostuck: Rage With Your Friends
|
|
|
|