Questions tagged [directx-9]

DirectX 9 is the 9th version of Microsoft's DirectX API, which is used to develop and handle tasks related to Multimedia, such as game programming, 3d visualizations and video on Microsoft platforms including Windows XP, Windows Server 2003, and Xbox 360.

DirectX 9 is the 9th version of Microsoft's DirectX API, which is used to develop and handle tasks related to Multimedia, such as game programming, 3d visualizations and video on Microsoft platforms.

637 questions
5
votes
1 answer

How to get the screenshot of the desktop from back buffer with DirectX

I asked how to take the screen shot in DirectX and "Use GetFrontBufferData()" was answered. However, "This function is very slow, by design, and should not be used in any performance-critical path" was described at MSDN. When I asked other persons…
Tank2005
  • 879
  • 1
  • 12
  • 31
4
votes
1 answer

DirectX 9.0 vertex buffer updating

I've made a small 3D viewer application using DirectX 9.0. Now I would like to add some editing functionality. Suppose that I want to edit a large polygon. While the user edits the shape, vertices would be added, deleted and moved. Right now each…
kagelos
  • 403
  • 8
  • 19
4
votes
2 answers

DirectX9 - Efficiently Drawing Sprites

I'm trying to create a platformer game, and I am taking various sprite blocks, and piecing them together in order to draw the level. This requires drawing a large number of sprites on the screen every single frame. A good computer has no problem…
Jeremy
  • 135
  • 2
  • 12
4
votes
1 answer

D3DERR_INVALIDCALL in d3d->CreateDevice causing window flicker on startup in Allegro 5 D3D program

I'm working on debugging window creation flicker when creating an Allegro 5 Direct3D window with multi sampling enabled. I've narrowed the problem down to window creation in allegro's d3d_disp.cpp source file. However, I can't get any debug output…
4
votes
2 answers

What has replaced #include in DirectX 12?

I'm working through DirectX 9 with a book, the examples #include d3dx9tex.h intellisense is indicating this file does not exist, as a result hResult = D3DXGetImageInfoFromFile(filename.c_str(), &imageInfo); is also showing errors. I have DirectX 12…
4
votes
1 answer

FFMPEG Frame to DirectX Surface Hardware Accelerated

I use ffmpeg functions to decode h264 frames and display in a window on windows platform. The approach which I use is as below (from FFMPEG Frame to DirectX Surface): AVFrame *frame; avcodec_decode_video(_ffcontext, frame,…
M.Mahdipour
  • 412
  • 1
  • 6
  • 17
4
votes
1 answer

Execution time: GetFrontBufferData, GetBackBuffer, GetRenderTargetData

I'm trying several methods to capture screen with DirectX and I've come up with 3 methods so far: GetFrontBufferData() - Average execution times: GetFrontBufferData(): 0.83598 s D3DXSaveSurfaceToFile(): 0.0036 s Total: 0.83958 s GetBackBuffer() -…
GuiTeK
  • 1,156
  • 3
  • 14
  • 34
4
votes
3 answers

Setting the Debug version of the Direct3D runtime won't stick

When I open the DirectX control panel and open the Direct3D 9 tab and set "Use Debug Version of Direct3D 9" and hit "OK" or "Apply," there are no errors. If I open the control panel again, it is back to "Use Retail Version of Direct3D 9." When I…
IronMensan
  • 6,520
  • 1
  • 24
  • 35
4
votes
1 answer

create texture from memory directx

I have a pointer to loacation in memory which contains my pixel information. I want to display this on screen using textures or any other form.Is it possible to create texture from memory in directx 9? Thanks Here is the code sample D3DLOCKED_RECT…
user1855338
3
votes
2 answers

DirectX equivalent of glBlendFunc(............)

I created a particle System in OpenGl that's working great. When I want to get a burning effect of a fire or a beam or something(Where the system kind of "glows" and fuses all the colors together) I use this method call with…
Jimmy Bouker
  • 118
  • 1
  • 10
3
votes
2 answers

IDirect3D9::GetAdapterCount wont find my second video card

My laptop has two video cards, a high powered NVIDIA one and an onboard Intel one. When I call IDirect3D9::GetAdapterCount however, it only finds the onboard Intel one, probably because the high powered one is being hidden. I'm able to go into my…
baddie
  • 271
  • 3
  • 11
3
votes
2 answers

DirectX Managed Pool

I am writing a plugin for an existent C++ DirectX9 application. Everything was working fine until they decided to switch to IDirect3DDevice9Ex for performance reasons. Now I get the "D3DPOOL_MANAGED is not valid with IDirect3DDevice9Ex" error when…
Listing
  • 1,147
  • 2
  • 14
  • 29
3
votes
1 answer

Z-buffer is causing things not to draw

I'm having some issues getting things to draw in DirectX9. Here's my render function: void Render(GameWorld& world) { DWORD BackgroundColour = 0x00102010; g_pd3dDevice -> Clear(0, NULL, D3DCLEAR_TARGET | D3DCLEAR_ZBUFFER,…
Arkady
  • 338
  • 1
  • 2
  • 8
3
votes
0 answers

Drawtext gives '?' for some Turkish characters

I used c# Graphics.DrawString method to draw text overlays on images. It can draw Turkish characters even if operating system does not have Turkish language package. However i am using directx-9 to draw now because of performance issues. If…
Ksilon
  • 31
  • 4
3
votes
1 answer

DX9 and DX10): what is the default pixel (and vertex) shader? (OpenGL too, if possible.)

I'm aware that I can optionally specify shaders in DX9, and that I'm required to specify a shader in DX10. The question I have is what happens if I say I want to use a shader and I don't specify one. In a phrase, what I'm looking for is the default…
jowens
  • 315
  • 2
  • 10
1
2
3
42 43