News for hackers. Stuff that matters.
Re:Simulating a CRT TV with C++ and OpenGL by jeroenhd on Monday September 26, 2022 @10:06AM (#32983268)
When I look at CRT emulation, I always feel like I'm going crazy. It's been years since I last saw a CRT image but I don't remember visible scanlines at all.

I know the retro space is often specifically emulating old hardware, was thing a thing in the 80s, perhaps? Or were visible scanlines more common in America than in Europe? I know the weird colours and lowered resolution of some (emulated) games are an artifact of differences in NTSC/PAL/etc., could that explain the difference?

Re:Simulating a CRT TV with C++ and OpenGL by jerf on Monday September 26, 2022 @10:10AM (#32983313)
They seem obsessed with simulated really bad CRTs. I think you could see such scanlines if you were hooking up your Atari 2600 to a TV that was already a decade old, then sat right on top of it instead of across the living room because the cords were short and you wanted to see your games. I've seen it on some arcade games, for similar reasons. But in general, CRTs didn't have those plainly obvious lines, no, because... the engineers would have engineered them out! And did. They're plainly unsightly and it isn't that hard to remove them, after all.

I imagine part of it is the need to have visible differences strongly emphasized so it looks like the filters are doing something. A true CRT filter would be much more subtle and people might not thing anything has happened when you turn it on.

Re:Simulating a CRT TV with C++ and OpenGL by acuozzo on Monday September 26, 2022 @11:53AM (#32984708)
> They seem obsessed with simulated really bad CRTs.

I think it's quite the contrary. They seem obsessed with simulating high end CRT studio monitors like the Sony BVM line which were very sharp and had a highly pronounced negative scanline space.

The image on the left is from a BVM: https://i.imgur.com/cu4PdgF.jpg

Re:Simulating a CRT TV with C++ and OpenGL by dehrmann on Monday September 26, 2022 @12:22PM (#32985041)
> They seem obsessed with simulated really bad CRTs.

Good PC flat screen CRTs towards the end of the CRT era looked as good as you could ask for. By modern standards, all that was missing was 120 Hz and hidpi.

Re:Simulating a CRT TV with C++ and OpenGL by ogurechny on Monday September 26, 2022 @02:18PM (#32986367)
> 120 Hz

It always irks me that everyone seem to have completely forgotten that CRT monitors were routinely used in 75 Hz and 85 Hz (and even higher rates) and with various resolutions instead of the one and only 60 Hz in native resolution as with most LCD monitors. 60 Hz meant “I can't configure Windows” or “my video card or monitor can't handle more than that with resolution that high”.

Re:Simulating a CRT TV with C++ and OpenGL by 323 on Monday September 26, 2022 @04:06PM (#32987655)
Because it sacrificed pixel accuracy - the horizontal lines were a continuous signal and the pixels kind of blurred into each other. Looking at a CRT monitor side by side with a LCD one was quite revealing - even a last generation 2005 CRT monitor with digital controls and OSD was a blurry mess.

If you want both fast refresh rates and pixel accuracy, well, you kind of need today's technology. Not possible back then.

Re:Simulating a CRT TV with C++ and OpenGL by hulitu on Monday September 26, 2022 @01:27PM (#32985784)
There were some who could do 120 Hz although for small resolutions. But hidpi was common. It took LCD monitors 10 years to catch up with hidpi and the colours are still problematic on the majority of LCDs.
Re:Simulating a CRT TV with C++ and OpenGL by gattilorenz on Monday September 26, 2022 @01:57PM (#32986124)
120Hz was not that uncommon in the last years of CRTs, they could actually go higher: https://www.youtube.com/watch?v=ySQzXpYETXc

I guess it all depends on what you define as "small resolutions". My stupid ADI monitor from 97 could do 1024x768@85Hz

Re:Simulating a CRT TV with C++ and OpenGL by orbital-decay on Monday September 26, 2022 @10:33AM (#32983625)
>They seem obsessed with simulated really bad CRTs. ... I imagine part of it is the need to have visible differences strongly emphasized so it looks like the filters are doing something.

The main reason for that is that games of the era were targeted at the most common hardware, using very cheap composite circuits and CRTs as medium for artistic expression. In many games, you could easily miss gradients, rainbow effects, transparency, or something else with a high-end CRT.

Re:Simulating a CRT TV with C++ and OpenGL by hulitu on Monday September 26, 2022 @11:46AM (#32984606)
I played spectrum games on the spectrum connected to PC . Spectrum had a graphics resolution of 256x192 px and no scan lines were visible on a 24" TV.
Re:Simulating a CRT TV with C++ and OpenGL by Asooka on Monday September 26, 2022 @10:59AM (#32984001)
That seems pretty far-fetched. Do you have examples of such effects being shown wrong on CRTs without scanlines?
Re:Simulating a CRT TV with C++ and OpenGL by doubled112 on Monday September 26, 2022 @12:04PM (#32984845)
I don't think they're referring to scanlines specifically.

Something like the waterfalls in Sonic the Hedgehog come to mind.

https://gamedev.stackexchange.com/questions/167804/did-retro...

There's an image on this page. The waterfalls don't look very good with sharp pixels. A CRT would blur and blend, and you'd have to assume the game designers knew it would happen. It's probably not just a happy accident.

Re:Simulating a CRT TV with C++ and OpenGL by speeder on Monday September 26, 2022 @12:21PM (#32985027)
doubled112 comment is excellent.

Another example that is harder to show, is that many games used intentional flickering or other tricks to create some funky effects only possible with CRT.

For example: if you transmit the data correctly (one frame is only odd lines, next frame only even lines) and flicker sprites at certain speeds, you can achieve some fancy transparency and overlay effects.

Another trick is toy with timings to screw with resolution, color range and pixel shape.

A less reliable trick is sub-pixel anti-alias relying on the TV geometry, since each manufacturer had their own patented geometry this was more problematic (for example Sony's Trinitron was aperture grille, each pixel was composed of columns of each color. Many other manufacturers went for triangular pixels instead. With the 3 primary colors arranged as round dots in a triangular pattern).

Re:Simulating a CRT TV with C++ and OpenGL by ogurechny on Monday September 26, 2022 @02:02PM (#32986198)
It could be the opposite. Big high resolution multisync CRT monitors had to have fine dot pitch and finely focused beam. However, in lower resolutions the distance between scanlines was more noticeable, as there was limit to how wide and powerful electron beam could be. As for the lowest res CGA/EGA modes, VGA and later adapters simply had to use double scan to output anything decent on the CRT, so it was part of the standard.

So people might be trying to mimic running 1987 games on 1997 hardware and not the look of original CGA/EGA/VGA monitors. Recreating some style is an artistic choice altogether anyway, and I think it's better to discuss it this way.

Re:Simulating a CRT TV with C++ and OpenGL by 323 on Monday September 26, 2022 @10:11AM (#32983329)
Really really old monitors had visible scan lines, like before 1985 or so: https://i.redd.it/o6gezzyw8dv61.jpg