Search the archive:
YaBB - Yet another Bulletin Board
 
   
 
Page Index Toggle Pages: 1
Send Topic Print
XML vortices FX question (Read 297 times)
Apr 21st, 2004 at 12:13am

Moach   Offline
Colonel
Jet-Powered PropellerHead
São Paulo, Brazil

Gender: male
Posts: 991
*****
 
im adding a vortex effect to my 737, so you can see that little smoke trail that comes off the flaps when they're down

i've modified an XML gauge from project airbus so i can have it in my plane... it works but there's a catch:

this xml gauge has a max and min speed limit to activate the effect but it doesn't detect if the flaps are up or down

i want the effect to activate only when the flaps are in their 2nd most extented position or lower (the 737 has 8 flap positions, plus fully retracted)

how would i write this condition into the xml file?

this is the code as it is:

- <Gauge Name="WingTipVortices" Version="1.0">
- <Element>
- <Select>
  <Value>(A:AIRSPEED INDICATED,knot) 120 > (A:AIRSPEED INDICATED,knot) 160 < && if{ (>K:SMOKE_ON) } els{ (>K:SMOKE_OFF) }</Value>
  </Select>
  </Element>
  </Gauge>
 

Come, one and all aboard!  -  The Russian Roullete in the sky!
One in each Six of my personalities knows not at all how to fly!
IP Logged
 
Reply #1 - Apr 21st, 2004 at 12:17pm

garymbuska   Offline
Colonel
I would rather be flying
Jacksonville, Florida

Gender: male
Posts: 2850
*****
 
If you do a search for XML gauges you can find some info on this langauge.
I am not an XML gauge expert by no means but the line you need to alter is the one that deals with air speed it is looking at a air speed less than 160 and greater than 120 knotts you could chane these two numbers to represent the air speed you would be at when the flaps are set to that position or you might be able to use
<value>(A:Flap Position,%)10 >(A:Flap Position,%)50 < &&if{(.%:SMOKE_ON)}else{ (>%:SMOKE_OFF)}</Value>
This might not work I am not sure about the tags I am using
This is basically looking at the percent of flap set more than 10% but less than 50%
 
IP Logged
 
Reply #2 - Apr 21st, 2004 at 10:57pm

Moach   Offline
Colonel
Jet-Powered PropellerHead
São Paulo, Brazil

Gender: male
Posts: 991
*****
 
i realised that, but i couldn't do anything because i don't know the right tag and i don't know how the sintax works, so i can't add a new condition to the whole thing

i want it to check both the airspeed and the flaps to activate.

Thanx for the help  Smiley

Moach
 

Come, one and all aboard!  -  The Russian Roullete in the sky!
One in each Six of my personalities knows not at all how to fly!
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print