Questions tagged [directx]

DirectX is a collection of APIs for handling tasks related to multimedia, especially 3D graphics and game programming and video, on Microsoft platforms.

Microsoft DirectX is a collection of APIs for handling tasks related to multimedia, especially 3D graphics and game programming and video, on Microsoft platforms. Originally, the names of these APIs all began with Direct, such as Direct3D, DirectDraw, DirectMusic, DirectPlay, DirectSound, and so forth. The name DirectX was coined as shorthand term for all of these APIs (the X standing in for the particular API names) and soon became the name of the collection.

More information at Wikipedia article of DirectX

References & Tutorials:

5860 questions
2
votes
1 answer

Is it possible to use assimp to generate tangents IF you also use it to generate normals?

I’m pulling in models that, more often than not, have no normals and no tangents. I was disappointed to see this line in the comments for aiProcess_CalcTangentSpace: "Does nothing if a mesh does not have normals.” The problem here is, my mesh does…
Nico
  • 1,181
  • 2
  • 17
  • 35
2
votes
0 answers

DirectX include and library directories in VC++

I am getting the following error: LINK : fatal error LNK1104: cannot open file 'd3dx11.lib' I think it may be the result of incorrectly setting up the directX directories. For both include and library directories I simply pasted the location of the…
Display name
  • 721
  • 2
  • 11
  • 29
2
votes
1 answer

Game not recieving WM_KILLFOCUS message while in fullscreen

I'm working on a game using DirectX and WinApi. While in windowed mode, everything works fine, either Alt+Tabing or clicking outside of a game window sends WM_KILLFOCUS message. But while in fullscreen, Alt+Tab does not send the said message. Is…
mag_zbc
  • 6,801
  • 14
  • 40
  • 62
2
votes
1 answer

XAudio2 - playing only a part of the audio

I am trying to play mp3/wma using xaudio2. I managed to use the Media Foundation Source Reader object to do the decoding. My problem is, it is not playing the full audio; I could get only a part of the audio played. What I am trying to do is, get…
milsim
  • 35
  • 6
2
votes
2 answers

Dimensions of ID3D11ShaderResourceView

Is it possible to get the Dimensions of the image represented by a ID3D11ShaderResourceView? I create a 2D texture using ID3D11ShaderResourceView* m_texture; D3DX11CreateShaderResourceViewFromFile(D3DDevice, filename, NULL, NULL, &m_texture,…
theCNG27
  • 405
  • 8
  • 27
2
votes
2 answers

How to know which triangle contribute to the color of a pixel?

I'm total new in graphics and DX, encountered a problem and no one around me know graphics too. Sorry if the question seems too naive. I use DirectX 11 to render a mesh, and I want to get a buffer for each pixel. This buffer should store a…
2
votes
1 answer

DirectX backward compatibility

I'm just a beginner trying to understand the path to follow for creating graphical applications (not games!!). Since I'm very addicted to Windows I chosen to try DirectX as graphic library, with C++. The point is: DirectX 9, 10, 11 (and further more…
T3STY
  • 103
  • 7
2
votes
3 answers

Can't debug vertex or pixel shaders using the integrated graphics debugger

I used to have the ability to inspect shaders in Visual Studio 2012, but now I've lost it. The UI doesn't actually crash, but the modeless popup message saying "This may take a few minutes" never bears fruit. I found a post at another site…
tombola
  • 165
  • 12
2
votes
0 answers

DirectX - GetSurfaceLevel Performance Issue

I'm implementing deferred shading in a directx 9 application. My method of deferred shading requires 3 render targets( color, position, and normal ). It is necessary to: set the render targets in the device at the beginning of the 'render'…
P. Avery
  • 779
  • 1
  • 16
  • 34
2
votes
0 answers

Capture Sound from microphone using Directx DirectSound

I am creating a simple application that records input from the microphone and store it into array of bytes. So I have searched a lot about this and eventually ended up using Directx DirectSound. Here is the code I am using: using…
BOSS
  • 1,828
  • 11
  • 34
  • 60
2
votes
2 answers

Is it possible to use WinRT objects in STL-like containers?

I'm trying to create a simple gesture recognizer for a D3D application. The gesture recognizer works by storing each point received into a boost::circular_buffer of capacity 3 and then counting the number of similar FrameID's in the buffer, like…
Nico
  • 1,181
  • 2
  • 17
  • 35
2
votes
1 answer

Tessellation: Why fractional-odd and fractional-even spacing?

i'm currently working a lot with tessellation and have one specific question about the spacing parameter: I know that fractional spacing leads to much smoother transitions between different tessellation values than equal spacing. But why are there…
2
votes
0 answers

Trouble with Grid Pattern Sprite Sheet

I'm having some trouble displaying a simple grid pattern in DirectX 11. Everything loads correctly, without any errors or returning, but nothing is actually displayed. Putting a breakpoint in the DrawGridSquare function shows that everything is…
BearInATie
  • 255
  • 3
  • 15
2
votes
1 answer

How do I write this address of a function from C++ to C#?

I'm learning DirectX but I don't know C++ very well so I decided to use SharpDX instead. But I'm stuck on this part in C++ they use the address of a function in the TypedEventHandler, but I don't know how to write that in C#? Can anyone help? ref…
erotavlas
  • 4,274
  • 4
  • 45
  • 104
2
votes
1 answer

Direct3D Camera aspect ratio/scaling problem

I'm using SlimDX/C# to write a Direct3D application. I configured the camera as per textbox way: private float cameraZ = 5.0f; camera = new Camera(); camera.FieldOfView =(float)(Math.PI/2); camera.NearPlane = 0.5f; camera.FarPlane =…
faulty
  • 8,117
  • 12
  • 44
  • 61
1 2 3
99
100