WPF and DirectX - game overlay

Hi

I read that WPF uses DirectX, so I wonder if it's possible to create Overlay games with WPF. I tried with Winforms or WPF on my own, and transparent forms or windows always create problems for streaming software, so I wonder if the following can be done: sketch

Create a WPF application that displays a window on the desktop with all the options needed for the overlay. After all the parameters are completed, you can click "Update", and the "Overlay" is created in the game with all the information about it. The WPF application will not be visible in the stream. This means that all viewers will not have any problems with this when the broadcaster changes settings.

Overlay Details
The overlay will be a scoreboard, so a certain amount of information will be required. For example: rough sketch scoreboard

So, to summarize my question (s)

  • Can I create a WPF application that dynamically creates an in-game DirectX overlay?

  • Since it should work in DirectX9, can this project be done using a single dev (me), which has little to no exp with DirectX?

  • If possible, where should I start?

Thank you in advance for all your thoughts and answers!

+6
wpf directx overlay
source share
2 answers

What you want is possible with D3DImage . It allows you to host any Direct3D content in WPF, and also allows you to impose transparency. Here is a simple example .

+3
source share

From your comment above, it looks like you're really trying to introduce your overlay (at least from the user's point of view) into Starcraft II. You would almost have to put a copy of the directx buffer. Also, besides WPF, you can look at XNA.

+1
source share

All Articles