[Flightgear-devel] some problems with nasal and modding

2007-01-29 Thread timo van Overbrüggen
Hi,
is there somebody who can tell me, if there is a timer-function which I can use 
for starting my listener in nasal? I created a script which shows the forces 
and moments on an ASK21 as arrows. I know, there is a "listener-command" but it 
do not work with properties in ".../jsbim/aero/.." so I can not link the 
listener-command to the aerodynamical forces.
 
My second problem is, that I only want to show the force-or the momentarrows. 
Is there somebody who can explain me how to do that?
 
Timo
-- 
"Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
Jetzt GMX ProMail testen: http://www.gmx.net/de/go/promail

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] some problems with nasal and modding

2007-01-29 Thread Melchior FRANZ
* timo van Overbrüggen -- Monday 29 January 2007:
> I know, there is a "listener-command" but it do not work with
> properties in ".../jsbim/aero/.." so I can not link the
> listener-command to the aerodynamical forces.

listeners are triggered whenever something writes to the listened-to
property by means of SGPropertyNode methods (foo->setBoolValue() etc.)
But some properties are for performance reasons "tied". That is, the
tying C++ code can write to and read from the property value directly,
without using those methods. In that case listeners aren't triggered.

This is the case with jsbsim/aero/*. It wouldn't make much sense to
listen to those, anyway, as they probably change several times per
frame. I suggest to use a simple loop for your purpose, which should
in this case even be faster.



> My second problem is, that I only want to show the force-or the
> momentarrows. Is there somebody who can explain me how to do that? 

I had once planned to do that myself. Just make an extra 3D model
with the arrows and load that to your aircraft model in your main
*.xml animation file. You can add a  to turn the whole
submodel on and off.

  
  moment_arrows.xml
  
  /path/to/switch
  
  

In the moment_arrows.xml file you define animations to rotate the
arrows. Their length can be controlled with scale animations along
one axis. I almost want to write the code myself now ...  :-)

m.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel