Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
MrGoose's avatar
MrGoose
Honored Guest
11 years ago

How to draw a HUD overlay from a external application

I did already make a JHMCS for DCS flight simulator with direct3d hook. Since the new version (DCS 1.5, Oculus runtime 0.7) it is running in direct mode. I can draw a overlay to the mirrored windows, but can't see the overlay in the rift. Is there a hook in the Oculus sdk or frame-server, or is it possible to use a interface like the performance HUD.
Is it possible to use the different layer out from different applications in the same time?

Here you can see what i developed in the past.
https://youtu.be/MEEaXmRm7Vg

Thanks for any hint...
3.jpg

4 Replies

  • MrGoose's avatar
    MrGoose
    Honored Guest
    What i found out so far is: the direct3d hook was in the present call of direct3d. This worked fine for the extended mode, but in direct mode, the overlay what i draw is just visible in the mirrored backbuffer who is displayed in a window. Is der a chance to hook earlier when the eye layers are drawn? Or is there a other solution by using a layer of the oculus sdk.

    Have some one any ideas? Thanks in advanced...
  • I am also interested in layering to an existing direct driver mode instance, but not only a hud. found no way till now.
  • adamup's avatar
    adamup
    Honored Guest
    Also looking for a way to hook into the display while it's running in direct mode. Any pointers would be very helpful!
  • MrGoose's avatar
    MrGoose
    Honored Guest
    I am currently trying to hook ovr_SubmitFrame methode to manipulate the layers, but i am in the begining of this. In case of DCS -they use OpenVR_API- i try also to hook the "Submit" methode, but no success at this point.
    Do anybody have experince in hooking unmanged dlls or libs? You are welcome to give some hints.

    In the past i did hooking directx via Easyhook (C# .NET) as you can see the screenshot above, this worked fine.