Questions tagged [direct3d9]

167 questions
2
votes
1 answer

Do you need to call CoInitialize() when using Direct3D9?

My understanding was since D3D is using COM, the answer is yes. But in the Ogre rendering engine, it appears this is never called. Is this fine or an oversight - if so could it have some actual consequences?
Mr. Boy
  • 60,845
  • 93
  • 320
  • 589
2
votes
0 answers

How to get in Delphi pointers to methods Present() and EndScene() of interface IDirect3DDevice9 by the interface pointer

I have a pointer to IDirect3DDevice9 inteface with 119 methods (include 3 standart), implemented in d3d9.dll: I need to get in my Delphi code offsets (in bytes) on methods EndScene() and Present() of the interface relative to the beginning of the…
Pax Beach
  • 2,059
  • 1
  • 20
  • 27
2
votes
1 answer

DirectX depth buffering not working

For some strange reason my depth buffer is not working, i.e. the triangles drawn later always overlap, regardless of their position. I have these presenter parameters D3DPRESENT_PARAMETERS d3dpp; ZeroMemory(&d3dpp, sizeof(d3dpp)); d3dpp.Windowed =…
Jonas S.
  • 41
  • 1
  • 4
2
votes
0 answers

WoW Style Addon Implementation

I am looking for any open source implementations that allow for a creation of rendered objects like World of Warcrafts addon system. I am interested in recreating something similar in my own projects that make use of Direct3D8 and Direct3D9 but have…
atom0s
  • 485
  • 6
  • 22
2
votes
1 answer

D3D9 64-bit debug runtime

For debugging D3D9 applications enabling the DirectX 9 Debug Runtime is essential. (The June 2010 SDK must be installed first.) For 64-bit applications it can be enabled in the DirectX Control Panel (64-bit) by checking Use Debug Version of Direct3D…
Peter
  • 3,322
  • 3
  • 27
  • 41
2
votes
1 answer

Cooresponding CopyResource method in D3D9

I know it's easy to copy vertex/index buffer in D3D10 with IDirect3D10::CopyResource(...) interface. How to do the same work in D3D9? Is there any similar API for this?
Buzz
  • 1,549
  • 3
  • 16
  • 31
2
votes
1 answer

Triggering Windows TDR (Timeout Detection and Recovery)

I'm developing a Direct3D9Ex application, and some of my users are having problems with recovery after a TDR event. In order to fix that I need to test it on my machine, but to do that I need a way to trigger a TDR event on demand. What's the best…
2
votes
3 answers

Direct3D Texture Post-Processing/Copying

So I'm trying to implement some Direct3D post-processing, and I'm having issues rendering to textures. Basically, my program looks like this: // Render scene to "scene_texture" (an HDR texture)... ... device->SetRenderTarget(0,…
Matt Fichman
  • 5,458
  • 4
  • 39
  • 59
2
votes
0 answers

How to convert a D3D9 surface's D3DPOOL type from D3DPOOL_DEFAULT to D3DPOOL_SYSTEMMEM?

I have a D3DPOOL_DEFAULT type surface and I want to convert it into a D3DPOOL_SYSTEMMEM. I know UpdateSurface does the opposite.
LeOpArD
  • 488
  • 2
  • 6
  • 14
2
votes
2 answers

Direct X 9 - Triangle is not showing up

At the moment, I'm doing a few test cases with DirectX before I begin working on a program. And right now, I've been messing with the code below for a day or so. I revised code while looking around on the internet at similar problems. But in the…
Cdore
  • 107
  • 1
  • 11
2
votes
1 answer

Initializing Direct3D vectors

I am using this to initialize Directx vectors. LPD3DXVECTOR3 sat_map[] = { { -1.5f, 0.0f, 1.5f}, { 1.5f, -1.5f, 1.5f}, }; Even when I try without doing an array, I always get the same error: error C2440: 'initializing' : cannot convert…
user1675016
  • 156
  • 5
1
vote
1 answer

passing direct3d shader parameters dynamically

I want to make my brightness and contrast shader change by dynamically changing offset parameters, but I dont want to recompile my shader everytime I am changing shader buffer. The current shader code is char shaderCode[] = " \ sampler2D screen:…
Ulterior
  • 2,786
  • 3
  • 30
  • 58
1
vote
1 answer

Render video to Direct3D 9.0c texture

I have been trying to play a video in my Direct3D application and have been trying to do so with the help of DirectShow. My problem is that I cannot find how to get the frame data to put into a texture (ISampleGrabber won't install). Does anyone…
DrYap
  • 6,525
  • 2
  • 31
  • 54
1
vote
1 answer

Direct3D9 does not work without display monitor or minimizing and locking the screen

Direct3D9 cannot access the GPU when minimizing or locking the screen, even without a display monitor hardware. Is here a resolution to let Direct3D9 work even no display monitor is connected with machine. For example, create a software display…
Chen Chen
  • 27
  • 4
1
vote
1 answer

What is expected comparison between AlphaRef and AlphaValue in D3D9?

The AlphaRef is set with D3DRS_ALPHAREF, which is an integer ranging from 0x00000000 to 0x000000FF. However, AlphaValue computed by shader is a float value in range [0.0, 1.0]. So what is the expected comaparison of the two value, since them have…
wells hong
  • 11
  • 1
1 2
3
11 12