Board index FlightGear Development Effects and shaders

LCD/LED shader for cockpit displays

An exciting "new" option in FlightGear, that includes reflections, lightmaps, the particle system etc.. A lot is yet to be discovered/implemented!

Re: LCD/LED shader for cockpit displays

Postby xcvb » Sat Feb 17, 2018 6:33 pm

Necolatis wrote in Sun Oct 01, 2017 1:41 pm:I searched if somebody had already made a GPL GLSL CRT effect.
It turns out there is plenty out there on retro websites. Not sure any of them were meant to be used on textures in 3D world though.
I was planning to investigate them further and see if I could adapt one of them to work in FG. If its not too heavy for performance.

Here is an example of what one of them can do: http://mame32fx.altervista.org/forum/viewtopic.php?t=184

With maybe just half of those features, it would still be pretty cool.

Here is a bunch of them: https://github.com/libretro/glsl-shaders/tree/master/crt


I tested one of the CRT shader from the webside. The effect looks quite nice if you zoom in but you get ugly aliasing for standard views:

Image
xcvb
 
Posts: 132
Joined: Sat Mar 14, 2015 3:08 pm
Version: Next
OS: Fedora Kinoite

Re: LCD/LED shader for cockpit displays

Postby Richard » Sat Feb 17, 2018 11:30 pm

I also did some experimentation with CRT shaders [1], but obviosuly a CRT shader has slightly different requirements to an LCD shader; however I don't think ti's right to show the interlace lines on an LCD - a different method is required to mimic how LCD based displays work.

------------
[1] https://www.youtube.com/watch?v=D5u40s2opgk
Richard
 
Posts: 810
Joined: Sun Nov 02, 2014 11:17 pm
Version: Git
OS: Win10

Re: LCD/LED shader for cockpit displays

Postby Thorsten » Sun Feb 18, 2018 7:44 am

I plan to resume work on a general display shader during the next release cycle, I can add LCD/CRT options to my existing display shader that's used by the Shuttle MDUs - if people can come up with a clear idea of requirements what it should be doing.
Thorsten
 
Posts: 12490
Joined: Mon Nov 02, 2009 9:33 am

Re: LCD/LED shader for cockpit displays

Postby xcvb » Sun Feb 18, 2018 8:50 am

Richard wrote in Sat Feb 17, 2018 11:30 pm:I also did some experimentation with CRT shaders [1]


The CRT from your aircraft must be very old. I'm looking for an effect which suits to a CRT from the early 1990s which is not that bad. Very slight distortion, a slightly reduced contrast (black becomes dark gray) and a black frame around the usable area is what could be made. Some interference effects when filming a CRT with a camera could also be done but this is not what you would see in reality. If I don't find a way to avoid the aliasing I will not use scanlines.
xcvb
 
Posts: 132
Joined: Sat Mar 14, 2015 3:08 pm
Version: Next
OS: Fedora Kinoite

Previous

Return to Effects and shaders

Who is online

Users browsing this forum: No registered users and 4 guests