Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Love.graphics.clear white screen. #8

Open
09jlardinois opened this issue Jul 8, 2018 · 17 comments · May be fixed by #17
Open

Love.graphics.clear white screen. #8

09jlardinois opened this issue Jul 8, 2018 · 17 comments · May be fixed by #17

Comments

@09jlardinois
Copy link

Hey in Pong-2, calling love.graphics.clear in love.draw makes the whole screen white. Commenting it out fixes it.

It's using the color 40, 45, 52, 255.

Further testing: moving it to a new push start/end doesn't work. Changing the color to full 255's doesn't work.

Update: Changing alpha to 0 at least makes the screen contents show. Doesn't apply the color though (alpha 0).

@09jlardinois
Copy link
Author

I fixed it. Love docs show in version 11 removals / changes that color ranges now go from 0 to 1 instead of 0 to 255, which is insanely stupid and ridiculous. The ONLY reason I can see why a noob might do that is if math is hard for them and they don't want to convert an RGB value to a ratio for use in floats for some kind of in-game color changing purpose. Durrr, yeah I'm being mean because this is ridiculous and pulled me away from my class for a full hour.

Here's the easy fix, but not a great one - just to tide you over:

Go to the love.graphics.clear line and just put in love.graphics.clear(40/255, 45/255, 52/255, 1) instead.

Dividing everything by 255 makes that clean ratio because, SHOCKER, math really isn't that hard after all.

I don't have patience for this crap. I take pride in being a helpful, kind person in coding communities, but DAMN. I have been on the FIRST LECTURE ONLY for 3 entire days and I've only gotten 28 minutes into the video because of this crap.

And I've been programming for 18 years and already have a lot of months of Unity and UE4 under my belt, so I'm no stranger to this discipline. But I just want to get through the remaining hour of video without having to stop and spend a few hours researching a really stupid bug that shouldn't exist in the first place.

3 days. 28 minutes of progress. That's SAD. I'll never get this class done at this rate.

@simleo simleo linked a pull request Nov 3, 2018 that will close this issue
@6-000-000
Copy link

Thanks @09jlardinois! Hope you were able to finish the course.

@jorgecontreras
Copy link

Thanks for taking the time to post this! your time invested saved hours to many of us.

@Hmasters4664
Copy link

Thank you sir!!

@johaneko
Copy link

thanks a million.. very helpful..

@bernardLis
Copy link

Thanks for this! <3

@brenfeliped
Copy link

Thanks man!!

@victorsamsonov
Copy link

It doesn't work for me, I saved the document and everything and the screen is still white online showing the fps

@batoulyehia
Copy link

Thank you so much it was so helpful!!!

@muskansawa
Copy link

thank you!

@AV343
Copy link

AV343 commented May 25, 2020

Thank you so much, I would've never guessed that they would make such a change and I totally understand your reaction. Although I have nowhere near as much experience as you in game dev, this is the ONLY time I've seen an RBG color value not range from 0-255 and it would be super confusing for people whose first language is Lua trying to learn any other language. What also sucks is that you're gonna have to edit the main file in every version of this pong game.

@dckakon
Copy link

dckakon commented Jun 1, 2020

Thanks a lot

@LJWW7
Copy link

LJWW7 commented Sep 29, 2020

THANK YOU!!!!

@knownkreatives
Copy link

Thank you @09jlardinois for helping out.

@RicardoFuentes437
Copy link

Thank you so much @09jlardinois i was close to quitting the course because i couldn't find a way to solve this, you really helped me a lot :) thanks again.

@nathannli
Copy link

still saving the day in 2021, thanks again

@sealimousavi
Copy link

Thank you, sir! I thought my old laptop had a graphics card problem. You saved me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.