Cool bloom effect...

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
qaisjp
Party member
Posts: 490
Joined: Tue Sep 04, 2012 10:49 am
Location: United Kingdom
Contact:

Cool bloom effect...

Post 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?
Lua is not an acronym.
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: Cool bloom effect...

Post 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.
User avatar
qaisjp
Party member
Posts: 490
Joined: Tue Sep 04, 2012 10:49 am
Location: United Kingdom
Contact:

Re: Cool bloom effect...

Post 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.
Attachments
lite.love
(82.13 KiB) Downloaded 301 times
Lua is not an acronym.
User avatar
tv_user
Citizen
Posts: 57
Joined: Sun Aug 12, 2012 4:39 pm
Location: Portugal

Re: Cool bloom effect...

Post by tv_user »

I didn't see any special bloom effect...perhaps it's just your computer? :o:
Did my comment help/offended you? Use the Karma button!!
LÖVEing each day...
User avatar
qaisjp
Party member
Posts: 490
Joined: Tue Sep 04, 2012 10:49 am
Location: United Kingdom
Contact:

Re: Cool bloom effect...

Post 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.
Lua is not an acronym.
User avatar
tv_user
Citizen
Posts: 57
Joined: Sun Aug 12, 2012 4:39 pm
Location: Portugal

Re: Cool bloom effect...

Post 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?
Did my comment help/offended you? Use the Karma button!!
LÖVEing each day...
User avatar
Lafolie
Inner party member
Posts: 809
Joined: Tue Apr 05, 2011 2:59 pm
Location: SR388
Contact:

Re: Cool bloom effect...

Post 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.
Do you recognise when the world won't stop for you? Or when the days don't care what you've got to do? When the weight's too tough to lift up, what do you? Don't let them choose for you, that's on you.
User avatar
qaisjp
Party member
Posts: 490
Joined: Tue Sep 04, 2012 10:49 am
Location: United Kingdom
Contact:

Re: Cool bloom effect...

Post 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?
Lua is not an acronym.
User avatar
Lafolie
Inner party member
Posts: 809
Joined: Tue Apr 05, 2011 2:59 pm
Location: SR388
Contact:

Re: Cool bloom effect...

Post by Lafolie »

Yes. The colours are multiplied. I did explain this a post ago. :?
Do you recognise when the world won't stop for you? Or when the days don't care what you've got to do? When the weight's too tough to lift up, what do you? Don't let them choose for you, that's on you.
User avatar
qaisjp
Party member
Posts: 490
Joined: Tue Sep 04, 2012 10:49 am
Location: United Kingdom
Contact:

Re: Cool bloom effect...

Post by qaisjp »

Lafolie wrote:Yes. The colours are multiplied. I did explain this a post ago. :?
nice unintended effect :)
Lua is not an acronym.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest