Questions tagged [direct3d9]
167 questions
0
votes
1 answer
How to create a Texture2D format YV12 (DXGI_FORMAT_420_OPAQUE)
I want create a Texture2D format DXGI_FORMAT_420_OPAQUE as input_view of VideoProcessor, then call VideoProcessorBlt convert it to RGBA format, render it in window lastly. As said in msdn,
An app using the YUY 4:2:0 formats must map the luma (Y)…

Grey
- 5
- 3
0
votes
0 answers
IDirect3DDevice9_StretchRect changes image contrast
My app uses IDirect3DDevice9Ex_StretchRect to copy image from NV12 surface into D3DFMT_X8R8G8B8 surface. But the result image has lower contrast than the original.
Test setup:
My source image comes from USB webcam, completely covered – it gives me…

Petr Bříza
- 11
- 2
0
votes
1 answer
Call GetDeviceCaps failed when remote desktop is minimized
I try to run a demo of d3d9 in a windows 10 virtual machine only with a NVIDIA RTX 3090 card. This windows vm is connected via windows remote desktop. Here is my demo:
#include
#include
#include
int main() {
//…

Chen Chen
- 27
- 4
0
votes
1 answer
ID3DXFont::DrawText modifying the IDirect3DDevice9 vtable
I am messing around with Direct3D - modifying vtable entries for a device object so that my functions get called instead the provided ones. I noticed that despite this mostly working, at points something restores the IDirect3DDevice9 vtable, for…

foxx1337
- 1,859
- 3
- 19
- 23
0
votes
1 answer
d3d9 how to register software device
on win7 no graphics card
IDirect3D9::createDevice() with BehaviorFlags=D3DCREATE_SOFTWARE_VERTEXPROCESSING,DeviceType=D3DDEVTYPE_SW,return D3DERR_INVALIDCALL.
D3DDEVTYPE_SW need IDirect3D9::RegisterSoftwareDevice to register pluggable software…

Y.Dan
- 1
- 1
0
votes
1 answer
How can I reliably identify when Direct3D9 "device" maps onto which Windows GDI "monitor"?
I'm trying to obtain screenshots of multiple monitors using IDirect3DDevice9::GetFrontBufferData() and it works but I cannot figure out how I could identify which IDirect3DDevice9 corresponds to which monitor and so how its output is positioned on…

sharptooth
- 167,383
- 100
- 513
- 979
0
votes
1 answer
Direct3D9 "Clear" Function Not Clearing
So I am trying to clear a window to go completely blue, but for some reason D3D9 "Clear()" function won't work. I've done error checking so I know 100% that it's the Clear() function that's failing and not something else. I've checked it with code…

jacob
- 35
- 7
0
votes
1 answer
Direct3D9 not drawing?
I needed to draw some simple shapes and I decided to go with D3D9. After going through a few of the tutorials on directxtutorial.com, I finally have all the code and knowledge I need to make my first shape appear on the screen. The problem is,…

jacob
- 35
- 7
0
votes
1 answer
Direct3D 9 Z-Buffer Precision Bug occuring only in release build
I'm currently experiencing a weird issue that looks like Z-Fighting with Direct3D 9. I suspect that my problem is actually a Z buffer precision issue.
I noticed that absolutely no depth artifacts appear in Debug builds (I'm using Visual Studio…

Dave
- 41
- 8
0
votes
1 answer
Direct3D 9 Shadow Mapping Blend Mode
I am currently trying to draw shadows over a scene in direct3d 9. I am trying to do some multi pass rendering and am having trouble understanding how to use/set the blend mode.
I have done a depth pass which fills the depth buffer and I then have a…

MulletDevil
- 919
- 2
- 8
- 16
0
votes
1 answer
direct3d9 how to filter texture for pixel art
hello i want to make pixel art image looks less blurry i tried set sampler state but i see no difference
device->SetSamplerState(0, D3DSAMP_MIPFILTER, D3DTEXF_NONE);
i tried almost everything in setsamplerstate but i see no difference at all
i…

alabdaly891
- 159
- 1
- 8
0
votes
0 answers
how to get windows HDR switch status use code?
How can I get the status of the windows hdr/sdr switch with code?
msdn description switch button position:
Select the Start button, then select Settings > System > Display .
If you have multiple displays connected to your PC, choose the…

Zhou Chen
- 1
- 3
0
votes
1 answer
What could be the reason of exception at IDirect3DDevice9::Reset?
My employer asked me to fix annoying crashes in legacy Direct3D9 application. Calls to IDirect3DDevice9::Reset method(while "Alt-Tabing") in fullscreen mode raise exception. DirectX 9 documentation says nothing about possible exception in…

Debrovski
- 41
- 4
0
votes
1 answer
Some Service interface are not supported in the MFGetService helper function
I'm trying to get a pointer to the IDirect3DSurface9 and I use the the helper function MFGetService and I pass MR_BUFFER_SERVICE to the second parameter.While linking,I received a "unresolved external symbol _MR_BUFFER_SERVICE" error.
I looked up…

Ice Tea
- 23
- 2
0
votes
0 answers
C++ Direct3D 9 : D3DXSprite not rendering
I want to create a GUI system using Direct3D (not Direct2D) for my C++ game engine. I created a D3DXSprite, assigned a D3DXTexture, drawing it using another color than the background's... still it's not showing. What am I doing wrong here?
#include…

Dave
- 41
- 8