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.
2
votes
1answer
51 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 ...
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 ...
2
votes
1answer
481 views
Reading from a staging 2D texture array in DirectX10
I have a DX10 program, where I create an array of 3 16x16 textures, then map, read, and unmap each subresource in turn. I use a single mip level, set resource usage to staging and CPU access to read. ...
3
votes
1answer
508 views
In HLSL pixel shader , why is SV_POSITION different to other semantics?
In my HLSL pixel shader, SV_POSITION seems to have different values to any other semantic I use. I don't understand why this is. Can you please explain it?
For example, I am using a triangle with the ...
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
78 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
40 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
17 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 ...
2
votes
2answers
581 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 ...
1
vote
0answers
35 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
65 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
115 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?
0
votes
1answer
147 views
Making a point light follow the camera
I'm applying phong shading onto a single giant triangle, and I'd like the light's coordinates to coincide with the camera's coordinates in 3D space. In order to do this, whenever I update the camera's ...
1
vote
1answer
78 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 ...
2
votes
1answer
124 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 ...
1
vote
2answers
256 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 ...
6
votes
2answers
140 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 ...
4
votes
1answer
282 views
Zooming into Mouse Position
I'm trying to implement my camera class for a simulation. But I cant figure out how to zoom into my world based on the mouse position. I mean the object under the mouse cursor should remain at the ...
0
votes
1answer
118 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
votes
0answers
86 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
71 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
53 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 ...
2
votes
1answer
159 views
DirectX11 CreateWICTextureFromMemory Using PNG
I've currently got textures loading using CreateWICTextureFromFile however I'd like a little more control over it, and I'd like to store images in their byte form in a resource loader. Below is just ...
1
vote
1answer
236 views
How would I get this to UV map correctly?
Alright so I have my code to draw out a big landscape using C++ and DirectX. I had it textured with one texture and then needed to add more. I saw people doing it where they had 1 texture image and ...
1
vote
2answers
98 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
vote
2answers
115 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 ...
-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
36 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 ...
9
votes
3answers
871 views
Pixel-perfect rendering to a rendertarget with a fullscreen quad
I have some trouble rendering a bunch of values to a rendertarget. The values never end up in the exact range I want them to. Basically I use a fullscreen quad and a pixel shader to render to my ...
-2
votes
1answer
43 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
71 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
2answers
187 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, ...
-1
votes
1answer
94 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.
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
58 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
108 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
148 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
41 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
2answers
99 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 ...
8
votes
2answers
220 views
Managing graphic state and components?
I often tend to do a lot of premature optimazation when dealing with graphics. There are a few principles I always try to follow:
Keep the number of D3D components to a minimum. (Render states, ...
0
votes
1answer
85 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 ...
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, ...
9
votes
3answers
854 views
Fastest way to render lines with AA, varying thickness in DirectX
So I'm doing some DirectX development, using SharpDX under .NET to be exact (but DirectX/C++ API solutions are applicable). I'm looking for the fastest way to render lines in an orthogonal projection ...
3
votes
2answers
774 views
How to fix issue with my 3D first person camera? [closed]
My camera moves and rotates, but relative to the worlds origin, instead of the players. I am having difficulty rotating the camera and then translating the camera in the direction relative to the ...
-4
votes
1answer
70 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 ...

