Questions tagged [directx]
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.
1,075 questions
-5
votes
2
answers
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
6
answers
5k
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
1
answer
10k
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
3
answers
3k
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:
...
9
votes
3
answers
3k
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
2
answers
2k
views
How to render 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.
13
votes
6
answers
7k
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
2
answers
698
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 ...
18
votes
2
answers
9k
views
How do I query available video memory using DirectX?
How do you query the amount of VRAM available when using DirectX?
5
votes
1
answer
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 ...
5
votes
5
answers
3k
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 ...
6
votes
2
answers
5k
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
3
answers
4k
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
2
answers
2k
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
2
answers
671
views
MeshTextureCoords element in DirectX .x file
What is the significance of MeshTextureCoords element in a .x Mesh file?
9
votes
6
answers
6k
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 ...
12
votes
8
answers
25k
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 ...
6
votes
2
answers
2k
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 ...
19
votes
12
answers
3k
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 ...
24
votes
7
answers
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
3
answers
524
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
1
answer
2k
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 ...
8
votes
3
answers
3k
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 ...
20
votes
7
answers
7k
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 ...
13
votes
5
answers
2k
views
API agnostic bridges (ie. OpenGL/D3D/Whatever). Do you use them, how you make them. Pro's and Con's [closed]
You are making a 3d engine. You want best of multiplatform worlds. Suddenly you realize that if you want to use Direct3D on Windows machines and OpenGL on OSX/Linux, you'll have to sacrifice supported ...