FlightGear Headless: Difference between revisions

m
Line 29: Line 29:
{{cquote|I'm working on a prototype of this - with no X11 / VLC required at all. It will load scenery tiles (for ground-intersections) but no views or rendering. But don't be in a rush for something to appear in Git, it's just an experiment.<ref>{{cite web |url=https://code.google.com/p/flightgear-bugs/issues/detail?id=882 |title=Issues 882 (Improved CI / regression testing support by providing options to disable interactive features (sound/window))|author=James Turner |date=Sep 26, 2012}}</ref>|James Turner}}
{{cquote|I'm working on a prototype of this - with no X11 / VLC required at all. It will load scenery tiles (for ground-intersections) but no views or rendering. But don't be in a rush for something to appear in Git, it's just an experiment.<ref>{{cite web |url=https://code.google.com/p/flightgear-bugs/issues/detail?id=882 |title=Issues 882 (Improved CI / regression testing support by providing options to disable interactive features (sound/window))|author=James Turner |date=Sep 26, 2012}}</ref>|James Turner}}


{{FGCquote
  |A "headless" mode is a long-standing feature request, especially requested by developers and contributors who are hoping to do better/automated regression testing (valgrind, gdb, gprof). At the moment, it isn't directly possible - not without modifying the C++ source code and and rebuilding FG from source. You would basically have to change our OSG init code such that the window is not visible, note that you would still require OSG and X11 obviously, the window just wouldn't be shown - so that FG could be run from a console/shell
  |{{cite web |url=http://forum.flightgear.org/viewtopic.php?p=179978#p179978
    |title=<nowiki>Re: run without osg</nowiki>
    |author=<nowiki>Hooray</nowiki>
    |date=<nowiki>Sun Mar 24</nowiki>
  }}
}}
{{FGCquote
  |the main camera is created in CameraGroup::buildCamera and a pbuffer is allocated when you set osg::GraphicContext::Traits.pbuffer to true. These traits are available in buildCamera because we set width and height there. For debugging purpose, you can add a line like
<syntaxhighlight lang="cpp">window->gc->getTraits()->pbuffer=true;
</syntaxhighlight>at the end of this function.
  |{{cite web |url=http://forum.flightgear.org/viewtopic.php?p=179978#p179978
    |title=<nowiki>Re: run without osg</nowiki>
    |author=<nowiki>FredB</nowiki>
    |date=<nowiki>Sun Mar 24</nowiki>
  }}
}}


== Status (07/2014) ==
== Status (07/2014) ==