> From: Patrick Quirk 
> 
> I'm currently a computer science researcher at UNC-Chapel Hill and we're 
> using Flightgear as a proof of concept application in our project 
> (website:  http://www.cs.unc.edu/Research/ootf/Projects/wav.html ).  The 
> short version is that we have a master fgfs node and 4 slaves which 
> drive projectors.  These projectors produce a large panoramic display 
> that looks great in the cockpit view.  I have two questions that someone 
> here could probably answer in a few minutes and save me hours of time. 
> 
> 1.  In the cockpit view, we need to change the view according to our own 
> usual positition, look at, and up vector specification which works fine 
> now in terms of matching up what is drawn on the projectors.  However to 
> do this we modified the OpenGL projection stack directly and bypassed 
> any SSG stuff, which is a big nasty hack.  This makes FlightGear think 
> that each of the slave nodes is looking straight ahead when we're 
> actually looking off to the left or right or whatever.  Consequentially 
> there is a large amount of clipping in the nodes that aren't looking 
> close to straight ahead.  How can I use SSG to do this instead?  Or even 
> just rotate the SSG frustum approximately?

Work with the viewer.  This is the class that controls the frustrum (see 
Main/viewer.cxx).  The viewer's behavior is entirely controlled through 
property system references that can be manipulated all sorts of ways.

Also take a look at viewmgr.cxx which you might need to enhance for your 
project.

If you want to take a look at a configured View that is not tied to a flight 
model in any way, and responds real time to user changes to properties (they 
all do in some way), see the "Tower View Look From" entry in prefrences.xml.   
The purpose is to illustrate that the viewer is entirely manipulable via the 
property system.   There are many ways to manipulate the property system values 
and accomplish this including writing some C++ code,  nasal scripts, network 
interfaces, etc.
 
> 2.  It would be really nice if we could change the view (cockpit, chase, 
> etc) of the slave nodes using the master node, or even in the 
> preferences files.  Is there a way to do this without using the keyboard 
> of the slave computer? 
> 

Yes, as Curt said the telnet interface might be what you are looking for.  Also 
you can configure whatever views you wish in the preferencs.xml file.  The ones 
already there are just defaults and examples.

Best,

Jim



_______________________________________________
Flightgear-devel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to