• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSXA IGaugeCDrawable flow?

Thanks WrapD and JB.

I am doing an application that will capture bitmaps rendered in each gauge DCs, that's why I need their HDCs

I think hooking the gauge's handler could be the way, although I understand the performance issues.

Do you know how you can get the Gauge's Handler from outside the gauge?

Thanks!
 
Thanks WrapD and JB.

I am doing an application that will capture bitmaps rendered in each gauge DCs, that's why I need their HDCs

I think hooking the gauge's handler could be the way, although I understand the performance issues.

Do you know how you can get the Gauge's Handler from outside the gauge?

Thanks!

And what's the purpose of doing this 'capture'?
 
It is a recording application, it takes snapshots of the Gauge and creates a video.

I am needing to have access to the Gauge Callback routine and get the gauge HDC.
 
The time consumed inside the Gauge's handler will be an instant, just grab an image.
 
Last edited:
JB When you say:

Well...hijack might be the wrong word but isnt that how the ESP GDI+ gauge works?

Does the SDK show you how to get all gauges and handles?

Regarding hooking IDirect3DDevice9, I did once once a project getting images (and modifying) hooking the EndScene interface, worked perfect. I never done this in FSX, I will take a look and see if I can help.
 
Every gauge exports a Linkage and ImportTable structure. In one of them (sorry, forget which) there are pointers to the GAUGE_HEADER and element list tree. If you look through that stuff, I think you will find that at least STATIC gauge elements have an HDC variable in their structures.
As Ed points out, the value retrieved may not be valid at any given point in time, but it might be worth a shot.

Doug
 
I will also add that attempting to intercept in this manner will probably disrupt the frame rates significantly.

If these are commercially released gauges, I'd also question the legality of making a video of them for anything but personal use.
 
Doing a VCRS is something i have been interested in doing for a while. It may just be possible...but i think it would work better with DirectX gauges and a directx capturing system.
 
@WarpD, I am totally aware of the performance issues and I totally agree about personal use. In addition, no commercial release gauges involved...:)
 
Last edited:
Back
Top