Darkem (My image shader thinhy)
Posted: Fri Jan 28, 2005 5:52 pm
Here it is: http://www.thechaosrift.com/JSLemming/Darkem.zip
What's it for? Well, when I was figiting with the DC the other day (displaying images and such) I noticed that it was 5000032420334 times brighter than the one my computer screen. So I dicide to make a program to darken images so it would look the same on the compoot and TV. I thought this was only going to take a few lines o'code, but lo and behold, it got a little more complicated. Just taking down the pixel values a certain amount wasn't enough. The TV seemed to display too much red. So now that I have it all callibrated, it looks perfect on my TV as it did on the computer screen, BUT, I really hope it's not TV specific! THat would suck if it was only my TV like that. Anyway, the default shade is -45, that is what looks the best (trust me, I know, I tried like 18 different things)
Right when I finished this 550 line baby, I sat in my chair all warm in fuzzy inside.. Like a job well done. Then I realized I could have just drawn a semi transparent polygon at the end of the scene... and it would do the same with less hassle. But I'm not sure about that.
O well, hope this comes in handy to somebody. If it doesn't show good on the TV... tell me....
What's it for? Well, when I was figiting with the DC the other day (displaying images and such) I noticed that it was 5000032420334 times brighter than the one my computer screen. So I dicide to make a program to darken images so it would look the same on the compoot and TV. I thought this was only going to take a few lines o'code, but lo and behold, it got a little more complicated. Just taking down the pixel values a certain amount wasn't enough. The TV seemed to display too much red. So now that I have it all callibrated, it looks perfect on my TV as it did on the computer screen, BUT, I really hope it's not TV specific! THat would suck if it was only my TV like that. Anyway, the default shade is -45, that is what looks the best (trust me, I know, I tried like 18 different things)
Right when I finished this 550 line baby, I sat in my chair all warm in fuzzy inside.. Like a job well done. Then I realized I could have just drawn a semi transparent polygon at the end of the scene... and it would do the same with less hassle. But I'm not sure about that.
O well, hope this comes in handy to somebody. If it doesn't show good on the TV... tell me....