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 12: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: 42
Joined: Tue Mar 13, 2018 12:51 pm

Re: ALS Landing lights are visible in Multiple Views

Postby wlbragg » Tue Jun 11, 2019 4: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(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
User avatar
wlbragg
 
Posts: 4874
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Debain/nVGT640

Re: ALS Landing lights are visible in Multiple Views

Postby wkitty42 » Tue Jun 11, 2019 6: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: 5630
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: ALS Landing lights are visible in Multiple Views

Postby wlbragg » Tue Jun 11, 2019 6: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(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
User avatar
wlbragg
 
Posts: 4874
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Debain/nVGT640

Re: ALS Landing lights are visible in Multiple Views

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

wlbragg wrote in Tue Jun 11, 2019 4: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: 42
Joined: Tue Mar 13, 2018 12:51 pm

Re: ALS Landing lights are visible in Multiple Views

Postby wlbragg » Mon Jun 17, 2019 3: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(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
User avatar
wlbragg
 
Posts: 4874
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Debain/nVGT640


Return to Effects and shaders

Who is online

Users browsing this forum: No registered users and 4 guests