directx

4 Element Vector (3D Math)

不打扰是莪最后的温柔 提交于 2020-08-22 04:43:13
问题 Why is there a W term in a lot of 3D API's Vector class (i.e. Vector4(x, y, z, w) ) ? Are there math operations that absolutely require the W term? 回答1: This is a special representation of a point in 3D space, called homogeneous coordinates . They are just another way to describe a point in 3D space. They are used a lot in 3D graphics because they have a few advantages: they make some formulas simpler, and they allow you to represent a "point at infinity" (or "line at infinity" etc. depending

DirectX Resize shows win32 background at Edges

风格不统一 提交于 2020-08-06 07:11:05
问题 When resizing down in DirectX I noticed a flicker along the bottom/right edges. If you fix the size of the swapchain (in red), and set the win32 background to green you will get the following on a resize down: It appears that the window size lags behind the mouse position ("Drag Rectangle") but the area DirectX fills (in red and black) matches the Drag Rectangle, with the remainder to be painted with the window background color (green). The DirectX Utility Toolkit (DXUT) didn't have this

Is there a programmatic way to see what graphics API a game is using?

杀马特。学长 韩版系。学妹 提交于 2020-08-06 04:46:57
问题 For games like DOTA 2 which can be run with different graphics API's such as DX9, DX11, Vulkan, I have not been able to come up with a viable solution to checking which of the API's its currently using. I want to do this to correctly inject a dll in order to display images over the game. I have looked into manually checking what dll's the games have loaded, this tool for example: https://docs.microsoft.com/en-us/sysinternals/downloads/listdlls however, in the case of DOTA, it loads in both

Is there a programmatic way to see what graphics API a game is using?

感情迁移 提交于 2020-08-06 04:46:10
问题 For games like DOTA 2 which can be run with different graphics API's such as DX9, DX11, Vulkan, I have not been able to come up with a viable solution to checking which of the API's its currently using. I want to do this to correctly inject a dll in order to display images over the game. I have looked into manually checking what dll's the games have loaded, this tool for example: https://docs.microsoft.com/en-us/sysinternals/downloads/listdlls however, in the case of DOTA, it loads in both

DirectX Coordinate System Causes Texture Flipping

早过忘川 提交于 2020-06-29 08:32:20
问题 I recently posted a question about a texture issue I was having. And I think I've discovered the culprit of my problem, but I'm unsure how to handle this, or what I should be doing. Here is the link to the question I had asked: DirectX Texturing Inversion Issues After asking that question I got to work just sitting there toying with everything, and eventually ended up just randomly trying to switch from a left handed coordinate system, to a right handed one. Changing to a right handed

DirectX redistributable package breakdown

不问归期 提交于 2020-06-27 12:43:26
问题 Am I allowed to redistribute only parts of the DirectX package? (e.g. only the DirectDraw DLLs, without Show/3D/etc.) 回答1: No. From the DirectX SDK Redist EULA: DirectX Software Development Kit Redistributable Code Redistributable Code is identified as all of the files in the following "Redist" directory on the DirectX SDK CD/Download: redist/ The following files in the above directory must be included in any distribution of the DirectX Runtime. DSetup32.dll DSetup.dll DXSetup.exe DXupdate