VBGamer |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Blue filter... Rag on a Stick (11 replies, 0 views) (2000-May-26) It seems as though they are just running the day picture through a blue filter.
To do this, take a pixels rgb values and multiply red & green by .95 (or something else lower than 1) and multiply blue by 1.05, something like that will work.
The only problem is to get it running up to speen, as the previous method involves checking each individual pixel.
You could draw a night and a day tile and just have two tilesets, or you could draw a day tileset and upon loading, the program works out the night tileset using a blue filter.
Or you could draw a big blue rectangle and alpha blit it over everything using a 3rd party thing, like David Goodlads library or you could use the D3D alpha blend thing. But these methods are fairly slow compared to the last.
hth
|