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)

-1
votes
1answer
26 views

Rendering structure

my question is "What is the best way to structure rendering code". Is it better to make a class with a render function that iterates through all game objects based on there name or type and have no ...
-2
votes
2answers
59 views

Can you use a struct instead of an array to hold vertices in directx?

So instead of using an array to hold vertices information use a struct instead. Is this possible, does the Idirect3dvertexbuffer allow it?
0
votes
1answer
59 views

Why DirectInput is not recommended?

I have read that the Windows messages are recommended way over DirectInput to control mouse and keyboard. From http://msdn.microsoft.com/en-us/library/windows/desktop/ee416842(v=vs.85).aspx The ...
-2
votes
0answers
20 views

Directx9 Moving a Character on a Terrain [closed]

I have a terrain generated with a Raw file and I want a character to move properly based on heighmaps. Any example ?
3
votes
2answers
66 views

Extract smaller frustum from camera frustum?

Background: I was thinking of implementing multiselection by performing a frustum culling on a sub-part of the screen. Problem: Given total screensize, a rectangle on the screen (pos, size), and ...
0
votes
0answers
26 views

DrawIndexedPrimitive bug

Hello I have problem with DrawIndexedPrimitive function. I create vertex buffer for each wall like that: 1----2 | | 3----4 I put 1,2,3,4, and then I create index buffer this way: short * ...
1
vote
1answer
82 views

How should I setup my minecraft-like world rendering for the best performance?

I want to know what technique will give me most fps in game. I have minecraft-like world and I need to display it. Now I have only one cube, created as VBO and if i need to display cube I just display ...
0
votes
0answers
44 views

Skeletal Animation in DirectX

A few weeks back I asked the following question: Are there alternatives to Vertex Tweening? I was pointed towards Skeletal Animation, or more specifically: Hardware Skinning. While I found quite some ...
-1
votes
0answers
19 views

XACT3 problem including the header

I am trying to include the xact3.h header file in a game project but i keep getting some errors related to mmreg.h #include <xact3.h> #include <Windows.h> 1>c:\program files\windows ...
1
vote
0answers
36 views

Why is my XInput gamepad press stamp not working?

I'm trying to add basic gamepad input to my c++ DirectX game but i'm having some trouble creating a press stamp (registers the press only the first time it's pressed if button held down). The entire ...
-2
votes
0answers
66 views

DirectX or Opengl? Good resources [closed]

I am attempting to learn DirectX 11 for game programming (In c++). I want to learn everything from the graphics pipeline and how to begin using DirectX11 to animating 3d graphics (such as characters) ...
1
vote
1answer
82 views

Texture Shaders vs. Pixel/Fragment Shaders?

My question is a simple one. Functionally, practically, and performance-wise, what are the differences between using a D3DX Texture Shader, and using a Pixel/Fragment Shader rendered with a full ...
-1
votes
0answers
117 views

c++ game programming course [closed]

Does some one know some good C++ Game programming course? I've tried lots of tutorial of OpenGL (3.3+). I've done simple games using opengl and glsl... but... game programming is another thing. ...
-1
votes
1answer
59 views

Are there any open-source Direct X code-bases that I can look at to learn from as a beginning Direct X and graphics programming student? [closed]

I'm a third-year university student and I've recently begun studying Direct X 11. Mostly I've been following the samples from the SDK and reading a lot out of the MSDN. Although I have a decent ...
0
votes
1answer
40 views

PIX and Metro apps

I would like to use Pix on a Metro (Win 8) app. However, Pix wants the path to the application, something that Metro apps don't have. Has anybody been able to get Pix working with Metro?
6
votes
2answers
156 views

In DirectX 11, batching primitives for performance, how does this actually work?

I don't seem to be able to understand this. Microsoft says that one of the possible optimizations of for a Direct3D 11 if to batch primitives draw calls. For example in order to draw say 300 triangles ...
1
vote
1answer
80 views

Can not enable IME to capture Chinese characters in SharpDX

Just found that direct integration of IME is blocked in Windows 8, moving on to TSF now. By now, there is lack of Microsoft's Document about TSF, this will be hard. I am using SharpDX and the ...
-1
votes
0answers
90 views

2D scrolling background sprite, Direct X, and C++

Here is a quick rundown of my problem. I am trying to make a 2D scrolling shooter, using a sprite to render the background. This works fine by itself, it has the scrolling effect I am looking for. The ...
-2
votes
0answers
76 views

How do I learn to develop a Direct2D application in SlimDX using C# [closed]

I'm an intermediate web developer who is experienced with C# and I am looking into becoming a game developer and designer. I have decided that I want to develop a simple 2D RPG. I'm having a hard ...
-9
votes
0answers
54 views

Where I can get dinosaurs meshes? [closed]

I´m starting Computer Science in the University and I'm developing a simulation of Jurassic Park, and I need to find dinosaurs and plants meshes for the graphic engine, so i was looking for it but i ...
-3
votes
1answer
152 views

Which should I learn: DirectX or XNA? [closed]

I've worked with the Microsoft Foundation Classes(MFC) and now I want to enter the world of game development.But should I start with directX or XNA? I'm hesitant towards DirectX because I feel it ...
0
votes
1answer
119 views

Render just the pixel under mouse cursor in DirectX

I'm having difficulties rendering just a single pixel which is on the defined coords of viewport. I'm using D3DXMatrixPerspectiveOffCenter function, but the result is not what I expected. Here is ...
1
vote
2answers
99 views

DirectX How to Gernerate Vertices for Diamond Shape and Render it?

How to generate vertices for 3D Diamond Shape in DirectX? EDIT: I am creating an application which receive DIAMETER, CROWN, GIRDLE and PAVILION as parameter and render a model of diamond according to ...
3
votes
2answers
64 views

using DirectX to generate a sprite sheet

I am building a site in HTML5 for my client and it must run on the iPad/iPhone (i.e. Safari on iOS). They want a 3D effect where they have a simple, yet, specific product they want to show on the ...
-1
votes
1answer
61 views

simple win32 window wont show [closed]

The program compiles and runs successfully but does not show a window, it simply ends immediately. #include <Windows.h> LRESULT CALLBACK WndProc( HWND hwnd, UINT message, WPARAM wParam, ...
0
votes
1answer
38 views

Sprite rotation and question about sampler state

I'm not an expert in creating game engines, but I'm doing fine for now. Recently I reached a point that I couldn't solve any of my problems. I have two questions: I'm using ...
-2
votes
1answer
45 views

How to use D3DXIntersectTri function to find intersected point?

How to calculate direction for D3DXIntersectTri function to find intersected point? And after getting the result in Distance how to get that coordinate(XYZ)?
1
vote
1answer
72 views

Passing multiple colors to a pixel shader in DirectX

I have a pixel shader that sets the output color based on the interaction of an input texture, sort of like: if (case1) { output.Color = float4(0, 0, 0, 0); } else if (case2) { output.Color = ...
0
votes
0answers
34 views

Best approach to depth streaming via existing codec

I'm working on a development system (and game) intended for games set mostly in static third-person views. We produce our scenery by CG and photographic techniques. Our background art is rendered ...
0
votes
0answers
59 views

Can't Load Shaders [closed]

I have a Windows Phone 8 XAML with DirectX project. I have written some code to load textures and shaders to simulate a particle system. The particles render to the DrawingSurface XAML control. ...
0
votes
1answer
109 views

Rendering a simple game and multiple simple geometry [closed]

For a while I have been looking to create a simple 2D game, but I have been lacking in time to create such a thing, recently I have had more time to purse that. I have been working my way though some ...
0
votes
1answer
153 views

How do I implement my old OpenGL-based gfx_render_triangle_list using DX11?

I am working at a game that has lots of procedural content. I had built a game engine using OpenGL that handles everything needed for creating a basic 2D game, sprites, primitives, blending, polygons ...
0
votes
0answers
43 views

DirectX9 toggling display problem

How can I reset a render target? I am trying to toggle between fullscreen mode and windowed mode but without success. I've tried all the possible combinations in the code below. I am rendering to a ...
0
votes
1answer
87 views

Latency difference between DirectSound and XAudio2

As far as I understand the WDM, DirectSound drivers cannot be hardware accelerated on Windows Vista and newer. Is XAudio2 affected as well? Or in other terms: in latency terms is it definitely better ...
0
votes
2answers
101 views

D3DXCreateEffect Performance

Current performance analysis shows that D3DXCreateEffect is called many times with different shaders. Between each call, the D3DCompile DLL is being loaded and unloaded. Is there an easy way to keep ...
2
votes
1answer
59 views

Emulate border color texture address mode efficiently

In WinRT the border color texture address mode is not supported. The best I came up with in emulating the border address mode, is doing this in my pixel shader: float4 tcol = tex.Sample(texSampler, ...
-1
votes
1answer
97 views

How to Render Cylinder with built in function D3DXCreateCylinder in Directx9 with Delphi-Xe2 and JEDI? [closed]

I'm new to Directx and i want to render Cylinder using "D3DXCreateCylinder" function. I using Delphi Xe2 and JEDI for DirectX9.
2
votes
1answer
153 views

Rotation matrix from OpenGL to DirectX

I have an application which uses openGL and i have to port it to DirectX. To sum up my issue : How can I port rotation matrix based on a right-handed coordinate system to a left-handed coordinate ...
1
vote
2answers
260 views

Camera frustum calculation coming out wrong

I'm trying to calculate a view/projection/bounding frustum for the 6 directions of a point light and I'm having trouble with the views pointing along the Y axis. Our game uses a right-handed, Y-up ...
0
votes
2answers
195 views

Using DirectX9 within Visual Studio 2012 in Windows 8?

Asking the question here simply because my PC is down for the count for a while and wasn't able to stave a curiosity before that happened. I picked up a few books about programming Games in DirectX, ...
-4
votes
1answer
77 views

My 2d Shader in XNA falls apart the second I put it into Farseer [closed]

I wrote a simple light shader that I tested in a simple 2d spaceship shooter and it worked fine. Once I imported it into my friend's farseer project with rotatable shapes, it doesn't seem to work ...
0
votes
0answers
61 views

Getting Started with a Custom .X file Importer/Loader

I'm building my own C++ DirectX game/engine and I've noticed that .X is no longer really supported past DX9 and I've been looking into converting my 3D model files, .X, .3ds, .COLLADA into binary dump ...
0
votes
1answer
123 views

How do I create a camera for a strategy game?

How do I make a camera for a strategy game? Think something in the style of Warcraft 3, so you can lower the camera angel and view the world in a somewhat 3D format. Do I need to have some coordinate ...
1
vote
2answers
117 views

One or multiple VertexBuffers

I'm currently working on a personal project where I'm trying to load the levels and all of the geometry from the game "Medal of Honor Allied Assault" into my own C# code-base based on SharpDX. I ...
2
votes
2answers
218 views

Implementing multithreaded loading screens

Ok, I have fairly little multi-threading experience, but i have done a similar thing before without issue...but this has me stumped. This is in C++, Directx9 Visual Studio... My game basically runs ...
2
votes
1answer
127 views

How do I improve terrain rendering batch counts using DirectX?

We have determined that our terrain rendering system needs some work to minimize the number of batches being transferred to the GPU in order to improve performance. I'm looking for suggestions on how ...
2
votes
0answers
78 views

Geometry shaders on Surface RT

Can anyone tell me if geometry shaders are supported on the Microsoft Surface RT? On one hand, MSDN makes it sound like the Surface RT supports only feature level 9_1, and geometry shaders are only ...
0
votes
0answers
146 views

Game Institute courses - DirectX version used? (SOLVED)

Which DirectX version is being covered in their game programming course? Anyone who has been through these courses can please tell me? thanks! EDIT: Support contacted me back, they still use DX9.
0
votes
0answers
166 views

How can I render multiple windows with DirectX 9 in C++?

I'm trying to render multiple windows, using DirectX 9 and swap chains, but even though I create 2 windows, I only see the first one that I've created. My RendererDX9 header is this: #include ...
2
votes
2answers
172 views

Why does matrix multiplication lead to different result if it's done on CPU, compared to GPU(shader)?

If I'm calculating a "camera space" on the CPU, by multiplying the view with the projection matrix on the CPU , and afterwards multiplying the world to the result my vertices do not pass to the pixel ...

1 2 3 4 5 9