Board index FlightGear Development Effects and shaders

ALS Landing lights are visible in Multiple Views

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

ALS Landing lights are visible in Multiple Views

Postby sathish » Tue Jun 11, 2019 1:45 pm

Hi,
While Enabling Landing Lights in Flightgear 2017.3.1 with multiple view configurations(Center,Right,Left), instead of appearing on Center view the landing light spots are visible on all the three views ...
I couldn't able to Disable the multiple Light spots ...Any Shader or Effects updation is required..
Can Anybody help me to sort out this..

Thanks in Advance
sathish
 
Posts: 43
Joined: Tue Mar 13, 2018 1:51 pm

Re: ALS Landing lights are visible in Multiple Views

Postby wlbragg » Tue Jun 11, 2019 5:56 pm

I'm not sure I totally understand your question, but I think your wanting to limit the ALS landing lights to center view only?

Something like this logic statement works well.

In file als-lights.xml
Code: Select all
<logic>
        <name>ALS Lighting Landing</name>
        <input>
            <and>

               <!-- change the following view condition to match the view you want the lights to be visible with -->
                <property>/sim/current-view/internal</property>

               <!-- this would be your switch that turns on the landing light -->
                <property>/sim/model/c172p/lighting/landing</property>

            </and>
        </input>
        <output>
            <!-- this is the switch that turns on the ALS landing light shader -->
            <property>/sim/rendering/als-secondary-lights/use-landing-light</property>
        </output>
    </logic>


Call it using a systems/property-rule in the set. file...

Code: Select all
<systems>
            <property-rule n="102">
                <path>Aircraft/c172p/Systems/als-lights.xml</path>
            </property-rule>
</systems>
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7609
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070

Re: ALS Landing lights are visible in Multiple Views

Postby wkitty42 » Tue Jun 11, 2019 7:54 pm

i'm not sure but i think what the OP is calling "views" is actually separate monitors... wouldn't they be called "cameras" in FG? i may be misunderstanding this completely, too...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9162
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 22.04

Re: ALS Landing lights are visible in Multiple Views

Postby wlbragg » Tue Jun 11, 2019 7:58 pm

Oh, OK, this still may work if the two monitors that are defined as left and right are actually defined and visible if using the view properties set to true. It should still eliminate the ALS if that achieved by a camera "view". However, all three views at the same time, I have no clue if that changes things, I have never set up multi-monitors.
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7609
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070

Re: ALS Landing lights are visible in Multiple Views

Postby sathish » Mon Jun 17, 2019 11:29 am

wlbragg wrote in Tue Jun 11, 2019 5:56 pm:I'm not sure I totally understand your question, but I think your wanting to limit the ALS landing lights to center view only?

Something like this logic statement works well.

In file als-lights.xml
Code: Select all
<logic>
        <name>ALS Lighting Landing</name>
        <input>
            <and>

               <!-- change the following view condition to match the view you want the lights to be visible with -->
                <property>/sim/current-view/internal</property>

               <!-- this would be your switch that turns on the landing light -->
                <property>/sim/model/c172p/lighting/landing</property>

            </and>
        </input>
        <output>
            <!-- this is the switch that turns on the ALS landing light shader -->
            <property>/sim/rendering/als-secondary-lights/use-landing-light</property>
        </output>
    </logic>


Call it using a systems/property-rule in the set. file...

Code: Select all
<systems>
            <property-rule n="102">
                <path>Aircraft/c172p/Systems/als-lights.xml</path>
            </property-rule>
</systems>

Thanks a lot..i'll try it..can u list the shaders responsible for ALS..
sathish
 
Posts: 43
Joined: Tue Mar 13, 2018 1:51 pm

Re: ALS Landing lights are visible in Multiple Views

Postby wlbragg » Mon Jun 17, 2019 4:12 pm

It's been awhile since I looked at any shader code, so unfortunately I can't provide you with a list of which shader files deal with landing lights.
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7609
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070


Return to Effects and shaders

Who is online

Users browsing this forum: No registered users and 3 guests