576 questions
89
votes
8
answers
18k
views
How to smooth ugly jitter/flicker/jumping when resizing windows, especially dragging left/top border (Win 7-10; bg, bitblt and DWM)?
THE PROBLEM: When I grab the resize border of my Windows app, especially the top or left borders, and resize the window, the contents of the window do resize "live" as I drag, but they ...
6
votes
1
answer
4k
views
How to achieve smooth tangent space normals?
I'm trying to add bump mapping functionality to my application but I'm getting very faceted models:
The reason it is happening is because I'm calculating tangent, binormal and normal on per face basis ...
35
votes
6
answers
31k
views
Implementing Ray Picking
I have a renderer using directx and openGL, and a 3d scene. The viewport and the window are of the same dimensions.
How do I implement picking given mouse coordinates x and y in a platform ...
22
votes
3
answers
38k
views
Capture screen using DirectX
I know how to use GDI to capture screen, however it is very slow (it barely captures 10 fps)
I have read that DirectX offers the best speed. But before I start learning DirectX I wanted to test a ...
15
votes
7
answers
6k
views
How can I reverse engineer a DirectShow graph?
I have a DirectShow graph to render MPEG2/4 movies from a network stream. When I assemble the graph by connecting the pins manually it doesn't render. But when I call Render on the GraphBuilder it ...
121
votes
2
answers
116k
views
The purpose of Model View Projection Matrix
For what purposes are we using Model View Projection Matrix?
Why do shaders require Model View Projection Matrix?
46
votes
5
answers
42k
views
Overlaying on a 3D fullscreen application
I want to display some custom graphics on top of a 3rd party fullscreen Windows application.
Have you played any Steam games? It has an executable, GameOverlayUI.exe that lets you access Steam ...
18
votes
7
answers
39k
views
Take screenshot of DirectX full-screen application
This boggles me. DirectX bypasses everything and talks directly to the device driver, thus GDI and other usual methods won't work - unless Aero is disabled (or unavailable), all that appears is a ...
35
votes
3
answers
58k
views
Hooking DirectX EndScene from an injected DLL
I want to detour EndScene from an arbitrary DirectX 9 application to create a small overlay. As an example, you could take the frame counter overlay of FRAPS, which is shown in games when activated.
...
6
votes
1
answer
5k
views
UWP App realtime blur background using DX Compositor
So the UWP Composition support has been out for a while I am looking for a way to do real-time blurring of elements (live blur as they move or load, not static snapshot). So far I have been looking at ...
5
votes
2
answers
15k
views
Sending keys to a DirectX Game
I got into a little trouble sending keys. It seems like when ever I want to send keys It doesn't work.
I'm thinking about sending alphabetic characters such as T to bring the chat up from example, ...
56
votes
7
answers
52k
views
Unresolved external symbol __vsnprintf .... (in dxerr.lib)?
I am running a DirectX 11 application on windows 7 and visual studio community 2015 RC. I'm still using functions from the DX SDK. It worked fine on VS2013 but when I switched over I get only the ...
50
votes
4
answers
36k
views
Comparison between XNA and DirectX (C#)
In terms of PC development (excluding Xbox and Zune),
What is the difference between XNA and C# DirectX? Does C# DirectX have a significant advantage over XNA (in terms of speed, royalties, etc)?
...
30
votes
4
answers
11k
views
How do I capture the audio that is being played?
Does anyone know how to programmatically capture the sound that is being played (that is, everything that is coming from the sound card, not the input devices such as a microphone).
28
votes
2
answers
16k
views
Forcing NVIDIA GPU programmatically in Optimus laptops
I'm programming a DirectX game, and when I run it on an Optimus laptop the Intel GPU is used, resulting in horrible performance. If I force the NVIDIA GPU using the context menu or by renaming my ...