Page 1 of 1

Cool bloom effect...

Posted: Sun Sep 23, 2012 10:06 am
by qaisjp
For some reason when applying a vignette (multiplicative is the blend mode) on top of everything else and an overlay on top of an orange text, the vignette makes the orange text bloom to yellow which make a bloom effect. I'd make a video and show you but I can't make a decent video with this PC.

It really is unexplainable, I am just assuming the overlay makes it bloomified, otherwise it doesn't. Could it be the multiplicative effect?

Anyway, my main question is, what do the blend modes do?

Re: Cool bloom effect...

Posted: Sun Sep 23, 2012 10:51 am
by T-Bone
Perhaps you could provide an example, so that others can test if the same thing happens to them? That would also explain in more detail what you are doing.

Re: Cool bloom effect...

Posted: Sun Sep 23, 2012 11:51 am
by qaisjp
T-Bone wrote:Perhaps you could provide an example, so that others can test if the same thing happens to them? That would also explain in more detail what you are doing.
Wait until "Little Sticky Destroyer" text shows, you will notice it turns yellow somehow, you can reopen the .love and hold space throughout the entire playback to see how it is without vignette enabled.

As you can see, line ~62 of loading.lua show this:

Code: Select all

			love.graphics.setColor(255, 128, 0, LoadingState.textA)
			love.graphics.setFont(fonts[1][100])
			love.graphics.printf("Little Sticky Destroyer", 0, sh/2, sw, "center")
which cant change the color.

Re: Cool bloom effect...

Posted: Tue Sep 25, 2012 8:51 pm
by tv_user
I didn't see any special bloom effect...perhaps it's just your computer? :o:

Re: Cool bloom effect...

Posted: Wed Sep 26, 2012 6:48 am
by qaisjp
tv_user wrote:I didn't see any special bloom effect...perhaps it's just your computer? :o:
the text in the second part of the intro turns yellow... but there is no code in there that has uses variables for colors, it's all hardcoded colors.

Re: Cool bloom effect...

Posted: Wed Sep 26, 2012 12:25 pm
by tv_user
[quote="qaisjpthe text in the second part of the intro turns yellow... but there is no code in there that has uses variables for colors, it's all hardcoded colors.[/quote]

Oh, I see that now. Strange thing allright. I don't know what it could mean...
Anyone?

Re: Cool bloom effect...

Posted: Wed Sep 26, 2012 9:31 pm
by Lafolie
It's because you're using the multiplicative blend mode. It doesn't just make white transparent. You could write a shader that does this though, there's not much difference between these algorithms I think.

Re: Cool bloom effect...

Posted: Thu Sep 27, 2012 4:08 pm
by qaisjp
Lafolie wrote:It's because you're using the multiplicative blend mode. It doesn't just make white transparent. You could write a shader that does this though, there's not much difference between these algorithms I think.
It's only being applied at the end of the draw (so its on top of everything) and defaults back to alpha once the vignette has been applied... so is it the white+orange = yellow?

Re: Cool bloom effect...

Posted: Thu Sep 27, 2012 6:59 pm
by Lafolie
Yes. The colours are multiplied. I did explain this a post ago. :?

Re: Cool bloom effect...

Posted: Thu Sep 27, 2012 7:12 pm
by qaisjp
Lafolie wrote:Yes. The colours are multiplied. I did explain this a post ago. :?
nice unintended effect :)