Re: [Flightgear-devel] Flightgear visualization as streaming video
Thanks! That sounds like it could solve my problem. However, I couldn't get it to work -- FlightGear reports: Unknown option '--jpg_httpd=5502' My command line, as generated by the wizard, was: C:\Program Files\FlightGear\bin\win32fgfs.exe --fg-root=C:\Program Files\Fligh tGear\data --fg-scenery=C:\Program Files\FlightGear\data\Scenery;C:\Program Files\FlightGear\scenery --airport-id=02Q --aircraft=f16 --control=joystick --d isable-random-objects --disable-ai-models --jpg_httpd=5502 I tried with --jpg-httpd=5502, and I get the same error: Unknown option '--jpg-httpd=5502' I'm running v0.9.10, could that be the problem? Antonio -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ron Jensen Sent: quarta-feira, 23 de Maio de 2007 3:30 To: FlightGear developers discussions Subject: Re: [Flightgear-devel] Flightgear visualization as streaming video On Tue, 2007-05-22 at 18:13 +0100, Antonio Almeida wrote: Hi, I would like to use FlightGear to generate the scene observed by a UAV's onboard camera. Basically, this would translate to feeding FlightGear the FDM data and visualizing the image generated by FlightGear in another computer, across a network, using for example streaming video. I suppose this is a bit of a far-fetched idea, but is there any sort of support for this (or something similar) already implemented? If not, do you have any suggestions on how to achieve it, using external tools and/or contributing to FlightGear? At the moment I'm just brainstorming! Thanks, António Almeida Have you looked at the --jpg-httpd option yet? From fgfs --help --verbose: --jpg-httpd=portEnable screen shot http server on the specified port This works to send jpeg images over the net that can be refreshed fairly rapidly... Not exactly streaming video, but close. I'm not sure if/how you could scale it down short of scaling the window on the server machine. Ron - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Flightgear visualization as streaming video
Yes, the v0.9.10 there a problem with FlightGear Wizard on Windows, but I've done a fix, please check latest CVS version. About video streaming, jpg-httpd is working fine and very fast. I've done a ground station using Borland C++ Builder for a client that is using Flightgear and this implementation seems to be like your project. The jpg-httpd option works with impressive performance. Leidson Campos PlanetaMessenger.org Java Universal Messenger On 5/23/07, Antonio Almeida [EMAIL PROTECTED] wrote: Thanks! That sounds like it could solve my problem. However, I couldn't get it to work -- FlightGear reports: Unknown option '--jpg_httpd=5502' My command line, as generated by the wizard, was: C:\Program Files\FlightGear\bin\win32fgfs.exe --fg-root=C:\Program Files\Fligh tGear\data --fg-scenery=C:\Program Files\FlightGear\data\Scenery;C:\Program Files\FlightGear\scenery --airport-id=02Q --aircraft=f16 --control=joystick --d isable-random-objects --disable-ai-models --jpg_httpd=5502 I tried with --jpg-httpd=5502, and I get the same error: Unknown option '--jpg-httpd=5502' I'm running v0.9.10, could that be the problem? Antonio -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ron Jensen Sent: quarta-feira, 23 de Maio de 2007 3:30 To: FlightGear developers discussions Subject: Re: [Flightgear-devel] Flightgear visualization as streaming video On Tue, 2007-05-22 at 18:13 +0100, Antonio Almeida wrote: Hi, I would like to use FlightGear to generate the scene observed by a UAV's onboard camera. Basically, this would translate to feeding FlightGear the FDM data and visualizing the image generated by FlightGear in another computer, across a network, using for example streaming video. I suppose this is a bit of a far-fetched idea, but is there any sort of support for this (or something similar) already implemented? If not, do you have any suggestions on how to achieve it, using external tools and/or contributing to FlightGear? At the moment I'm just brainstorming! Thanks, António Almeida Have you looked at the --jpg-httpd option yet? From fgfs --help --verbose: --jpg-httpd=portEnable screen shot http server on the specified port This works to send jpeg images over the net that can be refreshed fairly rapidly... Not exactly streaming video, but close. I'm not sure if/how you could scale it down short of scaling the window on the server machine. Ron - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Flightgear visualization as streaming video
Thanks, I'll check out the latest CVS version as soon as I get around to implementing. Your experience is very similar to what I was looking for! If it is as fast as you mention then it will surely be enough to simulate a streaming video, from the viewer's perspective. I believe jpg-httpd will be enough for my purposes, however a standard streaming video would still be nicer. If FlightGear is able to generate those jpgs, then it may be possible to encode them to a video in real-time, using third party tools, and stream it. Perhaps I could contribute with such a feature (not in the near future, I'm afraid). Antonio _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Leidson Campos A. Ferreira Sent: quarta-feira, 23 de Maio de 2007 14:51 To: FlightGear developers discussions Subject: Re: [Flightgear-devel] Flightgear visualization as streaming video Yes, the v0.9.10 there a problem with FlightGear Wizard on Windows, but I've done a fix, please check latest CVS version. About video streaming, jpg-httpd is working fine and very fast. I've done a ground station using Borland C++ Builder for a client that is using Flightgear and this implementation seems to be like your project. The jpg-httpd option works with impressive performance. Leidson Campos PlanetaMessenger.org Java Universal Messenger On 5/23/07, Antonio Almeida [EMAIL PROTECTED] wrote: Thanks! That sounds like it could solve my problem. However, I couldn't get it to work -- FlightGear reports: Unknown option '--jpg_httpd=5502' My command line, as generated by the wizard, was: C:\Program Files\FlightGear\bin\win32fgfs.exe --fg-root=C:\Program Files\Fligh tGear\data --fg-scenery=C:\Program Files\FlightGear\data\Scenery;C:\Program Files\FlightGear\scenery --airport-id=02Q --aircraft=f16 --control=joystick --d isable-random-objects --disable-ai-models --jpg_httpd=5502 I tried with --jpg-httpd=5502, and I get the same error: Unknown option '--jpg-httpd=5502' I'm running v0.9.10, could that be the problem? Antonio -Original Message- From: [EMAIL PROTECTED] [mailto: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Ron Jensen Sent: quarta-feira, 23 de Maio de 2007 3:30 To: FlightGear developers discussions Subject: Re: [Flightgear-devel] Flightgear visualization as streaming video On Tue, 2007-05-22 at 18:13 +0100, Antonio Almeida wrote: Hi, I would like to use FlightGear to generate the scene observed by a UAV's onboard camera. Basically, this would translate to feeding FlightGear the FDM data and visualizing the image generated by FlightGear in another computer, across a network, using for example streaming video. I suppose this is a bit of a far-fetched idea, but is there any sort of support for this (or something similar) already implemented? If not, do you have any suggestions on how to achieve it, using external tools and/or contributing to FlightGear? At the moment I'm just brainstorming! Thanks, António Almeida Have you looked at the --jpg-httpd option yet? From fgfs --help --verbose: --jpg-httpd=portEnable screen shot http server on the specified port This works to send jpeg images over the net that can be refreshed fairly rapidly... Not exactly streaming video, but close. I'm not sure if/how you could scale it down short of scaling the window on the server machine. Ron - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net mailto:Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] patch for osgViewer and statistics
Hi Nick, I was a bit confused with this - I couldn't work out what 'the configuration' screen was, nor meant. But I sussed out CMAKE now, so for anybody else with problems. Once you have a fresh checkout, in the trunk directory (top layer of code) to build the CMAKE files, issue: cmake -i . Thank you for the hint, this cmake -i configuration process works very nice for me but does not improve the framerates. Oh my. After building OSG with 'Release' and then building FG with -O3, I have never, ever had better frame rates, even with PLIB. Thanks ! Nick But where do you apply this -O3 parameter? Configure or Make when compiling the FlightGear sources? Thank you very much in advance for your help. Regards Georg EDDW - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] patch for osgViewer and statistics
On 5/23/07, Georg Vollnhals [EMAIL PROTECTED] wrote: Once you have a fresh checkout, in the trunk directory (top layer of code) to build the CMAKE files, issue: cmake -i . Thank you for the hint, this cmake -i configuration process works very nice for me but does not improve the framerates. I just learning about this now myself, but as I understand it, one of the questions you are asked with cmake -i . is the build type. Enter Release (other options are things like debug, release w/ debug info, etc.) If you answer yes to advanced options, you will be presented with many more questions. One of those advanced questions relates to verbose make. If you change that to TRUE (defaults to FALSE) then you can see the actual compiler command line when make is run. That is one way you can verify that the -O3 option is indeed being invoked. 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 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] patch for osgViewer and statistics
Hi George, On Wednesday 23 May 2007 19:05:43 Georg Vollnhals wrote: cmake -i . Thank you for the hint, this cmake -i configuration process works very nice for me but does not improve the framerates. Oh my. After building OSG with 'Release' and then building FG with -O3, I have never, ever had better frame rates, even with PLIB. Thanks ! Nick But where do you apply this -O3 parameter? Configure or Make when compiling the FlightGear sources? Thank you very much in advance for your help. If you read the questions when using 'cmake -i .' one of them is what type of build to do: ...Debug | Release ... etc. Default is NONE. So you set that to 'Release'. Then later there is a question about what CXX flags the compiler should use when making a 'Release' build. Default is already '-O3 -DNDEBUG'.I just changed this to '-O3 -march-tbird-athlon' to suit my machine. That's it! Nick - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] patch for osgViewer and statistics
Hi Georg, On Wednesday 23 May 2007 19:05:43 Georg Vollnhals wrote: But where do you apply this -O3 parameter? Configure or Make when compiling the FlightGear sources? Thank you very much in advance for your help. Regards Georg EDDW Sorry, I read this too quick. You can build SG/FG with optimisations like this: ./configure CXXFLAGS=-O3 ... If you wish to include further flags, they need to enclosed in double quotes: ./configure CXXFLAGS=-march=athlon-tbird -O3 This is my full FG configure option: ./configure CXXFLAGS=-march=athlon-tbird -O3 --prefix=/usr --enable-sdl Nick - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Flightgear visualization as streaming video
Antonio Almeida wrote: Thanks, I'll check out the latest CVS version as soon as I get around to implementing. Your experience is very similar to what I was looking for! If it is as fast as you mention then it will surely be enough to simulate a streaming video, from the viewer's perspective. I believe jpg-httpd will be enough for my purposes, however a standard streaming video would still be nicer. If FlightGear is able to generate those jpgs, then it may be possible to encode them to a video in real-time, using third party tools, and stream it. Perhaps I could contribute with such a feature (not in the near future, I'm afraid). FFMPEG may be useful in converting and streaming the jpegs. Jon - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] patch for osgViewer and statistics
Nick Warne schrieb: Sorry, I read this too quick. You can build SG/FG with optimisations like this: ./configure CXXFLAGS=-O3 ... If you wish to include further flags, they need to enclosed in double quotes: ./configure CXXFLAGS=-march=athlon-tbird -O3 This is my full FG configure option: ./configure CXXFLAGS=-march=athlon-tbird -O3 --prefix=/usr --enable-sdl Nick Thank you Curtis and thank you Nick for your help. I already did the cmake -i process as described but learned now about the FG ./ configure options. So off I go to make a new FG build, hopefully improving the framerate. Georg :-) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Flightgear visualization as streaming video
Are all of these streaming programs just linux or also windows? On Wed, 23 May 2007 11:38 am, Jon Stockill wrote: Antonio Almeida wrote: Thanks, I'll check out the latest CVS version as soon as I get around to implementing. Your experience is very similar to what I was looking for! If it is as fast as you mention then it will surely be enough to simulate a streaming video, from the viewer's perspective. I believe jpg-httpd will be enough for my purposes, however a standard streaming video would still be nicer. If FlightGear is able to generate those jpgs, then it may be possible to encode them to a video in real-time, using third party tools, and stream it. Perhaps I could contribute with such a feature (not in the near future, I'm afraid). FFMPEG may be useful in converting and streaming the jpegs. Jon - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel www.GlobalBoiling.com for daily images about hurricanes, globalwarming and the melting poles. www.ElectricQuakes.com daily solar and earthquake images. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Flightgear visualization as streaming video
FFMepg is a complete solution for MPEG encoding/decoding and works for both, Linux, Windows and maybe other posix systems like OpenBSD, FreeBSD and other BSD like. I've done some works with ffmpeg for another client and works fine. Leidson PlanetaMessenger.org - Java Universal Messenger On 5/23/07, GWMobile [EMAIL PROTECTED] wrote: Are all of these streaming programs just linux or also windows? On Wed, 23 May 2007 11:38 am, Jon Stockill wrote: Antonio Almeida wrote: Thanks, I'll check out the latest CVS version as soon as I get around to implementing. Your experience is very similar to what I was looking for! If it is as fast as you mention then it will surely be enough to simulate a streaming video, from the viewer's perspective. I believe jpg-httpd will be enough for my purposes, however a standard streaming video would still be nicer. If FlightGear is able to generate those jpgs, then it may be possible to encode them to a video in real-time, using third party tools, and stream it. Perhaps I could contribute with such a feature (not in the near future, I'm afraid). FFMPEG may be useful in converting and streaming the jpegs. Jon - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel www.GlobalBoiling.com for daily images about hurricanes, globalwarming and the melting poles. www.ElectricQuakes.com daily solar and earthquake images. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] patch for osgViewer and statistics
Nick Warne schrieb: If you read the questions when using 'cmake -i .' one of them is what type of build to do: ...Debug | Release ... etc. Default is NONE. So you set that to 'Release'. Then later there is a question about what CXX flags the compiler should use when making a 'Release' build. Default is already '-O3 -DNDEBUG'.I just changed this to '-O3 -march-tbird-athlon' to suit my machine. That's it! Nick Hi Georg, On Wednesday 23 May 2007 19:05:43 Georg Vollnhals wrote: But where do you apply this -O3 parameter? Configure or Make when compiling the FlightGear sources? Thank you very much in advance for your help. Regards Georg EDDW Sorry, I read this too quick. You can build SG/FG with optimisations like this: ./configure CXXFLAGS=-O3 ... If you wish to include further flags, they need to enclosed in double quotes: ./configure CXXFLAGS=-march=athlon-tbird -O3 This is my full FG configure option: ./configure CXXFLAGS=-march=athlon-tbird -O3 --prefix=/usr --enable-sdl Nick Hi Nick, just as a feedback to you and all lurkers - this works for me, too :-) Now I am getting the same hight framerates with OSG-CVS as I got in the past before the low-framerate-problem. Thank you once again, Georg - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] patch for OSG black dots without killing framerate
See attached patch. Removes black dots by accounting for radius of nodes when calculating visible nodes for traversal without removing the optimization. Confirmed fix with a few people on IRC. Can someone with CVS commit privileges add this to the OSG branch (obviously). Jonathan Wagner? Scenery.diff Index: tileentry.cxx === RCS file: /var/cvs/FlightGear-0.9/source/src/Scenery/tileentry.cxx,v retrieving revision 1.57 diff -u -p -r1.57 tileentry.cxx --- tileentry.cxx 8 May 2007 06:12:27 - 1.57 +++ tileentry.cxx 24 May 2007 02:49:35 - @@ -74,9 +74,9 @@ public: SGUpdateVisitor* updateVisitor = static_castSGUpdateVisitor*(nv); osg::Vec3 center = node-getBound().center(); -double dist2 = distSqr(updateVisitor-getGlobalEyePos(), - SGVec3d(center[0], center[1], center[2])); -if (updateVisitor-getSqrVisibility() dist2) +double distance = dist(updateVisitor-getGlobalEyePos(), + SGVec3d(center[0], center[1], center[2])) - node-getBound().radius(); +if (updateVisitor-getVisibility() distance) return; traverse(node, nv); Scenery.diff.bz2 Description: Binary data - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] An-2 v0.2 ready!
В сообщении от 18 Май 2007 00:19 Martin Spott написал(a): Or even better, follow in the footsteps of the Lightning and A-10 and make use of the superb improved tutorial system ;-) I thought about that one, too, but I guess it's quite a huge task to add such an animated tutorial I write tutorial like A-10. If my description of procedures not correct, please, set right my English... and there is small fdm patch for tune gear appearance. So, tires has pumped:) -- Wbr, Yurik an2_tutorial.tar.gz Description: application/tgz - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] FG/plib uselessly hides exceptions in fgInitFDM()
Hans Ulrich Niedermann wrote: recently one of my aircraft had invalid XML, and the parser duly threw an exception. Unfortunately, fgInitFDM() considered it appropriate to report the error as , | FlightGear aborting ` and actually aborting FlightGear instead of at least printing something potentially helpful like , | Error reading default aircraft: not well-formed | at /path/to/data/Aircraft/AN-225/AN-225-set.xml, | line 11, column 1 ` Indeed, such error reporting would be terribly nice, last but not least at malformed/missing aircraft Model files, Martin. -- Unix _IS_ user friendly - it's just selective about who its friends are ! -- - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] electrical system patch
Hi Harald, Harald JOHNSEN wrote: This lines only initialize the internal values of the electrical system. The properties are set in the propagate function : // publish values to specified properties for ( i = 0; i node-get_num_props(); ++i ) { fgSetFloat( node-get_prop(i).c_str(), node-get_volts() ); } But this is only done if : // if this node has found a stronger power source, update the // value and propagate to all children if ( volts node-get_volts() ) { node-set_volts( volts ); So with the power switches off we have volts == 0 and we never enter the if statement and the properies stay with their old content. I still don't understand why it should be required to initialize these values to -0.01 instead of 0.0. If power switches are off, then 0.0 is the correct value by definition (TM). If some conditional statement doesn't handle this, then probably the conditional should be work differently instead initializing some valued with, well, 'irritating' values. Certainly, one year later someone writes a different routine and expects the voltage to be 0.0 if the switches are off and would be terribly annoyed if he had to deal with this workaround. Cheers, Martin. -- Unix _IS_ user friendly - it's just selective about who its friends are ! -- - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel