narzoul / DDrawCompat

DirectDraw and Direct3D 1-7 compatibility, performance and visual enhancements for Windows Vista, 7, 8, 10 and 11
BSD Zero Clause License
907 stars 69 forks source link

OBS Studio recording #109

Closed pilotS1 closed 9 months ago

pilotS1 commented 3 years ago

Hello and thanks for the awesome work, when I am using ddrawcompat the game displays normal but in obs the window capture displays just a white window, anybody encountered that before?

narzoul commented 3 years ago

If you're talking about windowed mode, DDrawCompat redirects that to layered windows that are directly above the original window, and that's where all the content is displayed. The real window underneath would be mostly empty, except for some drawing that may be done from kernel mode that cannot be hooked by DDrawCompat.

If this is the case, try using "display capture" instead, that seems to work for me, although it may be a hassle to crop it to a single window.

If it's about full-screen mode, I'm not sure if OBS can capture that because it uses exclusive full-screen mode, unlike native ddraw which uses a fake full-screen mode (borderless windowed). But I seem to recall in some other thread here, someone mentioned that it was working as well...

narzoul commented 1 year ago

Display capture should work fine now in the default borderless fullscreen mode of v0.4.0, Window capture is not yet supported. I will consider adding some setting for that in the future, but it's going to have some limitations anyway (e.g. no GDI interworking support).

narzoul commented 9 months ago

Window capture now also works in v0.5.0, using the alternative windows with the "[DDrawCompat]" prefix as the capture source. That's about the best I can do here.