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)

0
votes
1answer
379 views

Why can't I create direct3d objects?

I've been programming professionally for years using languages like VBScript, JavaScript, and C#. As a hobby, I'm getting into some c/c++ and games programming with DirectX. I am running into an ...
2
votes
3answers
607 views

Publishing a game — any way to target both WP7 and Win8 Store?

I'm at a dilemma which seems should soon become an important issue for a lot of developers. If I build a game in XNA, I won't be able to publish it on the Windows 8 Store, as it would be a classic ...
4
votes
1answer
269 views

Is it possible to programmatically prevent a game from pausing when its window loses focus? [closed]

I'm playing Skyrim in windowed mode and I am trying to create a bot for this game for personal use. I would like to have the bot play the game in the background, while I do other things, the only ...
6
votes
1answer
1k views

Difference between the terms Material & Effect

I'm making an effect system right now (I think, because it may be a material system... or both!). The effects system follows the common (e.g. COLLADA, DirectX) effect framework abstraction of Effects ...
5
votes
3answers
1k views

How do I Fallback to Older DirectX Versions?

I had a feeling that it would be easier to tackle this problem before I got too deep into development (unless, of course if that's a bad idea/the hard way, please inform me...). I'm creating my game ...
3
votes
2answers
2k views

How do I convert matrices intended for OpenGL to be compatible for DirectX?

I have finished working through the book "Game Physics Engine Development 2nd Ed" by Millington, and have got it working, but I want to adapt it to work with DirectX. I understand that D3D9+ has the ...
3
votes
1answer
4k views

How can I load .FBX files?

I am looking into options for the model assets for my game. I have gotten pretty good with Blender, and want to use C++/DirectX9 (don't need all the excess from 10+), but Blender 2.6 exports .fbx not ...
4
votes
1answer
273 views

What is the purpose of mesh optimization functions?

I remember there is a specific function in Direct3D which optimizes a mesh or a 3D object in some way. What is the purpose of this function? How does it reorganize vertices to make it better?
3
votes
1answer
790 views

Improving the efficiency of frustum culling

I've got some code which performs frustum culling. However, this defines the "frustum" way too broadly- when I have ~10 objects on screen, the code returns 42 objects to be rendered. I've tried taking ...
2
votes
2answers
290 views

Do unused vertices in a 3D object affect performance?

For my game I need to generate a mesh dynamically. Now I'm wondering does it have a noticeable affect in FPS if I allocate more vertices than what I'm actually using or not? and does it matter if I'm ...
4
votes
3answers
801 views

CUDA 4.1 Particle Update

I'm using CUDA 4.1 to parse in the update of my Particle system that I've made with DirectX 10. So far, my update method for the particle systems is 1 line of code within a for loop that makes each ...
1
vote
2answers
1k views

XNA 4.0 Point Vertex Rendering

I have a buffer of about 134 million particles and a very powerful computer to render them smoothly, but I am getting an error when trying to render them as primitive lines. It says that I cannot ...
3
votes
1answer
2k views

How is constant buffer allocation handled in DX11?

I'm starting with DX11 and I'm not sure if I'm doing the things right. I want to have both pixel and vertex shader program in one file. Both use some shared and some different constant buffers. So it ...
3
votes
1answer
359 views

Frustum culling with an octree: one AABB per bone or one AABB per object?

I've constructed an octree for use in frustum culling. The question is, should I insert an AABB for each bone of each object, or just the one AABB for the object?
2
votes
1answer
968 views

Why does my ID3DXSprite appear to be incorrectly scaled?

I am using D3D9 for rendering some simple things (a movie) as the backmost layer, then on top of that some text messages, and now wanted to add some buttons to that. Before adding the buttons ...
1
vote
3answers
4k views

Should I go with OpenGL to see my future in Game Development industry? [duplicate]

Possible Duplicate: Should I continue studying OpenGL or just switch to DirectX to give me a better chance of landing a job in the game industry? I tried Google but found quite old ...
10
votes
3answers
688 views

Is there any advantage in using DX10/11 for a 2D game?

I'm not entirely familiar with the feature set introduced by DX10/11 class hardware. I'm vaguely familiar with the new stages added to the programmable graphics pipeline, such as the geometry shader, ...
3
votes
1answer
269 views

Preventing banding textures in DirectX

I have a 3D scene that I've tried rendering in Direct3D 10 and using WPF's 3D framework. Obviously, going directly to Direct3D is producing far better performance but I am getting banding which ...
4
votes
1answer
295 views

ID3D Query Where should I put them?

I'm currently trying to time different parts of my rendering to see how long it takes. I've got the queries working and I'm getting some results. My question is where should I actually start and end ...
5
votes
1answer
407 views

Directx11 / Tessellation

What is so special about directx 11's dynamic tessellation? Can't it be implemented by hand, and just render geometry tessellated by your own code using older versions of directx? What are the ...
1
vote
1answer
180 views

Render TIny.x bones in Direcx 9

I would like to render the bones of the Tiny.x animated mesh. I know there are 35 bones, and I know their names, but I'm having trouble with each bone's matrix. Do I need to convert the matrix with ...
2
votes
3answers
1k views

Tutorials for Managed DirectX development? [closed]

Are there any good tutorials, for someone new to DirectX development? I'd like to use the SharpDX library in a project, but am completely new to this sort of graphics programming. I'm looking for a ...
2
votes
1answer
363 views

Ogre 3D Visibility Advice

I would like an advice about some real-time rendering optimization. I'm rendering a BSP level, by only using the mesh, textures, entities, and lightmaps, not using VIS at all. I'm trying to make my ...
3
votes
3answers
671 views

DirectCompute information

I've been trying to make use of the GPU as part of a project of mine. I've looked into both CUDA and OpenCL, but the lack of information showing you how to introduce these into a project is shocking. ...
0
votes
2answers
383 views

Which are the most complete DirectX game or technical demo with source available

I have found plenty of games with source for OpenGl, but so far I haven't found anything like that for DirectX. There are plenty of examples in the SDK, but they are very basic and usually they just ...
3
votes
1answer
3k views

How do I create a decal system?

I'm currently given the task to design & create a simple decal-system in C++/DirectX. Does anybody know a great tutorial, article or paper to start with? (Especially the part about 2D-texture to ...
0
votes
2answers
5k views

Forcing a game to use Direct3D WARP

I am making a study for a research project that involves measuring the performance and quality impact of rendering 3d games using a software rasterizer (like WARP). I wonder if there is a way to ...
0
votes
3answers
1k views

For learning purposes only, is creating a game engine or using one such as Unity3D or UDK better?

Alright, let me start off by saying this: I've seen multiple threads comparing creating custom game engines to already created game engines such as Unity3D or UDK, but none of the threads I've found ...
3
votes
1answer
447 views

Learning to code first game, few questions on basic game development and 3D

I've been programming for a while, and I'm concurrently learning how to make a basic game and slimdx, and wanted to talk to someone to hopefully get a few pointers. I've read that Tetris is the ...
16
votes
2answers
508 views

Coding for a really, really high-resolution display array

I've been tasked with building a real time "full screen" demo to run on a 5x2 array of 60+ inch LED TVs: or, in other words, a 20 megapixel display. We've got a machine built that can run a single ...
5
votes
3answers
1k views

Multiple render targets and gamma correctness in Direct3D9

Let's say in a deferred renderer when building your G-Buffer you're going to render texture color, normals, depth and whatever else to your multiple render targets at once. Now if you want to have a ...
0
votes
1answer
1k views

Why might render target in DirectX9 fail to work?

I'm trying to render to a texture, but nothing is being drawn. Everything before SetRenderTarget is rendered properly, everything after second SetRenderTarget is visible on the screen. Just the part ...
1
vote
3answers
901 views

DirectX — Best version to develop for? [duplicate]

Possible Duplicate: learning Direct3D 9, 10 or 11? I'm just starting to learn DirectX, and I was wondering what the best version would be best to develop for. I'm trying DirectX 9 right ...
4
votes
1answer
115 views

Capturing a programs performance

I'm trying to capture the performance of the GPU, CPU, FPS and memory usage on a program I'm currently working with and want to avoid having to write my own performance capture stuff. Does anyone know ...
2
votes
2answers
2k views

2D overlays in 3D environments

For a 2D overlay in a 3D environment using DirectX, is the 2D overlay still coded as a surface in 3d always positioned in front of the camera? I haven't tried this yet but I imagine that technique ...
1
vote
1answer
1k views

where have the shape drawing functions gone in DirectX10?

such as the CreateTeapot function - http://msdn.microsoft.com/en-us/library/windows/desktop/bb172798(v=vs.85).aspx Is there an equivalent in DX10? If so, how do I use it? In DX9 you.. Declared: ...
5
votes
1answer
10k views

How do I integrate bullet physics into my game?

I downloaded the release file found here, but I'm just not sure where to start. In my game I have a number of oblongs and a sphere, I want all of these to collide with one another. (They all have ...
1
vote
1answer
700 views

what is the absolute simplest way to add physics to a simple 3D game

This physics does not have to be very complex at all. There are a number of rectangles and one ball, all of which have the appropriate bounding volumes constrained to them, it would be great if the ...
3
votes
3answers
2k views

simplest way of making a sphere roll in a realistic way

rather than just moving a sphere across a plane, I want to make it roll like a ball. What is the simplest way of doing this? I assume it will have something to do with the circumference of the ball ...
5
votes
2answers
5k views

Is using SharpDX or SlimDX easier than using DirectX directly from C++? [closed]

I decided to learn to program in DirectX yesterday, and, not being a huge C++ fanatic, went looking for a .Net wrapper. After reading about SlimDX and SharpDX, I decided I liked what the SharpDX ...
2
votes
2answers
2k views

How do I draw 2D textures with Direct3D 11.1?

I'm running into trouble trying to figure out the best way to draw textures to the screen using Directx 11.1 (for Metro apps). In XNA, I used SpriteBatch. Is there something partially comperable? In ...
3
votes
2answers
6k views

How can I check for Shader Model 3 support?

Currently I am working on a 3D visualization app. A requirement of my app is that host's graphics card supports Shader Model 3. How can I check for Shader Model 3 support? I know that these versions ...
5
votes
2answers
3k views

Why can't I get a bool packed and aligned into a D3D constant buffer?

Alright, I'm having a hard time getting a bool packed and aligned into a hlsl constant buffer and I'm not sure why. Here is the buffer in hlsl cbuffer MaterialBuffer : register(b1) { float3 ...
-1
votes
1answer
1k views

Vector Graphics in DirectX

I'm curious as to people's thoughts on the best way to use vector graphics in a directX game instead of rasterized textures(think Super Meat Boy). I want to remain resolution independent and don't ...
1
vote
1answer
718 views

Determine the stride of a DirectX Texture2D line?

Is there a way to determine, or preferably calculate/predict, the the stride of a line of a DirectX 11 Texture2D resource when using SharpDX? (E.g. Can we say the stride of a line is always a power ...
1
vote
1answer
506 views

How can I extend this graphics code to draw more vectors of vertices?

I want to include the drawing of other vectors of vertices in the following code, in a number of places it seems easy enough to simply add or multiply size()s of the two vectors, for instance in the ...
5
votes
3answers
6k views

Should I use Game Engines to learn to make 3D games? [closed]

HI i am a software engineering student in his second-last year. I am proficient with C,C++,C# and java programming languages, and being a student of engineering I have studied calculus, vectors etc ...
2
votes
4answers
11k views

Value of the Game Institute Courses [closed]

I'm considering purchasing courses from Game Institute, specifically, the Foundation Studies Package. Has anyone here taken their courses? If so, do you feel they are a good value? If you can, please ...
1
vote
1answer
667 views

A comparison of graphics libraries and their respective programming languages [closed]

A comparison of graphics libraries and their respective programming languages. A.K.A. "Which do I pick? With a twist." I'm a long time professional programmer who never gave up on programming as a ...
0
votes
1answer
125 views

vector.size() instead of literal type breaking my draw code

I'm writing a simple class to draw all the debugging lines I have in my scene at once. The code in the draw loop is this so far: (If I put for example, 2 instead of temporary2DVerts.size() where I ...