DirectX is a set of multimedia APIs from Microsoft aimed primarily at game developers. Popular APIs within the DirectX collection include Direct3D, XInput, and XAudio.

learn more… | top users | synonyms (1)

13
votes
5answers
4k views

Should I learn Direct3D 9, 10 or 11?

I'm just starting to get into 3D programming with Direct3D. What version of D3D should I pick up? 11 looks pretty neat, but 9 and 10 still seems to be pretty present. Given the current state of the ...
6
votes
3answers
1k views

IDirect3DDevice9Ex and D3DPOOL_MANAGED?

So I wanted to switch to IDirect3DDevice9Ex, purely for the SetFrameLatency function, as fullscreen vsynced D3D seemed to produce noticable input lag. But then it tells me 'ha ha ha! now you can't ...
16
votes
2answers
4k views

How to deal with D3DX .dll hell?

There's a large number of versions of the D3DX dll, from each SDK update, each version having a unique name (list of D3DX dll names). All-too-often, people have versions missing. So even though they ...
6
votes
3answers
1k views

Common light map practices

My scene consists of individual meshes. At the moment each mesh has its associated light map texture, I was able to implement the light mapping using these many small textures. 1) Of course, I want ...
0
votes
2answers
758 views

How to create a mini-game? [closed]

I am wondering how to creat a mini-game like "Diner Dash" or like "Big Fish Games". I want my game to be 2d, but it looks like 3d: see this image. ...
3
votes
1answer
874 views

problem with frustum AABB culling in DirectX

I am currently working on a project with a few friends, and I am trying to get frustum culling working. Every single tutorial or article I go to shows that my math is correct and that this should be ...
5
votes
3answers
382 views

What sort of things can cause a whole system to appear to hang for 100s-1000s of milliseconds?

I am working on a Windows game and while rendering, some computers will experience intermittent pauses ("hitches" for lack of a better term). When profiled they appear in seemingly random places in ...
2
votes
2answers
1k views

Rendering with Direct3D

I'm slightly confused about how Direct3D rendering works. Basically, as long as I render to one surface, everything is fine. But when I try rendering to multiple surfaces, it seems like everything is ...
4
votes
1answer
1k views

SRV from UAV on the same texture in directx

I'm programming gpgpu raymarching (volumetric raytracing) in directx11. I succesfully perform compute shader and save raymarched volume data to texture. Then i want to use same texture as SRV in ...
-1
votes
5answers
2k views

OpenGL vs DirectX? [closed]

I saw the articles that were going on about OpenGL being better than DirectX and that Microsoft are really just trying to get everyone to use DirectX even though it's inferior so that gaming is almost ...
2
votes
3answers
2k views

Where can I get DirectX headers for Mingw?

I have downloaded the latest Mingw toolchain from mingw.org, but it seems DirectX headers are missing. Where can I get those? I assume there are open source compatibility headers out there, in ...
4
votes
2answers
4k views

2D graphics with Direct3D

I'm trying to work with 2D graphics using Direct3D 9, but am not sure where to start. Right now I'm using a texture as the "draw buffer", and drawing that texture to screen. For the simplest things, ...
6
votes
2answers
1k views

Smooth terrain rendering

I'm trying to render a smooth terrain with Direct3D. I've got a 50*50 grid with all y values = 0, and a set of 3D points that indicate the location on the grid and depth or height of the "valley" or ...
3
votes
3answers
2k views

How do I plot individual pixels using the XNA APIs?

If I wanted to fill my game screen with individually coloured pixels, how would I do this? For example, if I wanted to write a 'game of life'-type game where each pixel was a cell, how would I ...
1
vote
1answer
618 views

Best API coverage for 2D game?

If one were to code a game for most versions of Windows, which API should be used? I know DirectDraw works from NT4 and up (although DirectDraw is emulated on NT4 with GDI). However, I am told ...
5
votes
4answers
401 views

Microsoft and media - using the new stuff

Over the past 5 or so years, Microsoft has released APIs / that is intended to replace older APIs: (2006) Direct3D10 (2009) Direct3D11 (2008) XAudio2 / deprecates DirectSound (2006) Windows Media ...
2
votes
1answer
1k views

DirectX Overlay - C# - Learning Curve

Greetings I've recently created some interest in Overlays for games. Examples can be Steam/Xfire which use these overlays ingame so the user can access their programs while being in a game. I love ...
14
votes
6answers
3k views

Modern Shader Book?

I'm interested in learning about Shaders: What are they, when/for what would I use them, and how to use them. (Specifically I'm interested in Water and Bloom effects, but I know close to 0 about ...
7
votes
2answers
2k views

Point Light Soft Shadows

How to implement soft shadows for omni directional (point) light. We use typical shadow mapping technique. Depth is rendered to texture cube and addresing is pretty simple then. Just using vector from ...
-2
votes
3answers
2k views

Developing 3D card game. Is C# good enough?

I was thinking of developing several rather simple card games in DirectX (3D), but I'm not sure if C# and XNA are powerfull enough for this. Perhaps the most appropriate question is: can you choose ...
3
votes
3answers
849 views

What do you need to know in C++ before starting to program with DirectX

I was wondering what do you need to know in C++ before starting to program with DirectX? I have only been programming in C++ (more for 2D games using SDL and learning the basics) for just over a ...
7
votes
4answers
5k views

What are the current books for DirectX (w/ focus on 3D)?

For OpenGL, the OpenGL SuperBible 5th edition was just released only a few months ago, and is considered a fantastic, highly rated book for not only learning OpenGL 3 (Part 1 of the book), but it also ...
3
votes
4answers
17k views

Starting programming in 3D with C++ [closed]

EDIT: There aren't sufficient enough tutorials for what I'm trying to do in Python, so I'm going to take my time and slowly build up my skills in C++. It's hard to trip and not land in a book of C++ ...
5
votes
2answers
1k views

What is the purpose of a Direct3D vertex layout?

This tutorial (msdn) gives a description of a vertex layout. This is an example of a input layout: D3D11_INPUT_ELEMENT_DESC layout[] = { { "POSITION", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 0, ...
2
votes
2answers
1k views

3D game special effects, fire, lightning, water, and ice

I'm working on a 3d game using OpenGL and would like to take it in a fantasy direction. Specifically I'm thinking of having magic with effects for fire, water, ice, and lightning. My problem is I ...
-5
votes
2answers
1k views

How to Make A Fast Graphics Engine? [closed]

Assuming I were to develop a graphics engine for a modern PC game that used only DirectX or OpenGL, which techniques could I use to make sure it ran quickly? Edit: I'm looking for any approaches ...
3
votes
6answers
2k views

What is the easiest and shortest way to draw a 2d line in c/c++?

I am fairly new to c/c++ but I do have experiance with directx and opengl with java and c#. My goal is to create a 2d game in c with under 2 pages of code. Most of what I have seen requires 3 pages of ...
6
votes
1answer
7k views

Importing a .x file to 3D Studio Max?

I've been googling this for a while and haven't been able to find anything (blenders importer does not work). How can I import a .x file to 3D Studio Max? There are heaps of resources in converting ...
3
votes
3answers
402 views

When to return a reference and when to return a copy?

I was looking at the d3dx math .h and noticed that a difference between the "+" and "+=" operators: D3DXVECTOR3& operator += ( CONST D3DXVECTOR3& ); D3DXVECTOR3 operator + ( CONST ...
8
votes
3answers
1k views

Very slow direct3D texture sampling

So I'm writing a small game using Direct3D 9 and I'm using multitexturing for the terrain. All I'm doing is sampling 3 textures and a blend map and getting the overall color from the three textures ...
6
votes
2answers
1k views

Looking for an example of glass with XNA or DirectX 9

Any good pointers on how to get the refractive look of glass? I'm looking to create a think piece of glass type of look, sort of the type that you'd have on bathroom shower doors.
11
votes
6answers
2k views

Does anyone write games in Delphi? [closed]

I am a very seasoned Delphi developer (over 12 years of experience not counting my Turbo Pascal experience) and was wondering does anyone write games in Delphi? I have seen DirectX API wrappers in ...
5
votes
2answers
636 views

XBOX + Xna != DirectX?

I'm a bit confused. The question is: when I'm developing a XNA game for Xbox (or Windows), is it possible to use DirectX (to make use of the GPU)? Or is everything getting calculated by the CPU? A ...
12
votes
2answers
4k views

How do I query available video memory using DirectX?

How do you query the amount of VRAM available when using DirectX?
5
votes
1answer
2k views

XNA or SlimDX (DirectX 10) for multitouch rhythm game simulator

I'm looking to develop a multitouch rhythm game in C#. It is aimed to be a simulator for an existing arcade game, similar to this: http://www.youtube.com/watch?v=TAiNNpA3wwg So far, I've decided on ...
8
votes
4answers
4k views

Any dirty/cheap, lightweight 3d engine, beginner friendly out there?

I got 2 questions, the 2nd is more some kind of opinion question. 1st question: Everybody heard of panda3d, OGRE and IrrLicht: they are great engines, with a lot of features. With OGRE you can do ...
3
votes
5answers
1k views

How do I convert DirectX's .X from binary encoding to text encoding and back

As far as I know, .X format can be text encoded and binary-encoded. I basically want to look into the model I'm playing with, get a better understanding of .X, possibly make some changes in it and ...
4
votes
2answers
3k views

DirectX Overlay

I have been a code in full convertion mods for the source engine, but now im mostly coding C# applications. That provide utilties for games, during this proccess i have often wanted the ability to do ...
5
votes
3answers
2k views

The pros and cons - DX9 moving to DX11 render?

We are a "nano" game dev company working on REFUSION. DX9 renderer is almost done and question is: Should we move it to DX11 or not? Anyone have experience with this? Here are some videos from dev ...
2
votes
2answers
670 views

Audio Design and XAudio2 Performance Issues

I have a very basic understanding of audio and was hoping I could get some help to resolve a problem with the audio design in my engine. Let me give you a run-down of how I've currently got it fitting ...
-4
votes
2answers
479 views

MeshTextureCoords element in DirectX .x file

What is the significance of MeshTextureCoords element in a .x Mesh file?
8
votes
6answers
4k views

Good example of a multi-pass effect?

In XNA (and Direct3D in general AFAIK), rather than creating individual vertex and fragment shaders, you bundle potentially many related shaders into 'Effects'. When you come to use an effect you ...
11
votes
8answers
17k views

Getting Started with 2d Game Dev (C++): DirectX or OpenGL? [closed]

So, i'm a student looking to get my foot in the door of game development and im looking to do something 2D, maybe a tetris/space invaders/something-with-a-little-mouse-interaction clone. I pointed ...
5
votes
2answers
1k views

How do I render my own DirectX Stuff to a full screen WPF's DirectX surface?

Basically Danny Varod seems to know as he posted it as an answer to this question: Display a Message Box over a Full Screen DirectX application I think, theoretically this might work, but I have no ...
16
votes
12answers
2k views

3D theory before graphics APIs? [closed]

I'm a software engineer and I'm hoping to move my career towards game development. I'm reading a book right now on 2D using C++/DirectX. When I get into 3D I know I want to do it correctly. For ...
21
votes
7answers
3k views

How to get PS3/Xbox 360 experience without having access to Dev kits?

I am a budding game programmer trying to get into the industry programming for PS3, Xbox 360. The main problem I see is the need to demonstrate my skills to a potential employer, but without access ...
3
votes
3answers
398 views

Any hints about the average renderstate changes per frame?

While answers will vary depending on the case, I'd love to hear about what people have seen in their past experiences. The question mainly relates to DirectX though if you have some numbers for any ...
2
votes
1answer
1k views

How to load a mesh from the .X-format in DirectX10 via SlimDX?

As of DirectX10, the usual functions to load a mesh in the .X-format are marked as deprecated and they are DX9 functions anyway. How can I load a mesh from the .X-format into an ID3DX10Mesh object ...
8
votes
3answers
1k views

Display a Message Box over a Full Screen DirectX application

In our custom assertion handler, I'd like to display a message box asking to see whether or not this failure can be ignored. However, when our DirectX game is full screen, I can't get the MessageBox ...
14
votes
7answers
2k views

For 2D games, is there any reason NOT to use a 3D API like Direct3D or OpenGL?

I've been out of hobby Game Development for quite a while now. Back when I did it, most people used Direct Draw to create 2D games. By the time I stopped people were saying OpenGL or Direct3D with ...