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 5:33 pm

Necolatis wrote in Sun Oct 01, 2017 12: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: 77
Joined: Sat Mar 14, 2015 2:08 pm
Version: 2018.1.1
OS: Fedora 27

Re: LCD/LED shader for cockpit displays

Postby Richard » Sat Feb 17, 2018 10: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: 609
Joined: Sun Nov 02, 2014 10:17 pm
Version: Git
OS: Win10

Re: LCD/LED shader for cockpit displays

Postby Thorsten » Sun Feb 18, 2018 6: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: 9914
Joined: Mon Nov 02, 2009 8:33 am

Re: LCD/LED shader for cockpit displays

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

Richard wrote in Sat Feb 17, 2018 10: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: 77
Joined: Sat Mar 14, 2015 2:08 pm
Version: 2018.1.1
OS: Fedora 27

Previous

Return to Effects and shaders

Who is online

Users browsing this forum: No registered users and 3 guests