obs-studio/plugins
jp9000 2591f24594 win-capture: Add game capture fix for darkest dungeon
Darkest dungeon uses an unusual technique for drawing its frames: a
fixed 1920x1080 frame buffer used in place of the backbuffer, which is
then stretched to fit the size of the screen (whether the screen is
bigger or smaller than the actual texture).

The custom frame would cause glReadBuffer to initially fail with an
error.  When this happens, their custom frame buffer is in use, so all
that needs to be done is simply reset the capture and force the current
output size to 1920x1080 while that custom frame is in use.

They presumably did this in order to ensure the game looks the same at
any resolution.  Instead of having to use power-of-two sprites and
mipmaps for every single game sprite and stretch/skew each of them
(which would risk the final output "not looking quite right" at
different resolutions), they simply use non-pow-2 sprites with no
mipmaps and render them all on to one texture of a fixed size and then
stretch that final output texture.  That ensures that the actual
composite of the game still looks the same at any resolution, while
reducing texture memory by not requiring each sprite to use a
power-of-two texture and mipmaps.
2016-01-26 11:49:28 -08:00
..
coreaudio-encoder Add latest translations from Crowdin 2015-11-16 21:04:55 +01:00
decklink Add latest translations from Crowdin 2015-11-16 21:04:55 +01:00
image-source image-source: Use gs_image_file (adds animated gif support) 2016-01-26 11:49:22 -08:00
linux-capture linux-capture: Clear x events when exiting handler 2016-01-26 11:49:21 -08:00
linux-jack Add latest translations from Crowdin 2015-11-16 21:04:55 +01:00
linux-pulseaudio Add latest translations from Crowdin 2015-11-16 21:04:55 +01:00
linux-v4l2 Add latest translations from Crowdin 2015-11-16 21:04:55 +01:00
mac-avcapture Add latest translations from Crowdin 2015-11-16 21:04:55 +01:00
mac-capture Add latest translations from Crowdin 2015-11-16 21:04:55 +01:00
mac-syphon Add latest translations from Crowdin 2015-11-16 21:04:55 +01:00
mac-vth264 Add latest translations from Crowdin 2015-11-16 21:04:55 +01:00
obs-ffmpeg obs-ffmpeg: Remove overly verbose FFmpeg logging 2016-01-26 11:49:27 -08:00
obs-filters obs-filters: Make mask filter use gs_image_t helper 2016-01-26 11:49:24 -08:00
obs-libfdk Add latest translations from Crowdin 2015-11-16 21:04:55 +01:00
obs-outputs obs-outputs: Fix "sometimes uninitialized" warning 2015-11-18 14:12:54 -08:00
obs-x264 Add latest translations from Crowdin 2015-11-16 21:04:55 +01:00
rtmp-services rtmp-services: Update Twitch ingests 2016-01-15 08:12:31 +01:00
text-freetype2 Add latest translations from Crowdin 2015-11-16 21:04:55 +01:00
win-capture win-capture: Add game capture fix for darkest dungeon 2016-01-26 11:49:28 -08:00
win-dshow Add latest translations from Crowdin 2015-11-16 21:04:55 +01:00
win-mf Add latest translations from Crowdin 2015-11-16 21:04:55 +01:00
win-wasapi Add latest translations from Crowdin 2015-11-16 21:04:55 +01:00
CMakeLists.txt mac-vth264: Add Apple H264 encoder 2015-09-16 16:43:53 -07:00