Questions tagged [direct3d9]
167 questions
3
votes
1 answer
DirectX alpha masking
I'm working on a game using DirectX 9. Here's what I'm trying to do:
After the scene is rendered, on top of it I want to render few sprites: a black cover on entire scene and a few sprites, which are masks showing where the cover should have holes.…

mag_zbc
- 6,801
- 14
- 40
- 62
3
votes
2 answers
how to set image resource path for D3DXCreateTextureFromFileEx method?
I try to merge all the image resources to a folder called resource. So, set image path as "resource/" but my directX framework only works if I compile at VS 2010. If I run from the debug folder it cannot run.(I already copy all the image resources…

user
- 291
- 2
- 7
- 18
3
votes
1 answer
Hardware Acceleration with Multiple Monitors
I grabbed this multi window test code, changed it to use D3DXCreateTeapot instead of D3DXLoadMeshFromX (I couldn't find a teapot.x file), moved the EndScene call below the DrawText call and set NUM_WINDOWS to 1. With those minor changes, the test…

dario_ramos
- 7,118
- 9
- 61
- 108
3
votes
4 answers
Reuse C++/CLI user control in .NET Web Application
I have a pretty complex class which extends System.Windows.Forms.UserControl. It's written in C++/CLI with the /clr switch, because it uses native C++ dlls. The class's main responsibility is acting as a wrapper for an unmanaged Direct3D9 dll which…

dario_ramos
- 7,118
- 9
- 61
- 108
2
votes
1 answer
How do I turn off Direct3D output filtering
I'm using DirectX9 for rendering video output onto the screen .
The library used is SlimDX.
The software created is used for marking bad pixels from the output device so it's vital that no texture filtering / smoothing is done.
I disabled all the…

DannyZB
- 523
- 2
- 16
2
votes
1 answer
How would I tile a section of a texture in screen space?
Do forgive me if this has been asked before, I've been looking for the answer to this all day and all I'm coming up with is help with tile based 2D games. x~x
I'm trying to create a skinnable GUI in Direct3D 9, using an XML file that has positions…

Addi
- 140
- 5
2
votes
0 answers
Failure to debug Direct3D application with video decoding acceleration
I'm developing a video player with DXVA2.
While trying to debug Direct3D, I've switched it to the Debug mode from the control panel and have defined D3D_DEBUG_INFO macro.
Then, immediately, I've got GetDecoderDeviceGuids failed with the return code…

wl2776
- 4,099
- 4
- 35
- 77
2
votes
1 answer
IMediaSample(DirectShow) to IDirect3DSurface9/IMFSample(MediaFoundation)
I am working on a custom video player. I am using a mix of DirectShow/Media Foundation in my architecture. Basically, I'm using DS to grab VOB frames(unsupported by MF). I am able to get a sample from DirectShow but am stuck on passing it to the…

mots_g
- 637
- 8
- 27
2
votes
1 answer
Go to windowed mode in Direct3D 9
I'm making a Direct3D app, and I can easily go from Windowed to Fullscreen mode using IDirect3DDevice9::Reset with new presentation parameters. However, when I use the same trick to go from fullscreen to windowed mode, the window has now lost its…

user1003819
- 502
- 1
- 4
- 10
2
votes
2 answers
How do I use 'WaitForVBlank' to get VSYNC interrupts in Direct3d9
I'm a newbie on Direct3D9 and trying some stuff. I wish to use 'WaitForVSync' on a 'IDirect3DDevice9Ex' device. However, I have no clue how to use it and get VSYNC interrupts.
I couldn't find much help on MSDN nor any code snippet. Any help would be…

mots_g
- 637
- 8
- 27
2
votes
2 answers
(DirectX9) Gamma correction applied implicitely
UPDATE:
Thank you all very much for your answers. As Jesse Hall suggested, it looks like it is a driver (or hardware) problem. I tried the same app on other configurations and it worked as expected.
I tested the app on other computers which share…

Ozirus
- 1,216
- 13
- 13
2
votes
2 answers
With D3D, do I need to call release before I exit my process?
The tutorial that i'm taking for direct3d says this:
"... Basically, if you create Direct3D, but never close it, it will just keep on running in the background of the computer until your next reboot, even after the program itself closes. Bad. …

Kaije
- 2,631
- 6
- 38
- 40
2
votes
1 answer
What is a data stream in DirectX 9?
I am practicing drawing in Direct3D9, and ran into a little problem.
For example, the first parameter in d3ddev->SetStreamSource(1, NULL, 0, sizeof(CUSTOMVERTEX)); is to specify the "data stream", but I don't know what that is.
I've got it drawing…

jacob
- 35
- 7
2
votes
1 answer
Direct2D how to open shared texture
I have a code, which uses Direct9Ex like:
res = Device->CreateTexture(1920, 1080, 1, 1, D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT, &Texture, &texture_shared_handle);
How can i open that texture for read in Direct2D using this texture_shared_handle?
I found…

Kracken
- 662
- 1
- 11
- 27
2
votes
0 answers
Is it technically possible to render a wpf Xaml element to a direct3d texture?
Lets say I have a simple WPF canvas where I draw a few buttons and shapes using xaml. I would like to render the canvas to a direct3d texture so I can have access to the pixels from within the GPU.
RenderTargetBitmap allows me to do software…

Elad Maimoni
- 3,703
- 3
- 20
- 37