Board index FlightGear Development Effects and shaders

The Compositor

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

Re: The Compositor

Postby Necolatis » Mon May 11, 2020 11:43 pm

I saw no release candidates or 2020.1.1 releases with compositor enabled.
"Airplane travel is nature's way of making you look like your passport photo."
— Al Gore
User avatar
Necolatis
 
Posts: 2108
Joined: Mon Oct 29, 2012 12:40 am
Location: EKOD
Callsign: Leto
IRC name: Neco
Version: 2019.1.2
OS: Windows 10

Re: The Compositor

Postby stuart » Tue May 12, 2020 8:17 am

I think it's provided as a separate binary within the package. So it's not a separate package
G-MWLX
User avatar
stuart
Moderator
 
Posts: 1584
Joined: Wed Nov 29, 2006 9:56 am
Location: Edinburgh
Callsign: G-MWLX

Re: The Compositor

Postby vnts » Tue May 12, 2020 1:54 pm

I just downloaded the release from http://download.flightgear.org/builds/2020.1/ . I can confirm it has the separate fgfs-compositor.exe binary with a working compositor, as well as the normal fgfs.exe one. There is a compositor shortcut in windows startmenu for the low spec pipeline ~~ALS pipeline~~ and non-compositor build, but not for the compositor low spec pipeline (--compositor=Compositor/low-spec). (Changelog currently mentions compositor is not enabled).

The start up splash screen for the release build is the same as the one bundled in nightlies, and just says "Compositor" in red. It's fine for being bundled in the nightlies, but for inclusion in the release maybe(?) it should be extended to mention compositor is experimental/unstable/wip to reduce misconceptions from users that didn't read the changelog, or the part covering the compositor.

Kind regards

Edit: The start-menu link is to the low-spec pipeline, not the ALS pipeline (Turns out I using my own shortcuts which I have as I use folders in non-standard locations). The installer compositor shortcut just says --launcher without specifying a pipeline which defaults to low-spec. An ALS shortcut should (?) be included otherwise people might be bemused(?) and not testing both versions.
Last edited by vnts on Tue May 12, 2020 3:07 pm, edited 2 times in total.
vnts
 
Posts: 203
Joined: Thu Apr 02, 2015 12:29 am

Re: The Compositor

Postby Necolatis » Tue May 12, 2020 2:40 pm

Oops, I will change wiki back again
"Airplane travel is nature's way of making you look like your passport photo."
— Al Gore
User avatar
Necolatis
 
Posts: 2108
Joined: Mon Oct 29, 2012 12:40 am
Location: EKOD
Callsign: Leto
IRC name: Neco
Version: 2019.1.2
OS: Windows 10

Re: The Compositor

Postby wlbragg » Thu May 14, 2020 6:19 pm

I just did a 2020.1.1 build of compositor, stock 2020.1.1 fgdata, and all the line data, roads and streams are white. Nothing in the log pointing to anything suspect? Any idea what might be wrong?

I'm also still confused about "interior shadows", are we supposed to rely on ALS cube map or is the renderer supposed to handle that on its own?
I think I just answered that on my own. Removed the cube map and I still have some really nice interior shadows!
Nope, jumped the gun there, no "nice" interior shadows without the cube.

Has anyone got a decent interior shadow without the use of a cube map?
Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
Intel i5 3570K AMDRX480
User avatar
wlbragg
 
Posts: 5655
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/AMDRX480

Re: The Compositor

Postby legoboyvdlp » Thu May 14, 2020 7:16 pm

Wlbragg,

Any objects with the interior effect applied won't get shadows. I think this is because they're supposed to use the cubemap.
User avatar
legoboyvdlp
 
Posts: 7706
Joined: Sat Jul 26, 2014 1:28 am
Location: Northern Ireland
Callsign: G-LEGO
Version: next
OS: Windows 10 HP

Re: The Compositor

Postby Icecode GL » Thu May 14, 2020 9:18 pm

I just did a 2020.1.1 build of compositor, stock 2020.1.1 fgdata, and all the line data, roads and streams are white. Nothing in the log pointing to anything suspect? Any idea what might be wrong?


Not all effects have been completely ported to the compositor. The new ALS pipeline also recently received some updates regarding the handling of depth, so some objects might not even be rendered (hence the white color from the sky background behind). Most common objects work properly, but more special effects like building.eff and road.eff might not be completely ported.

I'm also still confused about "interior shadows", are we supposed to rely on ALS cube map or is the renderer supposed to handle that on its own?


Alright, I'll try again...

You have two options if you want shadows in the cockpit:

- Use model-interior with the cubemap shadows, just as you have been doing before.
- Use any other effect (model-combined, model-default, etc.) to get true shadow mapping.

legoboyvdlp suggested to be able to use true shadow mapping even when using model-interior via a parameter, so you'll probably be able to choose between both without changing effects.

The safe bet for now is to just leave it as is. If you already have model-interior applied, leave it as is. If you don't have model-interior applied, leave it as is as well. Once a robust scheme is decided you should be able to better judge what's the best route to take.
Icecode GL
 
Posts: 622
Joined: Thu Aug 12, 2010 12:17 pm
Location: Spain
Callsign: icecode
Version: GIT
OS: Fedora

Re: The Compositor

Postby wlbragg » Thu May 14, 2020 10:35 pm

Once a robust scheme is decided you should be able to better judge what's the best route to take.

As far as I am concerned, "best" is a shadow you can use on knobs and needles in gauges and panels. ALS is out for that as the rotations are not incorporated and shadows don't line up using the cube map method. That is why I am excited about the compositor and its possibilities.

I think I understand a bit better how I might get a "non-cubemap" shadow. I'll make some changes and test if I understand this and if I can get any interior shadow without "model-interior".

Thanks for "trying again...".
Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
Intel i5 3570K AMDRX480
User avatar
wlbragg
 
Posts: 5655
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/AMDRX480

Re: The Compositor

Postby wlbragg » Fri May 15, 2020 12:00 am

Finally, I guess I asked the right question and understood the answer.

Now this is exciting!

I've never had this in any of the aircraft I worked on. Maybe with Rembrandt? But I never programed for it.

Notice the shadow on the needle. We can't do this with the cube map effectively. Also notice the rotor blade shadow on the panel. The shadow on the panel gauges doesn't seem to be as sharp as on the panel itself. May be the angle.



Same here with a knob.

Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
Intel i5 3570K AMDRX480
User avatar
wlbragg
 
Posts: 5655
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/AMDRX480

Re: The Compositor

Postby wlbragg » Fri May 15, 2020 2:14 am

So what is the deal with using...

Try to mark as many cockpit objects as possible as interior.

Code: Select all
<model>
  <name>interior</name>
  <usage>interior</usage>
  <path>Aircraft/JA37/Models/ja37-interior.xml</path> <!-- All the objects that should only be seen when inside the cockpit are in this file -->
</model>


It doesn't appear do be needed or do anything?
Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
Intel i5 3570K AMDRX480
User avatar
wlbragg
 
Posts: 5655
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/AMDRX480

Re: The Compositor

Postby Necolatis » Fri May 15, 2020 2:50 am

You can only use that tag once.
Everything under that tag will not be shown over MP depending on the MP interior distance set.
No reason to compute shadows for other aircraft interior.
"Airplane travel is nature's way of making you look like your passport photo."
— Al Gore
User avatar
Necolatis
 
Posts: 2108
Joined: Mon Oct 29, 2012 12:40 am
Location: EKOD
Callsign: Leto
IRC name: Neco
Version: 2019.1.2
OS: Windows 10

Re: The Compositor

Postby wlbragg » Fri May 15, 2020 4:19 am

Ah, thanks.
Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
Intel i5 3570K AMDRX480
User avatar
wlbragg
 
Posts: 5655
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/AMDRX480

Re: The Compositor

Postby sidi762 » Fri May 15, 2020 10:18 am

Hi,

Lately, I'm experimenting with compositor lights (haven't got a chance to try compositor myself yet so my friend did the testing) and found that the compositor lights won't illuminate the terrain. Is it just me (my friend) or it's a bug/feature?

Kind regards,
Sidi
sidi762
 
Posts: 193
Joined: Sat Jun 18, 2016 8:15 am
Location: Beijing, China
Callsign: DAG0762
Version: 2018.3.4
OS: MacOS Mojave

Re: The Compositor

Postby wlbragg » Fri May 15, 2020 4:19 pm

compositor lights won't illuminate the terrain.

I'm not sure exactly what you mean by "compositor lights", but the ALS landing lights work under compositor without any hacking.
Image

legoboyvdlp suggested to be able to use true shadow mapping even when using model-interior via a parameter,

@legoboyvdlp, can you elaborate if this is true? What parameter?
Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
Intel i5 3570K AMDRX480
User avatar
wlbragg
 
Posts: 5655
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/AMDRX480

Re: The Compositor

Postby legoboyvdlp » Fri May 15, 2020 5:15 pm

That was a feature request - hasn't been added yet :)
User avatar
legoboyvdlp
 
Posts: 7706
Joined: Sat Jul 26, 2014 1:28 am
Location: Northern Ireland
Callsign: G-LEGO
Version: next
OS: Windows 10 HP

PreviousNext

Return to Effects and shaders

Who is online

Users browsing this forum: No registered users and 1 guest