News for hackers. Stuff that matters.
Re:Color Emulation by Flow on Friday September 13, 2019 @10:12AM (#20962327)
I grew up coding demo effects on the C64 and the Amiga.

I always loved how the vblank synced ultra-smooth graphics slide over the screen while the CRT had a sort of magical "glow" to the picture.

I sit here by a nice iMac but often feel like that magical glow just isn't there even though the picture is 1000 times better than my old television I used.

Is there some kind of effect that can be applied to achieve this glow on a good LCD screen?

Or maybe it's just the lying of the nostalgia of childhood memories?

Re:Color Emulation by byuu on Friday September 13, 2019 @10:31AM (#20962499)
Phosphor glow is one of my favorite effects. One of these days I'd really love to have a software-mode C++ filter for that.

It can be done through filtering, but it's really hard to make it look good. A person named Psiga made this mock-up for Secret of Mana in Photoshop that has always astounded me: https://sites.google.com/site/psigamp3/PhosphorSimTest1.jpg

Unfortunately, no one's been able to figure out exactly how it was made to replicate it in software. But something like it would really add a lot.

There are however really good CRT simulation pixel shaders, such as CRT-Royale: http://emulation.gametechwiki.com/index.php/CRT-Royale

Re:Color Emulation by ZeikJT on Friday September 13, 2019 @05:10PM (#20966604)
Psiga seems to be a person named Patrick Murphy (based on the recent change history: https://sites.google.com/site/psigamp3/system/app/pages/rece...) and they've uploaded at least one other phosphor test such as this one from 2011: https://sites.google.com/site/psigamp3/phosphorsim-gettingcl...

They also uploaded something as recently as 2017 so it might be possible to reach out to them and get a response?

Not sure if that helps find / reach out to them but I can hope.

Re:Color Emulation by byuu on Saturday September 14, 2019 @09:03AM (#20970536)
We have pinged them in the past about it, actually ^^;; It's been a mini-obsession of mine since I found it, hahah. They regrettably don't remember how it was made.
Re:Color Emulation by ZeikJT on Sunday September 15, 2019 @12:46PM (#20978101)
Ah bummer. I would have thought they'd have kept the PSD lying around somewhere like I do and it would've shed some light. Maybe someday someone will figure out something that looks right!
Re:Color Emulation by Ibethewalrus on Friday September 13, 2019 @12:44PM (#20963747)
The Mana looks like two filters, a scan line plus a blur one. Lmk if you’d like me to give it a go to replicate in Photoshop
Re:Color Emulation by byuu on Friday September 13, 2019 @08:07PM (#20967915)
I would like that, thank you! A few people have tried over the years, and we even contacted the person who made the original image, but he didn't remember how he did it ^-^;
Re:Color Emulation by Fr0styMatt88 on Friday September 13, 2019 @11:02AM (#20962746)
That phosphor image looks great! I wonder if it could be used to train a style transfer neural network to create a filter to replicate it?
Re:Color Emulation by nitrogen on Friday September 13, 2019 @09:57PM (#20968427)
Since the physics are known it's probably going to be easier to simulate from first principles.
Re:Color Emulation by vanderZwan on Saturday September 14, 2019 @10:00AM (#20970803)
You could probably use machine learning for fine-tuning the parameters of whatever fast approximation comes out of that though.

(having a plausible first-principles model and then automatically tuning the knobs until the error with a ground truth is minimised is a form of machine learning, right?)

Re:Color Emulation by jbay808 on Saturday September 14, 2019 @01:26AM (#20969083)
Pretty sure a cross correlation of the source and resulting image will reveal most of the transformation's recipe, aside from a few details like the fine grid lines added in. If I have time tomorrow I might take a crack at it.
Re:Color Emulation by vanderZwan on Friday September 13, 2019 @12:48PM (#20963798)
> Unfortunately, no one's been able to figure out exactly how it was made to replicate it in software.

Could that be due to something like the phosphor glow having non-linear properties or something?

Re:Color Emulation by DiabloD3 on Friday September 13, 2019 @07:49PM (#20967829)
Look at CRT draw in slow motion. You have an ultra bright flash, then an alarmingly quick phosphor glow falloff.

You'd need, basically, a high hz HDR monitor with an actual sub-ms response time... so you can superbright blink the character, essentially black framing it.

The rest of the actual softness of the glow can be emulated conventionally with shaders (there are some super swanky terminals and emulators that have that part already done).

Re:Color Emulation by Vel0cityX on Saturday September 14, 2019 @01:25AM (#20969077)
> there are some super swanky terminals and emulators that have that part already done Like 'cool-retro-term': https://github.com/Swordfish90/cool-retro-term
Re:Color Emulation by vanderZwan on Saturday September 14, 2019 @09:53AM (#20970751)
Although this flicker would indeed be necessary for a 100% accurate reproduction, I'm not sure that is really the thing that current CRT shaders are missing for feeling "just right". After all, the linked example image feels very convincing and yet is static.
Re:Color Emulation by crankylinuxuser on Friday September 13, 2019 @11:15AM (#20962860)
That's Seiken Densetsu 3 (unreleased in US but fan translated by Neill Corlett)

:)

Re:Color Emulation by sb057 on Friday September 13, 2019 @11:22AM (#20962926)
It was actually officially released internationally a few months ago as Trials of Mana!
Re:Color Emulation by Deimorz on Saturday September 14, 2019 @02:28AM (#20969275)
It's not out yet, the release date is April 24, 2020.
Re:Color Emulation by sb057 on Wednesday September 18, 2019 @07:45PM (#21011743)
You're thinking of the remake; the 16-bit original was recently released as part of a trilogy bundle.
Re:Color Emulation by nineteen999 on Sunday September 15, 2019 @06:56PM (#20979947)
Agreed, love this kind of look. I emulated a curved screen, phosphor glow and scan lines somewhat in my Unreal Engine based Z80 emulators, although I think the look could still be improved further. This is fairly easy to do with UE4 shaders and geometry for the curved screen, a bit harder to do all from scratch though in a standalone program I would think.

https://i.imgur.com/rIY1he8.png