Board index FlightGear Development Aircraft

dhc2 landing lights

Questions and discussion about creating aircraft. Flight dynamics, 3d models, cockpits, systems, animation, textures.

dhc2 landing lights

Postby dilbert » Wed May 20, 2020 12:01 pm

Image

The landing light in use on the dhc2 is a flash type, and primarily decoration.

There are light.xml and light.ac files and a path statement in dhc2wheels, which I failed in getting to work.

So, I added a "landing-lights" directory to Models; and copied and pasted the light-cone.xml and light-cone.ac files from the 737-200 to
Models/landing-lights (since I knew they worked).

For animating and toggling light-cone.xml, added animation and condition provisions to it, as shown in revised file below:
Code: Select all
<PropertyList>

  <path>light-cone.ac</path>
  <nopreview/>

  <effect>
    <inherits-from>Effects/light-cone</inherits-from>
    <object-name>Cone</object-name>
  </effect>
  <animation>
    <type>select</type>
       <condition>
      <property>controls/lighting/landing-lights</property>
       </condition>
  </animation>
 
 </PropertyList>


Then deleted the existing model from Models/ dhc2wheels, beginning line 42, which is shown below:
Code: Select all
    <model>
        <condition>
            <property>/sim/rendering/rembrandt/enabled</property>
        </condition>
        <name>light</name>
        <path>Aircraft/dhc2/Models/light.xml</path>
        <offsets>
            <x-m>-0.758</x-m>
            <y-m>-3.688</y-m>
            <z-m>1.092</z-m>
            <pitch-deg>-5</pitch-deg>
        </offsets>
    </model>


And replaced it with the following:
Code: Select all
    <model>   
        </condition>
        <name>light</name>-->
        <path>Aircraft/dhc2/Models/landing-lights/light-cone.xml</path>
        <offsets>
            <x-m>-1.000 </x-m>
            <y-m> 0.700 </y-m>
            <z-m> 1.092 </z-m>
            <pitch-deg>-5</pitch-deg>
         <heading-deg>-11</heading-deg>
        </offsets>
    </model>
   
    <model>
           </condition>
        <name>light</name>
        <path>Aircraft/dhc2/Models/light.xml</path>
        <offsets>
            <x-m>-0.758</x-m>
            <y-m> 3.688</y-m>
            <z-m>1.092</z-m>
            <pitch-deg>-5</pitch-deg>
            <heading-deg>11</heading-deg>
        </offsets>
    </model>


Which addition created two landing lights on the wing, immediately adjacent to the fuselage.

Result is shown above.
Last edited by Johan G on Wed Jul 01, 2020 9:07 am, edited 1 time in total.
Reason: Added [code] tags. The can be added manually or with the [^_ ] button above the text editing box.
dilbert
 
Posts: 566
Joined: Wed Jan 07, 2015 8:36 pm
Location: KBFM, Alabama, USA
Callsign: db1
Version: 2018.3.5
OS: WIN 10, Ubuntu64

Re: dhc2 landing lights

Postby wkitty42 » Wed May 20, 2020 12:36 pm

dilbert, FWIW: you really should wrap your code blocks in code tags to preserve their structure and indention ;)
"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: 6444
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: dhc2 landing lights

Postby msalama » Fri May 22, 2020 6:26 pm

Thanks for this. Alas, there's lots of stuff wrong with at least the version of the bird I've got, such as the slip ball actually working inverted, and that's not all. Where's the most recent repository if you don't mind my asking?
msalama
 
Posts: 37
Joined: Tue Jun 18, 2019 4:44 am

Re: dhc2 landing lights

Postby dilbert » Fri May 22, 2020 7:19 pm

Afraid don't know the latest repository, either. Still using the current FG-addon version.

There may have been maintenance and upgrades since you last used it; so it might be worth giving it another try. However, you will need to keep the tailwheel locked; so as to avoid the recently introduced JSBSim castering problem, that's affected a number of taildraggers. Not a big problem, as long as it stays locked and you taxi with toe brakes. Otherwise, I don't have many complaints with the current FG-addon version.

It's also useful to know that the plane version you get using the FG add-on hangar may be different, dependent on the version of FG you have installed,
Check the revision file for your plane. Currently, mine is revision 20190827. If yours is older, you may want to upgrade to the latest FG version; then re-upload the dhc2 from its add-on hangar.

Best Regards

P.S. The skid ball in 20190827 seems to work correctly.
dilbert
 
Posts: 566
Joined: Wed Jan 07, 2015 8:36 pm
Location: KBFM, Alabama, USA
Callsign: db1
Version: 2018.3.5
OS: WIN 10, Ubuntu64


Return to Aircraft

Who is online

Users browsing this forum: No registered users and 2 guests