Questions tagged [direct3d9]

167 questions
1
vote
2 answers

Direct3D9 - Convert a A2R10G10B10 image to a A8R8G8B8 image

Before starting: A2B10G10R10 (2 bits for the alpha, 10 bits for each color channels) A8B8G8R8 (8 bits for every channels) Correct me if I'm wrong, but is it right that the A2B10G10R10 pixel format cannot be displayed directly on screens ? If so, I…
user2997707
1
vote
1 answer

Release Direct3D resources left behind by forcefully terminated application

I'm working on a Direct3D application and I sometimes need to terminate the application forcefully via the debugger. After the application has been terminated in this way a couple of times, Direct3D reports an "Out of video memory" error when…
Agnel Kurian
  • 57,975
  • 43
  • 146
  • 217
1
vote
2 answers

Does Direct3D9 support quad primitives or not?

I read in the Direct3D9 help (emphasis mine) : Direct3D 9 supports points, lines, triangles, and grid primitives. These have been extended to support higher-order interpolation beyond linear. While triangles and lines have spatial extent, until now…
PatrickvL
  • 4,104
  • 2
  • 29
  • 45
1
vote
1 answer

How do I query Direct3D9 for the total amount of video memory?

Sorry if this seems like an obvious question, but I'm just not finding anything online. In Direct3D9, how do I get the total amount of video memory for a specific display device? I'm looking for a programmatic equivalent of running dxdiag and…
Walt D
  • 4,491
  • 6
  • 33
  • 43
1
vote
0 answers

Exception thrown from sharpdx assembly when calling, why?

I am trying to load volume from file of type raw with given dimensions which are specified higher in code( mWidth, mHeight, mDepth). I want to use Volume.FromFileInMemory method. This is piece of the code which should do the loading. Volume volume…
Michal Krakovsky
  • 795
  • 3
  • 7
  • 17
1
vote
1 answer

Can WPF's D3DImage.IsFrontBufferAvailable be ignored?

I always followed the common advice for WPF's D3DImage.IsFrontBufferAvailable and stopped rendering when the front buffer is not available. But after resetting the D3D device this property sometimes remains stuck to false and never becomes true…
Peter
  • 3,322
  • 3
  • 27
  • 41
1
vote
1 answer

How to draw text in D3D9 apart ID3DXFont::DrawText?

I made a test by hooking ID3DXFont::DrawText() in a game using D3D9 ( I tested on LOTRO, the first loading screens and the characters panel at beginning after having logged to a server) but it is never called (the hook works, I tested by using…
Castorix
  • 1,465
  • 1
  • 9
  • 11
1
vote
0 answers

Boggling Direct3D9 dynamic vertex buffer Lock crash/post-lock failure on Intel GMA X3100

For starters I'm a fairly seasoned graphics programmer but as wel all know, everyone makes mistakes. Unfortunately the codebase is a bit too large to start throwing sensible snippets here and re-creating the whole situation in an isolated…
nielsj
  • 1,499
  • 12
  • 24
1
vote
0 answers

Directx9 Code working fine on AMD Graphics Card but fails on Nvidia Hardware

so I wrote a Post Processing class for some old open source game, I have a begin scene function a end scene function, a render function and a function for creating the screen squad and resources. bool CPostProcessingChain::BeginScene() { if…
1
vote
3 answers

What are possible causes of IDirect3DVertexBuffer9::Lock failing?

In error reports from some end users of our game I have quite often seen following behaviour: IDirect3DVertexBuffer9::Lock fails, returned error code is D3DERR_NOTAVAILABLE. Once this happens, quite frequently (but not always) it is followed by the…
Suma
  • 33,181
  • 16
  • 123
  • 191
1
vote
2 answers

Latencies of Direct3D 9 API calls

I've recently been looking with PIX for Windows at an application using Direct3D 9 for rendering. What I've noticed is that the first operations of a given frame on render targets or textures that wrap them seem to take a very long time. The system…
1
vote
1 answer

Unable to use SetTransform in D3D9

What might stop IDirect3DDevice9::SetTransform from working? I've looked at alot of tutorials for using transformation matrices in Direct3D9, including this one here. And as far as I can tell, they all do it the same way. I'm trying to write some…
Kevin Laity
  • 2,489
  • 1
  • 27
  • 34
1
vote
1 answer

how to convert XMMATRIX to D3DMATRIX in DirectX 9?

I learn DirectX (DirectX 9) from www.directxtutorial.com and using visual studio 2012 in windows 8. d3dx9 (d3dx) replace by other header like DirectXMath, therefore I replaced all that is needed, but there is a problem - convert XMMATRIX to…
Arlu
  • 41
  • 2
  • 9
1
vote
1 answer

Drawing targetting circle in 3d application

I'm working on a 3d game just for learning. I have a 3d world generated from a heightmap and various mesh based objects overlayed onto that world. I want the player to be able to target objects in the world which I can do, but I want to draw a…
jcoder
  • 29,554
  • 19
  • 87
  • 130
1
vote
1 answer

Optimized Particle System Direct3D 9

I used point sprites to make particles in direct3d9 with a dynamic vertex buffer for batching. But I can only create 2500 particles at 30fps. I've seen on internet that they could create millions of particles. How do i make millions of particles in…
Dilhan Geeth
  • 187
  • 2
  • 11