Board index FlightGear Development Effects and shaders

Implementing ALS Flashlight  Topic is solved

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

Implementing ALS Flashlight

Postby sanhozay » Fri Dec 02, 2016 2:10 pm

I'm trying to implement an ALS flashlight and it's not working for me. I have:

a. Followed these instructions http://wiki.flightgear.org/ALS_technica ... flashlight to make a .eff file in Models/Effects/Lights (in fact I have now copied the contents of c172p-flashlight.eff from the c172p)
b. Set the property, i.e. /sim/rendering/als-secondary-lights/use-flashlight = 1

Is there another step? Does the .eff file need to be referred to somehow? I can't see that the c172p does so.

The flashlight works for me in the c172p and I have ALS secondary lights and procedural lights working in my model.
sanhozay
 
Posts: 1207
Joined: Thu Dec 26, 2013 11:57 am
Location: EGNM
Callsign: G-SHOZ
Version: Git
OS: Ubuntu 16.04

Re: Implementing ALS Flashlight

Postby wlbragg » Fri Dec 02, 2016 3:00 pm

You need to have all objects that are to be illuminated inherit the effect. Sorry I'm on a tablet and can"t get detailed response.

basically

Code: Select all
    <!-- interior effects  -->
    <effect>
        <inherits-from>Effects/interior/c172p-interior</inherits-from>
        <object-name>wing_1L</object-name>
        <object-name>wing_1R</object-name>
        <object-name>Firewall</object-name>
        <object-name>AirVent_left</object-name>
        <object-name>AirVent_right</object-name>
        <object-name>chassis</object-name>
        <object-name>doorint_right</object-name>
        <object-name>doorint_left</object-name>
        <object-name>CeilingSpeaker</object-name>
        <object-name>TrimWheel</object-name>
        <object-name>ElevatorTrimPos</object-name>
        <object-name>FuelSelectorFace</object-name>
        <object-name>FuelSelectorLeft</object-name>
        <object-name>FuelSelectorRight</object-name>
        <object-name>FuelSelectorBoth</object-name>
        <object-name>FuelSelectorOff</object-name>
        <object-name>mike_mount</object-name>
        <object-name>Pedestal</object-name>
        <object-name>CabinAirMounts</object-name>
        <object-name>CabinAir</object-name>
        <object-name>CabinHeat</object-name>
        <object-name>BeaconSwitch</object-name>
        <object-name>CarbHeat</object-name>
        <object-name>CarbHeatMount</object-name>
        <object-name>GenSwitch</object-name>
        <object-name>LandingLightSwitch</object-name>
        <object-name>MasterSwitch</object-name>
        <object-name>Mixture</object-name>
        <object-name>MixtureMount</object-name>
        <object-name>NavLightSwitch</object-name>
        <object-name>PitotHeatSwitch</object-name>
        <object-name>PrimerLeverMount</object-name>
        <object-name>StrobeSwitch</object-name>
        <object-name>TaxiLightSwitch</object-name>
        <object-name>Throttle</object-name>
        <object-name>ThrottleMount</object-name>
        <object-name>mike</object-name>
        <object-name>mike_chord</object-name>
        <object-name>doorhandleint_right</object-name>
        <object-name>doorhandleint_left</object-name>
        <object-name>ParkingBrake</object-name>
        <object-name>PrimerLever</object-name>
        <object-name>windlocket_right</object-name>
        <object-name>windlocket_left</object-name>
        <object-name>windlocketbak_right</object-name>
        <object-name>windlocketbak_left</object-name>
        <object-name>backseat_left</object-name>
        <object-name>carpet</object-name>
        <object-name>pilotseat_left</object-name>
        <object-name>pilotseat_right</object-name>
        <object-name>InstrumentCover</object-name>
        <object-name>panel_1_1.inf</object-name>
        <object-name>panel_1_1_right</object-name>
        <object-name>panel_1_gauges</object-name>
        <object-name>LeftBag</object-name>
        <object-name>bolt.012</object-name>
        <object-name>bolt.013</object-name>
        <object-name>bolt.014</object-name>
        <object-name>bolt.015</object-name>
        <object-name>Panel_0</object-name>
        <object-name>bolts_cabin</object-name>
        <object-name>bolts_panel</object-name>
        <object-name>bolts</object-name>
        <object-name>SeatMounts.0</object-name>
        <object-name>SeatMounts.1</object-name>
        <object-name>SeatMounts.2</object-name>
        <object-name>SeatMounts.3</object-name>
</effect>


See http://wiki.flightgear.org/ALS_technica ... flashlight for the effect definition.
Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
User avatar
wlbragg
 
Posts: 4049
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Debain/nVGT640

Re: Implementing ALS Flashlight  

Postby sanhozay » Fri Dec 02, 2016 3:14 pm

Perfect. Many thanks.
sanhozay
 
Posts: 1207
Joined: Thu Dec 26, 2013 11:57 am
Location: EGNM
Callsign: G-SHOZ
Version: Git
OS: Ubuntu 16.04


Return to Effects and shaders

Who is online

Users browsing this forum: No registered users and 1 guest