Re: [PyOpenGL-Users] Ingame Overlays
Brought to you by:
mcfletch
From: Maciej K. <ma...@dg...> - 2006-06-22 18:35:15
|
On Thu, Jun 22, 2006 at 04:43:28PM +0100, Rowan wrote: > Just to make sure you understood my intentions and I don't go off > chasing rainbows, I want to use this HUD ontop of any game, not one > release by me. e.g. Battlefield 2 or World or Warcraft, or whatever. > With that inmind does your suggestions still hold true. Ahhh, that is a very different ball of yarn. I don't think that's possible with PyOpenGL. In fact I don't think you can do it with OpenGL at all... this seems more like a lower-level, platform/windowing system specific thing. If you're looking at Windows in particular, then maybe, mayyyybe, DirectX allows an external program (i.e., your program) to "break into" the graphical context of another (i.e., the game). More likely is that you need to do some Windows higher-magic through some other API (e.g., your app would read the game's window, to see what was rendered, modify it, and then write it back into the game window). To sum up: what you propose is very non-trivial to do, is very platform-specific, and would need a fair bit of intimate knowledge of the OS API. Considering your situation, I think the best bet for you is to Google around and try to find a project that has attempted to do something similar. This will be Windows-specific stuff, and will likely have very little to do with OpenGL or DirectX (but it may involve one of the other Direct* thingies under Windows; I know very little about them). -- Maciej Kalisiak mac "at" dgp.toronto.edu www.dgp.toronto.edu/~mac |