Questions tagged [d3dx]

D3DX (Direct3D Extension) is a deprecated high level API library which is written to supplement Microsoft's Direct3D graphics API.

D3DX (Direct3D Extension) is a deprecated high level API library which is written to supplement Microsoft's Direct3D graphics API.

58 questions
1
vote
1 answer

Debug DirectX code

I've been learning DirectX by following some tutorials but every time I type something myself then DirectX won't work. Here is an example of the latest error that I can't fix after hours of research: //Header.h static HWND hWnd; static…
Werner
  • 81
  • 1
  • 1
  • 7
1
vote
1 answer

D3D11 Screen Capture in C++

Is it possible to make a screen capture of a DirectX application (game for exemple) in D3D11 ? I can do it easily in DirectX 9 or with API hooking (IDXGISwapChain::Present), but impossible with DirectX 11. I initalize D3D11 and create the SwapChain…
1
vote
0 answers

DirectX9 AlphaBlend with multiple surfaces / textures

im currently writing a 2D window framework (gui engine). Every control (window, button, panels, ..) is painted on a seperate surface. These surfaces are merged together, after all controls in the tree are painted. For example (window contains panel…
Zacherl
  • 11
  • 1
1
vote
1 answer

DirectX11 - Matrix Translation

I am creating a 3D scene and I have just inserted a cube object into it. It is rendered fine at the origin but when I try to rotate it and then translate it I get a huge deformed cube. Here is the problem area in my code: D3DXMATRIX cubeROT,…
Alex Durkin
  • 13
  • 1
  • 5
1
vote
1 answer

Mapping buffers in DirectX, C++

So my problem is that I have a buffer called the "lightbuffer", which has a bunch of stuff in it, and I want to be able to modify one or more elements of it, without having to rewrite the whole thing again. Specifically if I do: result =…
CivDav
  • 102
  • 2
  • 11
1
vote
1 answer

How to update Texture2D in pixel shader every frame (in D3D10)?

Using D3D10, I am drawing a 2d rectangle and want to fill it with a texture (bitmap) that should change a few times every second (like displaying video). I am using a shader effect, with a Texture2D variable, and trying to update a…
Gil
  • 395
  • 4
  • 19
1
vote
1 answer

D3DXCreateFont Alternatives on Windows 8?

I'm playing around a little bit with a hooked DirectX 9 application. As you may know, the D3DX framework has been deprecated in Windows 8. Microsoft advises us to "investigate alternative solutions to working with the Direct3D API". What are…
Jason
  • 6,878
  • 5
  • 41
  • 55
1
vote
1 answer

D3DX11SaveTextureToFile with ID3D11ShaderResourceView

I have the ID3D11ShaderResourceView * textureResView, and I want to save that texture to file. I guess I should first extract the ID3D11Texture2D from it, so I have made a code: ID3D11Resource * res; ID3D11Texture2D *…
PolGraphic
  • 3,233
  • 11
  • 51
  • 108
1
vote
1 answer

Unbind texture bound using ID3DXEffect->SetTexture

I've got a bit of a problem when using the FX framework to bind textures to samplers using the FX framework: ID3DXEffect->SetTexture(FXShadowtex,Lights->sunlight->ShadowTex) Once that texture is bound to a sampler I'm not allowed to render to it…
Orwell
  • 1,468
  • 1
  • 13
  • 28
1
vote
1 answer

Creating a D3D device without HWND input parameter to MSFT CreateDevice() function

Kindly Pardon me if my doubt is silly or foolish. I am totally new to DirectX programming. Just have C++ knowledge (Very basic COM knowledge). Below code sample is from MSDN Creating D3D device which explains how to create a D3D device from…
codeLover
  • 3,720
  • 10
  • 65
  • 121
1
vote
1 answer

How many D3DXEffect in usual?

I have to use several shaders. In this situation, which way is often prefered? Making several effects Only one effect and several technicque or another way
Gimun Eom
  • 411
  • 5
  • 17
0
votes
1 answer

Retrieving depthBuffer of a render for another render pass. (D3DX9)

I am rendering a scene to a texture, then using that texture and its depthBuffer in subsequent renderings to apply some effects (Depth Of Field, Bloom, etc...). Here is the problem: I manage to set the DepthStencilBuffer to a custom surface and…
NGauthier
  • 885
  • 8
  • 17
0
votes
2 answers

D3DXGetImageInfoFromFile function

Using D3DXGetImageInfoFromFile() function gives me this: Unhandled exception at 0x004114d4 in SAMPLE.exe: 0xC0000005: Access violation reading location 0x00000000. Here is the piece of code that contains error: // ... WCHAR *Path =…
Anon
  • 1,274
  • 4
  • 17
  • 44
0
votes
0 answers

Not getting desired refresh rate when using SetPresentDuration method

I want to set a custom refresh rate in my DX application for that I have used SetPresentDuration() method of IDXGISwapChainMedia interface, the method is returning S_OK but when I am checking the refresh rate it is not setting up as expected. Do I…
Aman Mehta
  • 13
  • 3
0
votes
1 answer

Why is D3DXQuaternionToAxisAngle being called in the following code?

I am attempting to convert some code over to glm/opengl that was originally using direct3d, and have run into a block that does not make sense according to what I found in the documentation on microsoft's website. The block in question is detailed…
whitwhoa
  • 2,389
  • 4
  • 30
  • 61