Screen color
Displaying 1-11 of 11 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
Wooly

Can someone help me? I want to make the screen appear grayscaled. But when I try to use Lucent (Any percent), It still show the color but they are paler. Is there a way to make this?

Thanks,
Wooly

Posted on 2004-07-29 07:37:46

mcgrue

Wooly, you want to use ColorFilter(). (opens in new window)

You need to do something like:


ColorFilter(CF_GREY, screen);


...somewhere in a renderloop. I haven't used it before personally, so someone else could help you better.

So... whatcha workin' on? ;)

Posted on 2004-07-29 08:24:19

mcgrue

After doing some testing, and noticing an omission in the manual, I just added HookRetrace to the manual with an example that shows off exactly how to make a map grayscale.

Cheers!

Posted on 2004-07-29 08:58:49

athocreft

Before I found out about ColorFilter() I had made my own function that would average the three R, G, and B values together and then set a pixel of that average in each of the rgb slots. The results were jerky and just didn't work for me. Soon after, I found out about colorfilter and felt like an idiot. Just thought I'd say that I have indeed done something, contrary to what you might think. ;-)

Posted on 2004-07-29 09:25:27

Omni

While the ColorFilter is the awesome, recommended way, why does not filling a Rect at RGB(128, 128, 128) at 50 lucency work?

Posted on 2004-07-29 15:00:46

Technetium

Quote:Originally posted by Omni

While the ColorFilter is the awesome, recommended way, why does not filling a Rect at RGB(128, 128, 128) at 50 lucency work?

Because that just averages each pixel color with RGB(128,128,128). So if you have a pixel colored RGB(54,134,90), the result after you lay the recfill should be RGB((54+128)/2, (134+128)/2, (90+128)/2), which is not going to be a shade of grey.

Posted on 2004-07-29 18:15:02

mcgrue

I beleave the lucency method creates a washed-out look. Someone should do various lucency/additive/subtractive blits to the whle screen and take screenshots for a side-by-side comparison! ;)

Posted on 2004-07-29 22:10:04

Toen


This is 128/128/128 being blitted in various ways over a horrendous background! As you will see, cfilter is the only one that produces the desired look.

Posted on 2004-07-29 23:54:53

vecna

That is a way horrendous background.

.. Good job!

Posted on 2004-07-30 01:03:45

Wooly

Thanks a lot! It resolved my problem :) I can now continue working on my game.

Wooly

Posted on 2004-07-30 01:54:25

Gayo

Just remember to use high-contrast colours if you plan on shifting to grayscale.

Posted on 2004-07-30 04:54:04


Displaying 1-11 of 11 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.