|
From: Julian S. <ju...@op...> - 2020-07-11 21:39:10
|
On Fri, 10 Jul 2020 15:52:25 +0100 James Turner <ja...@fl...> wrote: > > On 9 Jul 2020, at 20:55, Julian Smith <ju...@op...> wrote: > > > > Many thanks for this, all very helpful, and the wiki page is very > > informative too. > > > > I've had mixed success with crudely changing flightgear's > > FGRenderer's osgViewer::Viewer to an osgViewer::CompositeViewer > > with a single osgViewer::View, and patching up all the calling code > > so it compiles. > > > > It all builds ok, but at runtime it appears to stop making progress > > at 'loading scenery' - the splash screen stays in place with the > > scrolling blue line at the bottom. > > > > Presumably there's some messaging or synchronisation that i've > > broken? Or maybe something more fundamental. > > > > All threads are blocked apart from the main thread which > > appears to be running the loop in fgOSMainLoop(). > > Maybe late to the party, but can’t our WindowBuilder already do > multiple windows just fine? (with an XMl driven UI, though : that’s > the aprt that is missing to make it useful at runtime) I think WindowBuilder is used when adding extra windows when one specifies /sim/rendering/camera/... on startup. I'm rather ignorant of the details here but my understanding is that these windows have to use the same camera group as the main window (apologies of i'm getting the terminology wrong) so can only show the view from the same eye position, though typically at a different angle so that one can emulate things like side windows of a cockpit displayed in a different window or monitor. What i'm after is multiple independent views on the same scenery, e.g. cockpit and tower view. I think that these each need their own camera groups and so require OSG's CompositeViewer? Thanks, - Jules > > I think extending WindowBuidler to allow changes at runtime might be > a better solution than using osgCompositeViewer, becuase this will > keep existing multi-window / multi-view setups working. My guess is > if we switch to osgCompositeViewer, we might break some of those. > > Kind regards, > James > -- http://op59.net |