Search the archive:
Simviation Main Site
|
Site Search
|
Upload Images
Simviation Forum
›
Design Forums
›
Aircraft & 3D Design
› Landing lights on retractable gear..
(Moderators: Mitch., Fly2e, ozzy72, beaky, Clipper, JBaymore, Bob70, BigTruck)
‹
Previous Topic
|
Next Topic
›
Pages: 1
Landing lights on retractable gear.. (Read 332 times)
Jul 2
nd
, 2006 at 1:08pm
Brett_Henderson
Offline
Colonel
EVERY OUTER MARKER SHOULD
BE AN NDB
Gender:
Posts: 3593
I'm working on a model that has the landing/taxi lights mounted on the retractable nose-gear..
Problem is.. when you use lights assigned in the aircraft.cfg file, they're "fixed".. As in.. if you retract the gear but leave the lights on.. they kinda hover out there as a "lights" all by themselves, under the nose
until you turn them off.
I'm at a loss ???
Back to top
IP Logged
Reply #1 -
Jul 2
nd
, 2006 at 3:20pm
Milton
Offline
Colonel
Props forever!
Gender:
Posts: 301
Just curious here:
Are you sure the landing lights are on the gear, or are they taxi lights?
There used to be a tag to only activate the lights after 45 degree deployment, and went off as they retracted. Not sure if that was FSDS only or gmax as well. I saw that around during FS2002 development.
Otherwise, an gauge or xml code would be required to control them.
Milton&&Dash 7, Aero Commanders, Howard 500, D18S, Spartan, XP47J, Beechcraft A28 (Grizzly)
Back to top
IP Logged
Reply #2 -
Jul 2
nd
, 2006 at 6:41pm
Felix/FFDS
Offline
Admin
FINALLY an official Granddad!
Orlando, FL
Gender:
Posts: 1000000627
Wouldn't this be the case of creating the light, linked to the appropriate lg strut with a material "light_taxi" ?
From the FS2004 SDK:
LIGHT_TAXI A taxi spotlight is drawn, and the diffuse color is the light color.
LIGHT_LAND A landing spotlight is drawn, and the diffuse color is the light color.
Wouldn't this be a case where it is better to model the light than to add it via aircraft.cfg ?
Felix/
FFDS
Back to top
IP Logged
Reply #3 -
Jul 2
nd
, 2006 at 7:04pm
Katahu
Offline
Colonel
Gender:
Posts: 6920
I would suggest using the tutorial titled "landing lights". It's located in the Modeling - Gmax section of this page.
http://freeflightdesign.com/tutorials.html
Please note that this tutorial is based on the older version of gmax.
Back to top
IP Logged
Reply #4 -
Jul 2
nd
, 2006 at 7:43pm
Brett_Henderson
Offline
Colonel
EVERY OUTER MARKER SHOULD
BE AN NDB
Gender:
Posts: 3593
Thanks for the replies.. You're all correct, and I've pondered these solutions. I'll get around to modeling a landing/taxi light "beam" later (if at all (I never did like them)).. The light that you can model is WAY too dim in daylight. I was really fond of the bright landing and taxi lights (individually activateable) I put on that 210 and am going for the same effect here. They're mounted on the nose-gear strut and as we know.. aircraft.cfg lights are "fixed" in space... You can't "child" them to go up with the gear.
I'm trying something along the lines of your suggestion, Milton. I've already written an XML gear knob that will toggle the lights when the gear knob is used.. BUT.. only if you use it from the panel (mouse click). It's useless when you raise your gear with the CH yoke.
I think I need to write a gauge that will check for the contition "GEAR_UP" to toggle the lights.. regardless of how the gear are raised (panel or yoke). Now I've just gotta master the IF syntax.. I'll come back with more info..
Thanks again.. all of you..
Back to top
IP Logged
Reply #5 -
Jul 2
nd
, 2006 at 10:08pm
Brett_Henderson
Offline
Colonel
EVERY OUTER MARKER SHOULD
BE AN NDB
Gender:
Posts: 3593
More info..
I think I'm on the right track.. A simple XML gauge to check the state of the landing gear and then "execute" the variable "LANDING_LIGHTS_OFF"..
I'm just having trouble with the syntax.
(>K:LANDING_LIGHTS_OFF) to occur when an "A:" value returns "saying" , "The gear are now up"..
Any XML guys out there to steer me in the right direction ? I'm really getting a head-ache
Back to top
IP Logged
Reply #6 -
Jul 3
rd
, 2006 at 1:40am
Travis
Offline
Colonel
Cannot find REALITY.SYS.
Universe halted.
Dripping Springs, TX
Gender:
Posts: 4515
In this case, you want to do what Felix suggested. Model the lights directly into the model itself.
I didn't even know it was possible to add stuff like that using the aircraft.cfg, otherwise I would have been doing it for years!
BTW, there's a great tutorial on this over at FFDS.
Back to top
IP Logged
Reply #7 -
Jul 3
rd
, 2006 at 5:12am
AuMaV
Offline
Colonel
Old Git
The Great Southern Land
Gender:
Posts: 293
Hi
Maybe this will do what you want?
<Gauge Name="Halolooya">
<Comment>
</Comment>
<Update Frequency="7"/>
<Element>
<Select>
<Value>(A:GEAR CENTER POSITION,PERCENT) 10 <
if{ (A:LIGHT LANDING,number) 1 < if{ (>K:LANDING_LIGHTS_TOGGLE) } }
els{ (A:LIGHT LANDING,number) 0 > if{ (>K:LANDING_LIGHTS_TOGGLE) } }
</Value>
</Select>
</Element>
</Gauge>
Back to top
IP Logged
Reply #8 -
Jul 3
rd
, 2006 at 6:55am
Brett_Henderson
Offline
Colonel
EVERY OUTER MARKER SHOULD
BE AN NDB
Gender:
Posts: 3593
Quote:
In this case, you want to do what Felix suggested. Model the lights directly into the model itself.
I didn't even know it was possible to add stuff like that using the aircraft.cfg, otherwise I would have been doing it for years!
BTW, there's a great tutorial on this over at FFDS.
The lights that are modeled are way too dim in daylight. And if you model the "beam", the effect doesn't really illumintate anything; in fact, it really obscures things like taxiway lights and runway lights. I'm not a big fan of that.
Here's the lights paragraph from a C172:
[LIGHTS]
//Types: 1=beacon, 2=strobe, 3=navigation, 4=cockpit
light.0 = 3, -2.88, -18.11, 2.90, fx_navred
light.1 = 3, -2.88, 18.11, 2.90, fx_navgre
light.2 = 2, -3.15, -18.31, 2.90, fx_strobe
light.3 = 2, -3.15, 18.31, 2.90, fx_strobe
light.4 = 1, -20.60, 0.00, 6.18, fx_beacon
light.5 = 4, -2.27, 0.00, 1.40, fx_vclight
AuMaV, that code looks just about right. I think it will get around a problem I was thinking about (lights getting turned ON when the gear are raised, if they were already OFF.. lol
.. Thank You !
*off to test it*
Back to top
IP Logged
Reply #9 -
Jul 3
rd
, 2006 at 2:02pm
Brett_Henderson
Offline
Colonel
EVERY OUTER MARKER SHOULD
BE AN NDB
Gender:
Posts: 3593
Ok.. after simplifying that code (and simplifying the problem).. It's all fixed.. THANKS..
I moved the landing lights out where they should be (on the front of the tip-tanks) and wrote a little XML gauge that toggles the gear-mounted taxi-lights IF the gear are raised AND they're on to begin with. So far, so good..
A little more testing and I'll have a PA42-720 ready for release.
Back to top
IP Logged
Pages: 1
‹
Previous Topic
|
Next Topic
›
« Home
‹ Board
Top of this page
Forum Jump »
Home
» 10 most recent Posts
» 10 most recent Topics
Current Flight Simulator Series
- Flight Simulator X
- FS 2004 - A Century of Flight
- Adding Aircraft Traffic (AI) & Gates
- Flight School
- Flightgear
- MS Flight
Graphic Gallery
- Simviation Screenshots Showcase
- Screenshot Contest
- Edited Screenshots
- Photos & Cameras
- Payware Screenshot Showcase
- Studio V Screenshot Workshop
- Video
- The Cage
Design Forums
- Aircraft & 3D Design ««
- Scenery & Panel Design
- Aircraft Repainting
- Designer Feedback
General
- General Discussion
- Humour
- Music, Arts & Entertainment
- Sport
Computer Hardware & Software Forum
- Hardware
- Tweaking & Overclocking
- Computer Games & Software
- HomeBuild Cockpits
Addons Most Wanted
- Aircraft Wanted
- Other Add-ons Wanted
Real World
- Real Aviation
- Specific Aircraft Types
- Autos
- History
On-line Interactive Flying
- Virtual Airlines Events & Messages
- Multiplayer
Simviation Site
- Simviation News & Info
- Suggestions for these forums
- Site Questions & Feedback
- Site Problems & Broken Links
Combat Flight Simulators
- Combat Flight Simulator 3
- Combat Flight Simulator 2
- Combat Flight Simulator
- CFS Development
- IL-2 Sturmovik
Other Websites
- Your Site
- Other Sites
Payware
- Payware
Old Flight Simulator Series
- FS 2002
- FS 2000
- Flight Simulator 98
Simviation Forum
» Powered by
YaBB 2.5 AE
!
YaBB Forum Software
© 2000-2010. All Rights Reserved.