Re: [Flightgear-devel] How to drive multiplanes using external d ata

2006-12-13 Thread Stuart Buchanan
--- tangyong wrote:
 My project need to drive multiplanes using external data saved in a
 file.Does I have to study the multiplayer protocol?How to abuse that
 system to introduce additional aircraft into the scene. 

Hi Tangyong,

As with all these things, there is more than one way to do it...

Like everything else in FG, Multiplayer and AI aircraft are all held in
the property tree. In this case, under a /ai node.

One option would be to populate that tree using the generic I/O protocol.
See Docs\README.IO for details. As a first step, I suggest you look at the
property browser when in a multiplayer session and see how the nodes are
put together. Then write a protocol definition file to define the data you
wish to replay. You'd probably have to put then under the AI aircraft
sub-tree rather than multiplay to avoid confusing the MP system, but it
should work.

An alternative is to use the AI sub-system to define the flights you want
the aircraft to take. Have a look at the ai-demo.xml file for details.

Hope this helps.

-Stuart



___ 
Try the all-new Yahoo! Mail. The New Version is radically easier to use – The 
Wall Street Journal 
http://uk.docs.yahoo.com/nowyoucan.html

-
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.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Fw:Filenbsp; I/Onbsp; problem:whynbsp; ca n'tnbsp; replaynbsp; mynbsp; flignbsp; ht nbsp; innbsp; 10hz

2006-12-13 Thread Stuart Buchanan

--- tangyong wrote:
 I want to replay my flight,read the flight path information from a file.
 Fist,I record a flight path at 10 hz,5hz,or 2hz ,just like this:
 --native=file,out,10,flight1.fgfs
 and then I relay my flight,but I got a secction error!
 --native=file,in,10,flight1.fgfs --fdm=external
 but if I set ,just 1hz like this,that's ok!
 --native=file,out,1,flight1.fgfs
 --native=file,in,1,flight1.fgfs --fdm=external
 why,is it because fgfs can't read the file at more than 1hz,it's too
 fast?
 otherwise,if I set like this:
 --garmin=file,out,1000,flight1.fgfs
 then I replay it,use
 --garmin=file,in,1000,flight1.fgfs   --fdm=external
 it' ok,but the image is dithering.why? Is it because  I should set the
 hz=a very large number

I don't know why it is failing, but you might have better luck replaying
your flight using the replay text protocol. Details here:

http://www.flightgear.org/Docs/getstart/node3.html#SECTION0335

-Stuart


Send instant messages to your online friends http://uk.messenger.yahoo.com 

-
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.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Engineering data panel

2006-12-13 Thread Curtis Olson

On 12/12/06, Pigeon [EMAIL PROTECTED] wrote:


The blip at the end shows a sky rendering bug with the latest OSG.
:-)

Looks similar to what I've posted earlier:


http://www.mail-archive.com/flightgear-devel%40lists.sourceforge.net/msg06962.html


http://www.mail-archive.com/flightgear-devel%40lists.sourceforge.net/msg07123.html

Would that be on NVIDIA with driver 9629 as well?




I'm certain this is a state management bug where the gui/menu leaves
something turned on that messes up the sky rendering.  If you turn off the
menus, this rendering bug goes away.

Regards,

Curt.
--
Curtis Olson - University of Minnesota - FlightGear Project
http://baron.flightgear.org/~curt/  http://www.humanfirst.umn.edu/
http://www.flightgear.org
Unique text: 2f585eeea02e2c79d7b1d8c4963bae2d
-
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.phpp=sourceforgeCID=DEVDEV___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Fw:Filenbsp; I/Onbsp; problem:whynbsp; ca n'tnbsp; replaynbsp; mynbsp; flignbsp; ht nbsp; innbsp; 10hz

2006-12-13 Thread Curtis Olson

On 12/12/06, tangyong [EMAIL PROTECTED] wrote:


I want to replay my flight,read the flight path information from a file.
Fist,I record a flight path at 10 hz,5hz,or 2hz ,just like this:
--native=file,out,10,flight1.fgfs
and then I relay my flight,but I got a secction error!
--native=file,in,10,flight1.fgfs --fdm=external
but if I set ,just 1hz like this,that's ok!
--native=file,out,1,flight1.fgfs
--native=file,in,1,flight1.fgfs --fdm=external
why,is it because fgfs can't read the file at more than 1hz,it's too fast?
otherwise,if I set like this:
--garmin=file,out,1000,flight1.fgfs
then I replay it,use
--garmin=file,in,1000,flight1.fgfs   --fdm=external
it' ok,but the image is dithering.why? Is it because  I should set the
hz=a very large number




I don't see how a faster hertz  would cause a problem.  Can you double check
the reported error message?  I can't find that string (or anything similar)
in our code.

Curt.
--
Curtis Olson - University of Minnesota - FlightGear Project
http://baron.flightgear.org/~curt/  http://www.humanfirst.umn.edu/
http://www.flightgear.org
Unique text: 2f585eeea02e2c79d7b1d8c4963bae2d
-
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.phpp=sourceforgeCID=DEVDEV___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] nasal problem

2006-12-13 Thread Josh Babcock
When I include this nasal file in my ch53e-set.xml file I get an
infinite loop. I don't know why, is there a listener attached to
controls/lighting/panel-norm somewhere? Am I missing something?
Commenting out the setlistener makes the problem go away, and I can call
the function from a settimer call with no problem.

Josh

Here's the code:
http://jrbabcock.home.comcast.net/flightgear/interior-lights.nas

-
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.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] nasal problem

2006-12-13 Thread Melchior FRANZ
* Josh Babcock -- Wednesday 13 December 2006 17:51:
 When I include this nasal file in my ch53e-set.xml file I get an
 infinite loop. I don't know why, is there a listener attached to
 controls/lighting/panel-norm somewhere?

Nasal listeners are designed to refuse recursion. It's more likely
that the called function does something silly.

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.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] nasal problem

2006-12-13 Thread Josh Babcock
Melchior FRANZ wrote:
 * Josh Babcock -- Wednesday 13 December 2006 17:51:
 When I include this nasal file in my ch53e-set.xml file I get an
 infinite loop. I don't know why, is there a listener attached to
 controls/lighting/panel-norm somewhere?
 
 Nasal listeners are designed to refuse recursion. It's more likely
 that the called function does something silly.


Well, I fixed it by putting the init function at the end of the file,
and calling the setlistener from within init(). No change to the called
function. No idea why this works, but it does. I'm sure someone will
explain it to me :)

Josh

-
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.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] Cows

2006-12-13 Thread Vivian Meazza
Hi, 

There have been several complaints about our fauna, namely headless cows,
over on the IRC channel. I've done one with a head:

 ftp://ftp.abbeytheatre.dyndns.org/fgfs/Screen-shots/lowish-poly-cow.jpg

it's 180 vertices, so heads ain't free. If no one objects, I intend to
replace the headless version in cvs-head in a couple of days for a trial. It
will, of course be possible to revert if it causes too much of a hit on
frame rate.

Vivian


-
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.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] sending external fdm data in the form of

2006-12-13 Thread Martin Spott
Curtis Olson wrote:

 Endianess is definitely handled.  And even for 32 vs. 64 bit systems, they
 all still use a similar convention where integers and floats are 4 bytes and
 doubles are 8 bytes.  As long as we confine ourselves to ints, floats, and
 doubles (and use an int for boolean values, etc.) then we should have an
 extremely high probability of getting any two machines to talk to each other
 successfully.

We should probably write the current state down, define it as The
NetFDM Protocol and shoot everybody who breaks it   Yet another
task on the TODO 

Thanks, Curt, for taking the time to make things clear,

Martin.
-- 
 Unix _IS_ user friendly - it's just selective about who its friends are !
--

-
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.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Cows

2006-12-13 Thread Martin Spott
Vivian Meazza wrote:

 There have been several complaints about our fauna, namely headless cows,
 over on the IRC channel. I've done one with a head:
 
  ftp://ftp.abbeytheatre.dyndns.org/fgfs/Screen-shots/lowish-poly-cow.jpg

Although I can't comment on the performance impact, I'm definitely pro
the new cow,

Martin
-- 
 Unix _IS_ user friendly - it's just selective about who its friends are !
--

-
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.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Cows

2006-12-13 Thread Roberto Inzerillo
Vivian Meazza ha scritto:
 Hi, 
 
 There have been several complaints about our fauna, namely headless cows,
 over on the IRC channel. I've done one with a head:

 it's 180 vertices, so heads ain't free. If no one objects, I intend to
 replace the headless version in cvs-head in a couple of days for a trial.

Yes please, complete that with a low res version (maybe the same old 
headless one) for LOD and publish the new cow.

Framerate will drop down when flying very near to the cow only (thanks 
to LOD animation) and that happens not very often.

Roberto

-
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.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] How to begin program with the Flight Gear

2006-12-13 Thread tangyong

I am a green hand in Flight Gear,and it's my fist time to touch it.I'v read 
the readme.introduction,I find that the core of FlightGear is the property tree 
system.But the introduction is too simple,and I don't know how the Flight Gear 
work with the property tree.Could you grive me some suggestion about how to 
begin program with the Flight Gear.What's my first step?Or could you give me 
some documents about the property tree.Is there some programer guide about how 
to begin with it.Thank you.
 
Best regard,
Tom
 
 
 -
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.phpp=sourceforgeCID=DEVDEV___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Cows

2006-12-13 Thread Ron Jensen
On Wed, 2006-12-13 at 20:14 +, Vivian Meazza wrote:
 Hi, 
 
 There have been several complaints about our fauna, namely headless cows,
 over on the IRC channel. I've done one with a head:
 
  ftp://ftp.abbeytheatre.dyndns.org/fgfs/Screen-shots/lowish-poly-cow.jpg
 
 it's 180 vertices, so heads ain't free. If no one objects, I intend to
 replace the headless version in cvs-head in a couple of days for a trial. It
 will, of course be possible to revert if it causes too much of a hit on
 frame rate.
 
 Vivian

But won't we lose our Gateway computer advertising money if we pull
their boxes out of the scenery? :)

http://www.jimthatcher.com/images/Figure2.1.gif

Ron



-
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.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel