Re: [Flightgear-devel] Window controls

2008-08-20 Thread Csaba Halász
On Wed, Aug 20, 2008 at 1:48 PM, cullam Bruce-Lockhart
[EMAIL PROTECTED] wrote:
 I'm actually looking for the window dimensions, full screen mode,
 etc. I'm passing information to a camera, and it needs to know how large the
 window is at any given moment. Thanks.

The window size is available in the property tree as
/sim/startup/xsize and ysize.
Alternatively you could use a generic method to find the FG window and
query its properties.

-- 
Csaba/Jester

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Window Controls

2008-08-01 Thread cullam Bruce-Lockhart
I'm actually not trying to patch Flightgear into a piece of Camera Software. 
I'm making some modifications and changes to Flightgear so it can give commands 
to the camera's hardware and internal API. The way that Curtis talks about is 
one of the ways that I'm looking at doing it. But I've got another way that 
might be a lot easier, or it might not work at all. Either way, I want to give 
it a try. In order to do this, I'll need to find a way to access FG's window 
handle, and get its width and height information (which I believe are just 
stored as the variables width and height, correct?). In what part of the source 
code is the window handle defined, and is there a function I need to utilize 
that will return it? Any help on where to find this would be greatly 
appreciated! 
-cullam




  -
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Window controls

2008-07-29 Thread Curtis Olson
On Tue, Jul 29, 2008 at 11:23 AM, cullam Bruce-Lockhart wrote:

 Hi there. I'm fairly new to this, so this is probably a very rudimentary
 question. I apologize. I'm hooking up a lumenera Camera for a live video
 feed from a UAV, so that the video gets handed to Flightgear, which then
 draws its HUD over the video stream. In order to do this, I need to be able
 to communicate with the window controls. My camera can display the video in
 a new window, but I want it to draw to the video screen that Flightgear is
 already using. The camera expects a handle to the window. Any idea where I
 can find this, and all other information where the program keeps track of
 its window (size, position, etc)? Thanks so much!


I think the problem here is that only one application can own the window.
It's very likely that any demo code you'll see for your camera opens up a
window and owns and manages it, takes care of handling events, etc. etc.

The problem is that FlightGear wants to own the window too.

When I've pondered this sort of thing, I didn't imagine trying to embed
FlightGear into some other application.  Instead, I imagined embedding some
minimal routine that talks to the camera and grabs an image frame.  Then
usually you can directly map this into an opengl texture if you figure out
the pixel format of your frame grab and pass the right flags to the opengl
texture create call.  Then you should be able to draw this texture on top of
any surface just like any other texture ... you could map it to a
rectangular area of the screen, you could map it to a rotating cube, map it
to the earth surface, etc.

That's about as far as far as I've gone with thinking through the problem.

Regards,

Curt.
-- 
Curtis Olson: http://baron.flightgear.org/~curt/
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel