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.

664 questions
0
votes
1 answer

DirectX, light rays in front of 3D models when not hidden

(C++) The title pretty much sums up it all; I want to let a texture (or a sprite, or whatever) of a light be rendered in front of everything if a certain point in the 3D space is not hidden behind something else. How do I do that? I can render it…
Banderi
  • 656
  • 3
  • 7
  • 29
0
votes
2 answers

Pixel shader | Directx 9 | Indexed image using pixel shader | How to use 2 textures, first texture as an image second as in index image

For my project I'm using directx 9 C++. I'm using pixel shader in order to disply a large picture using couple texture in the method of index image (color image). In order to save texture space, I'd like to store the image's pixes using look up…
TripleS
  • 1,216
  • 1
  • 23
  • 39
0
votes
1 answer

Will DirectSound run on Windows 8?

I'm referring to DirectSound, a component of DirectX 9.0c. I know the MediaElement is the preferred audio class but it does not provide some of the DirectSound audio function that my app needs, specifically ability to specify audio output device…
LT Dan
  • 241
  • 4
  • 16
0
votes
1 answer

SlimDX DX9 Shared Surfaces between processes. (C#)

Problem: Need to share a SlimDx.Direct3D9.Surface with another process so it can show the render output. I can create the Surface, but I have not found a way to share it between processes. Available Code I have access to both sides of the…
corylulu
  • 3,449
  • 1
  • 19
  • 35
0
votes
1 answer

Can I calculate global variable in HLSL before vertex shader applied?

there are three global variable g_A, g_B, g_C I want to do this; g_C = g_A * g_B I tried this; technique RenderScene { g_C = g_A * g_B; pass P0 { VertexShader = compile vs_2_0 RenderSceneVS(); PixelShader =…
Gimun Eom
  • 411
  • 5
  • 17
0
votes
1 answer

How can I check existence of texture in shader programming?

g_MeshTexture : texture file name sampler MeshTextureSampler = sampler_state { Texture = ; MipFilter = LINEAR; MinFilter = LINEAR; MagFilter = LINEAR; }; : sampler I use "tex2D(MeshTextureSampler,…
Gimun Eom
  • 411
  • 5
  • 17
0
votes
2 answers

DirectX small application consuming resources like hell

I am trying to learn some DirectX API and, for now, I have just a WINAPI window and a simple render function that displays a bitmap over the entire screen. My WINMAIN function: LPDIRECT3D9 pD3D; // the Direct3D object LPDIRECT3DDEVICE9 pd3dDevice;…
ali
  • 10,927
  • 20
  • 89
  • 138
0
votes
2 answers

Drawing value of a variable with C++ and DirectX9

How do I go about drawing the value of a variable onto the screen with DirectX9? I know I can use the DrawText() method to draw text like this: m_pD3DFont->DrawText(0, "text", -1, &rect, DT_TOP | DT_RIGHT | DT_NOCLIP, D3DCOLOR_ARGB(255, 255, 255,…
Neevo
  • 1
  • 1
0
votes
0 answers

Drawing textured triangle with directx

I'm making a 2D game that uses directx. Currently, I have a background texture (with more to come) that I draw to the screen. However, I only want a portion of the texture drawn to the screen. I know that I could use a rectangle with the draw…
Ryan K
  • 3,985
  • 4
  • 39
  • 42
0
votes
2 answers

Enemy Ghost Instances / Non-unique Objects

I'm working on a simple 2D top-down Zelda style game in C++, but I'm having trouble getting multiple instances of an enemy class to spawn in. Whenever I spawn more than one of an enemy, only the first one registers any collision detection; all other…
DanTheMan
  • 3
  • 2
0
votes
1 answer

Copying data of a IDirect3DSurface to another IDirect3DSurface which are created with two directx devices

There is a window with its own Direct3D device, lets call it mainWindow. mainWindow and its things are created by some other people. They have given me some Direct3D Surfaces (IDirect3DSurface9 pointers) which they are drawing on the mainWindow. I…
Deamonpog
  • 805
  • 1
  • 10
  • 24
0
votes
0 answers

Drawing a line with DirectX C#

I'm trying to draw a simple line using DirectX9 and encountered the following: When the code reach the line: Device device = new Device( some example code I'v found); The location of the form is changing in a periodic manner, meaning every time…
0
votes
1 answer

How to make a character jump in C#/Direct X 9.0?

I am currently making a game in C# using Direct X 9.0. I have nearly everything completed, but I am having problems with the physics of the jump. I have variables declared for the Y and X coordinates. I was wondering if there was a simple method of…
0
votes
0 answers

Rotate a Big Image Loaded on IDirect3DSurface9

I've to rotate images bigger than 4096x4096. (i.e. 4096x8192). The image is loaded from file to an IDirect3DSurface9 created with the method call below: CreateOffscreenPlainSurface(width, height, D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT, &surface.s,…
vahapt
  • 1,685
  • 1
  • 21
  • 26
-1
votes
1 answer

drawing 2d lines in directX9

does someone know how to draw a 2d line with directX9? thanks in advance I don't know how to draw 2d lines in directX9 and I couldn't find a tutorial on google so I'm asking here