21 June 2016, 00:51 | #1 |
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,753
|
OS wide gamma correction.
Having an old SVGA monitor for my Amiga that's a little on the dark side due to usage (phosphor wear), I thought it might be a good idea to implement system wide gamma correction.
Seems to me a good way would be to patch all the RGB setting functions in the graphics library. Would it be safe to just turn off task switching and interrupts, alter the graphics library jump table, and then turn everything back on? Somehow it seems a little dirty... Last edited by Thorham; 21 June 2016 at 02:20. |
21 June 2016, 05:55 | #2 |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
|
You can use exec.library's SetFunction() call. It will do all the work for you.
This will not bring you far however. Only programs that use the OS for display will be fine (oh, well, ok, this includes mine ). Also be aware that gamma correction will reduce the r,g,b value precision and this might cause more damage than benefit. And it can't, of course, go beyond the maximum possible lightness so if your monitor has "too dark" image for all colors then this won't be fixed. Perhaps just switching to another monitor would be a better solution |
21 June 2016, 06:30 | #3 | ||||
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,753
|
Quote:
Quote:
Indeed, nice for Dungeon Master. Quote:
Quote:
Indeed, but I don't want to carry a heavy CRT around. Maybe I should just call a cab or something if I can find a CRT locally. |
||||
21 June 2016, 06:42 | #4 | ||||
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
|
Quote:
No custom copperlists on screen ? Quote:
Oh, wait. Anyone using a HAM screen will get garbage because only fixed pixels will be altered... Well, for the sake of curiosity, it's probably worth trying anyway. Quote:
Quote:
Perhaps you can go to your local Stan's Previously Owned LCD Monitor shop |
||||
21 June 2016, 07:05 | #5 | |
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,753
|
Haven't seriously played any in years because I need a good joystick. I have a video box for that anyway, and that has brightness controls (gamma would be better).
Under the Os? What for? Quote:
Absolutely not. The problem is the gamma curve, not contrast or brightness, that's why it doesn't work. Only gamma correction gives good results. You used to like them and dislike LCDs, what happened? No way. I don't like crappy up scaling. CRTs are great for Amigas. Until flat panels can upscale at CRT quality levels, I'll stick to CRTs for as long as possible (not as my main peecee monitor, of course ). |
|
21 June 2016, 08:04 | #6 | |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
|
AGA sliced HAM ?
Good old CBM monitors are still OK. But they're wearing off and have become near to impossible to repair (no spare parts available, no repairmen wanting to do it). Current LCD screens seem to have a better image than a decade ago. So they have become quite bearable. Quote:
In addition it might be less problematic for 31khz modes. However you never know before trying... |
|
21 June 2016, 13:04 | #7 | ||
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,753
|
Good one.
Quote:
Quote:
The problem is indeed the trying. |
||
21 June 2016, 13:39 | #8 | ||
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
|
Quote:
For old monitors, I miss the integrated loudspeakers - but now that's about all. Quote:
But perhaps next one will have an OLED display Btw. For your gamma project, you can patch graphics.library's LoadRGB4(), LoadRGB32() and similar functions. For custom screens that may be enough, but for the WB itself you may run into trouble. Apps must use the unmodified value for color matching, not the new one. |
||
21 June 2016, 15:02 | #9 | |||
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,753
|
Mine certainly can't, and it's not a problem. I usually only use OS friendly software anyway.
Quote:
Quote:
Quote:
Perhaps, but I'm not expecting much trouble to be honest, although I wonder what will happen with PeterK's icon library |
|||
21 June 2016, 15:14 | #10 | ||
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
|
Quote:
On some monitors (like 1084, 1085) they're crappy. Not on others (like 1083). A good monitor doesn't value a hi-fi system but it's certainly better than the small beepers of headphones, which eat all the bass. Of course the worse is integrated loudspeakers in laptops Quote:
Sounds unclear to me. It doesn't say you're allowed to call the function with wildly out-of-range values. |
||
21 June 2016, 15:42 | #11 | |
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,753
|
Quote:
Good headphones have good representations of all the audible frequencies, and cheap monitor speakers can't ever mach that. Only good loudspeakers do better. Not to mention that those weak, crappy little built-in amplifiers can't ever match a decent, dedicated stereo amplifier. I actually have some powerful loudspeakers (old Kef Cadenza's), but they quickly become too loud, and I have neighbors. The headphones I have, have decent bass, so I use them. I was actually pleasantly surprised at how good those 45 Euro Sennheiser's are (not just bass, everything). I suspect that when you shell out around 250 Euros for a decent brand, you'll be blown away completely. It implies that it's alright to filter out negative index values. Basically, the patched functions detect that the index is -1, they set the gamma, and just exit without calling the original function. That way nothing happens. |
|
21 June 2016, 20:44 | #12 | |||
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
|
Quote:
Where is your knowledge about how monitors sound is ? I know how good headphones can sound. They damage the bass, even if of course you still hear them. They raise high frequencies. Quote:
Even the most basic acoustic knowledge is against you. The monitor makes a quite nice subwoofer, especially in comparison to these ridiculously small headphones. Only poor amp can be responsible of poor sound - and on this model it's quite okay (I know, I got a 1085 and, believe me, this one's near useless for playing sounds !). Quote:
For that price i can get a whole stereo system ! The point isn't that. The trick is that you can't be sure that calling the function with -1 without the patch installed won't crash. |
|||
21 June 2016, 21:27 | #13 | |||
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,753
|
Quote:
Quote:
It depends on what you want. Yes. You can't get good ones for 10 bucks. Same with loudspeakers. Good ones cost cash. Quote:
Anyway, I'm probably not going to do it. I forgot about the color table functions. Having to deal with those means modifying the calling program's allocated memory, and I'm not copying those tables over. |
|||
21 June 2016, 21:46 | #14 | |||
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
|
Quote:
Yes the monitor does produce a better quality sound than decent 50-eur headphones. You may come to hear it, m'kay That said, of course, nothing values a good hifi system with 7-band equalizer fine tuned for the miggy Quote:
Quote:
If you're not going to do it, then this whole thread is pointless |
|||
21 June 2016, 22:48 | #15 |
Banned
Join Date: Jan 2010
Location: Kansas
Posts: 1,284
|
I recently bought some Logitech h110 head phones from Walmart for 15 bucks and was very impressed. They don't have as much base as a sub-woofer but they have descent base. The clarity and higher pitches are amazing for such cheap head phones. I actually bought them as much for the microphone (in game voice chat) which is also very good quality. I play Dungeons and Dragons Online multiplayer with family and friends and I have to say that the sound quality of even cheap PCs have exceeded the Amiga (which still sounds good today considering the old and low specs). The DDO stereo effect in a 3D environment reminds me of a modern re-implementation of the Dungeon Master 3D environment sound. My "multimedia" PC is only about a $300 U.S. setup as DDO does not have high requirements. Too bad the Amiga elites block affordable hardware, 68k AmigaOS development and standardization so games like this will never happen on the Amiga.
|
21 June 2016, 23:10 | #16 | |||
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,753
|
That's, of course, not true. I don't know where you're getting that from.
Quote:
With what I have at home it seems completely inconceivable that a Commodore monitor is better. My headphones certainly don't damage the bass and they don't increase the high frequencies, either. Headphones that do that are crap. Quote:
Quote:
I'm also pretty sure that there wouldn't be a dedicated headphones forum for headphone enthusiasts if headphones were all bad. There was undoubtedly a time when headphones weren't very good, just like flat panels. But those times are gone. Yes, but does it matter? If you don't get crashes with the patch, that's better. I also doubt it would crash, actually. The documentation specifically says that out of range indexes do nothing. This implies that the input value is tested against a range (which it should). Well, maybe it's not so bad to copy the table. What software changes the color table in a tight loop anyway? |
|||
21 June 2016, 23:23 | #17 | ||
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,753
|
Quote:
Quote:
But what's the point of trying to approach peecee specs? To me the whole charm is exactly that Amigas don't have peecee like specs. It seems far more interesting to see what can be done with AGA and a '030. I actually obtained permission to use the Grimrock 2 3D assets for an Amiga game. Should be interesting to see what's possible with full screen pre-rendered graphics. |
||
22 June 2016, 00:13 | #18 | |
Banned
Join Date: Jan 2010
Location: Kansas
Posts: 1,284
|
Quote:
|
|
22 June 2016, 01:54 | #19 | ||||||
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,753
|
Quote:
Quote:
Quote:
The time of Amiga being a leader is long past, and likely won't ever return. Certainly not with things like a pi costing chicken feed. Quote:
Quote:
Not that much, no. Only when I see games that may work on Amigas in some nice form, like Grimrock, which could be great with pre-rendered graphics. Games like Fire Emblem and Advance Wars would work well, too. There are probably a few others I haven't played. But for the rest, why? I have no problem with using my peecee for most games. It's also very easy. Just download from Steam and play. Amiga will never have that. Quote:
It's also the best retro platform, and I'd like to keep it that way. What's the point of turning an Amiga into glue logic by adding ghz CPUs, 3D graphics cards and sound cards? I also already have stuff like that and don't need an Amiga for it. To me, trying to force Amigas to be what they're not is a pointless exercise. I'd rather see better software that's engineered to perfection, because Amigas as they are now can do much better. Especially the OS could be miles better on 68020+ with fastmem. |
||||||
22 June 2016, 07:59 | #20 | ||||||||||||
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
|
Quote:
Quote:
Quote:
This is really getting nowhere. Quote:
Quote:
Quote:
Quote:
Quote:
Because we could then do better than real peecees. You seem to forget (or just don't know) that Amigas have always done better than peecees with a similar config on the paper. Try to imagine what we could do with todays tech. Also you miss the fact that coding on the Amiga is a magnitude easier than coding on the peecee. I would NEVER code a whole app in pc asm ! Quote:
Quote:
About sanity check, i don't miss that at all. My own system framework does that already (and the resource tracking as well). Quote:
Quote:
Doesn't mean we don't need a few more horsepower. |
||||||||||||
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Alien Breed 3D, stuck on level 8, Test Area Gamma | HardStep | support.Games | 18 | 25 September 2019 01:22 |
Numeric guide for brightness, contrast and gamma values (WinUAE) | Maren | request.UAE Wishlist | 4 | 25 August 2009 09:35 |
HUE correction [was colour correction] | Marcuz | request.UAE Wishlist | 6 | 17 September 2008 22:13 |
|
|