Questions tagged [direct3d9]
167 questions
1
vote
2 answers
Taking screenshot C++ directx gets black image
I'm trying to take a screen capture with directx. I tried code from several pages that explains how but always get a black screen shot. If someone can help me I will be grateful.
my code is:
int _tmain(int argc, _TCHAR* argv[])
{
…

Diego Fernando Murillo Valenci
- 1,407
- 3
- 24
- 47
1
vote
1 answer
&D3DXVECTOR3 causes error C2102 '&' requires l-value
first time here.
Im trying to move the .png file using direct3d 9 function: &D3DXVECTOR3 but when I run local windows debugger it shows '&' require l-value error. I tried to search for similar case using direct3d9 but I found nothing. I would like…

AlohaChan
- 11
- 1
1
vote
1 answer
How to handle Direct3D 9Ex D3DERR_DEVICEHUNG error?
While rendering if the IDirect3DDevice9Ex::PresentEx method returns D3DERR_DEVICEHUNG then I release the resources and call IDirect3DDevice9Ex::ResetEx(&m_d3dParams, NULL) where m_d3dParams is of type D3DPRESENT_PARAMETERS. Unfortunately, the…

m4d
- 11
- 1
1
vote
2 answers
Which pixels did that drawmesh operation just draw to?
Ok, it's a relatively simple problem, I want to know where, in screen space, a particular mesh was just drawn. I plan on then storing that information in a data store of some kind so that when I interact with something in screen space, I can lookup…

Immortal Blue
- 11
- 1
1
vote
0 answers
How to perform alpha blending on saved raw argb videos(a image and a video will also work) using direct3d9 , direct3d10 or direct3d11?
I'm trying to perform alpha blending on videos using direct3d11. I've wrote the code snippet below to achieve this. I've tried to read the video file out2.argb frame by frame and store it in the rawData. Later, I passed that rawData to…

Chandana
- 21
- 3
1
vote
5 answers
2D tile based game, shows gaps between the tile sprites when I zoom in with the camera?
I am using the D3DXSPRITE method to draw my map tiles to the screen, i just added a zoom function which zooms in when you hold the up arrow, but noticed you can now see gaps between the tiles, here's some screen shots
normal size (32x32) per…

Kaije
- 2,631
- 6
- 38
- 40
1
vote
2 answers
Are D3D9 apps tied to exact D3DX DLL version?
If I built my app against D3DX June2007_d3dx9_34 and the target system has a newer version Nov2007_d3dx9_36 should that be a problem?
I distribute D3DX DLLs using MS' redist-installer tool but I noticed one one 'clean' PC (no D3DX previously…

Mr. Boy
- 60,845
- 93
- 320
- 589
1
vote
1 answer
Get SharpDXException Invalid Parameters when try to create a new Texture for DirectX 9 on 32bit NVidia Quadro M1000M
I created a control that render over WPF using SharpDX. The code runs fine in most computer, video cards and configurations..
However, I am having issues when the app using the component is compiled for X86 and used in a NVIDIA Quadro M1000M or in…

Daniel Rojas
- 11
- 2
1
vote
1 answer
Minimal code to create a Direct3D9 Device
This isn't for stable release code, I just need to get a windowed D3D9 device created in a C++ app from a HWND on my dev PC for testing something... it can default on loads of options.
I was trying to hack it together from an old D3D8 class I had…

Mr. Boy
- 60,845
- 93
- 320
- 589
1
vote
1 answer
Direct3D 9 Creation and Releasing Threads?
I have an application that uses Direct3D for rendering viewports and it's made as a separate DLL module from the main application which links to it at run-time. The main application is a C# program.
The creation and initialization of Direct3D…

Joseph
- 11
- 1
1
vote
0 answers
DirectX 9 Drawing with alpha channel
I am trying to draw some textures, for example red cube 200x200 with color - D3DCOLOR redtz = D3DCOLOR_RGBA(255, 0, 0, 100), but alpha channel is always 255. I dont know where is my mistake, im newbie in D3D. Thanks in advance. Here's my code:
void…

Марк Колесников
- 11
- 1
1
vote
1 answer
What is the Xbox360's D3DRS_VIEWPORTENABLE equivalent on WinXP D3D9?
I am maintaining a multiplatform codebase for Xbox360 and WinXP. I am seeing an issue on the XP side that appears to be related to D3DRS_VIEWPORTENABLE on the Xbox360 version not having an equivalent on WinXP D3D9. This article had an interesting…

Jim Buck
- 20,482
- 11
- 57
- 74
1
vote
1 answer
Recently IDirect3DDevice9::CreateDeviceEx sometimes does not change the BackBufferFormat from D3DFMT_UNKNOWN
MSDN on IDirect3D9Ex::CreateDeviceEx says:
If BackBufferFormat equals D3DFMT_UNKNOWN before the method is called, it will be changed when the method returns.
So this should print something other than format: 0 (nowadays usually format: 22 for…

Peter
- 3,322
- 3
- 27
- 41
1
vote
1 answer
No mouse cursor in d3d9 GetFrontBufferData
I' writing a screen capturing application. The screen is captured using Direct3d 9 API and the output media file is written using Windows Media Foundation h264 codec.
The app must work on all Windows versions starting from 7. Therefore, d3d9 API was…

lost_guadelenn
- 447
- 4
- 14
1
vote
1 answer
Direct3D9 Exception when calling Release
When I call Release() on my Direct3D9 interface, the programs stops immediately and under the debugger, I have the following output:
VERIFIER STOP 00000900: pid 0x570: A heap allocation was leaked.
In my code, I create and free the D3D9 interface…

Punkfloyd
- 45
- 4