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
2answers
582 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
2answers
257 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 ...
4
votes
1answer
283 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 ...
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
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
1answer
482 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. ...
-1
votes
1answer
108 views
DirectX UV Coordinates not responding?
My UV coordinates never respond to me for some reason. It is just UV mapping itself in the smallest way possible. It's a tile-able texture and the program is subdividing so much I can't even zoom in ...
-1
votes
1answer
621 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
votes
1answer
886 views
loading images to the backbuffer / direct3d / c++
i think i just found the solution. 1) the problem is that backbuffer surface and source surface are of different formats - that is why exception was thrown. 2) the image path needed double slash ...
2
votes
0answers
77 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 ...
2
votes
0answers
378 views
2D Line drawing with Pixel Shaders
Recently I asked a question, what is the fastest way to render 2D lines using DirectX, and one of the answers mentioned this paper on Fast Prefiltered Lines which uses Pixel Shaders to accomplish ...
2
votes
0answers
233 views
Where is the Shader Designer?
I have VS2012 Ultimate and I've been trying to access (find) the Shader Designer. I searched through MSDN's text and Channel9's videos, but they keep failing to mention how to access it...
Can ...
2
votes
0answers
142 views
Flickering problem with world matrix
I do have a pretty wierd problem today.
As soon as I try to change my translation- or rotationmatrix for an object to something else than (0,0,0), the object starts to flicker (scaling works fine). It ...
2
votes
0answers
461 views
Problem of tearing in Slimdx and DirectShow video
I have written a video player using SlimDX and DirectShow which is displaying the video on a SlimDX texture.
I am extracting the video frames using the ISampleGrabberCB interface from DirectShow and ...
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 ...
1
vote
0answers
106 views
Converting Animation data from Maya to DirectX in C++
I am currently trying to export an animation from Maya and import to a program I am working on. One of the problems I currently have is that when imported, the mesh and animation data looks reversed ...
1
vote
0answers
87 views
DirectX Effects Framework alternative
Now that the DirectX Effects framework has been axed, are there any other similar frameworks out there ? I now there's Nvidia CGFX, but does that work with the latest DirectX versions ? I'd rather not ...
1
vote
0answers
67 views
Does the feature level affect multisampling?
I'm using DirectX 11 with the feature level 9_3 even though my computer could run 11_0, but I want to support older hardware as well.
I'm using CheckMultisampleQualityLevels to check whether multi ...
1
vote
0answers
31 views
resizing directx control so that more of my object's environment is visible
I'm very new in 3D. I have a DirectX control which I want to be able to resize. A 3D object is shown in the control. On resize, I would like that object to stay the same size, only more of its ...
1
vote
0answers
477 views
Black Screen: How to set Projection/View Matrix
I have a Windows Phone 8 C#/XAML with DirectX component project. I'm rendering some particles, but each particle is a rectangle versus a square (as I've set the vertices to be positions equally offset ...
1
vote
0answers
154 views
Obtaining a HBITMAP/HICON from D2D Bitmap
Is there any way to obtain a HBITMAP or HICON from a ID2D1Bitmap* using Direct2D?
I am using the following function to load a bitmap:
...
1
vote
0answers
267 views
Managing many draw calls for dynamic objects
We are developing a game (cross-platform) using Irrlicht. The game has many (around 200 - 500) dynamic objects flying around during the game. Most of these objects are static mesh and build from 20 - ...
1
vote
0answers
188 views
Framework to implement an in game gui editor
I need to do an in game gui editor. The game engine has his own widgets elements and I don't want a gui library that substitute it.
The most difficult task is the implementation of the functionality ...
1
vote
0answers
148 views
Rendering transparent textures in directX
I am working with a directX application with WPF, I am facing a problem with videos and images that contains transparent pixels, I have to draw a color in background an then a video/image over it. ...
1
vote
0answers
164 views
Smooth Camera Offsets
I am attempting to implement a sort of, smooth camera that has angle offsets from the player as they turn, creating a cinematic effect as well as visual feedback for when the player turns.
Here is an ...
1
vote
0answers
1k views
Directshow VMR9 Allocator presenter present image problem
I am working with DirectShow for video playback and trying to get the video displayed on a D3D9 texture via SlimDX. I am using IVMRSurfaceAllocator9, IVMRImagePresenter9 for getting a surface from the ...
1
vote
0answers
239 views
GetRasterStatus usage in direct3d
I am interested if anyone has had used GetrasterStatus in direct3d application to control application vsync behaviour in high precision timing? What set of techniques are to be implemented to do 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 * ...
0
votes
0answers
43 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 ...
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
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
0answers
60 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
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 ...
0
votes
0answers
39 views
FillOpacityMask() not working
I'm attempting to use a Direct2D feature called an opacity mask where the alpha values from one PNG image are used to determine the transparency of another image:
...
0
votes
0answers
111 views
rendering minimap from large bitmap
I'm trying to create a minimap for my game but am having an issue.
I'm using Direct2D as the graphics API and have a ID2D1Bitmap* which contains the pixel data for the loaded area of the world.
I'd ...
0
votes
0answers
75 views
AdaptiveTessellationCS40 DXSDK sample issue
I'm trying to implement adaptive tessellation on pre-DX11 hardware. As a start I played a little with AdaptiveTessellationCS40 sample from DirectX SDK. Instead of .obj mesh I put a simple surface ...
0
votes
0answers
138 views
How export .xsi or .x files from maya 2013
Is it possible to export a Maya 2013 scene as a .x or a .xsi file? i have no animations on this scene, its just a fancy cube?
I need to then convert this to a .mdx file?
Ive goggled this but there ...
0
votes
0answers
110 views
Drawing of a huge model - How to regain performance?
I have a huge model I want to draw in my XNA application but because of its size I am experiencing a tremendous loss of performance.
The model has about ~50 000 000 edges and has a size on disk of ...
0
votes
0answers
73 views
record and replay directinput events
I am trying to build a record and replay system for a couple of games. I was wondering if I can make a general replay engine using directinput rather than doing an specific implementation for each ...
0
votes
0answers
157 views
Animation exporting from Maya to DirectX environment
I'm working on a model/animation Maya exporter for a game I'm working on. I used a very simple animated box mesh with four joints at first to make sure everything works, and got it running relatively ...
0
votes
0answers
195 views
DirectX/OpenGL materials -> Blender materials?
I'm writing an importer for a format with standard DirectX materials.
The material values are:
diffuse - r,g,b,a (floats)
ambient - r,g,b,a (floats)
specular - r,g,b,a (floats)
emissive ...
0
votes
0answers
97 views
Direct X Vertex Coloring
So I've been messing around with directx 9 for the past few days, and I recently bump in a simple problem of vertex coloring. Can someone here with directx9 expirience solve this problem? I would ...
0
votes
0answers
83 views
How to get warnings when compiling fx files
When I compile DirectX shaders (.fx files), I dont see any compiler warnings unless there was an error in the effect.
This happens both when using the offline FXC compiler, as well as calling ...
0
votes
0answers
211 views
Differences in cg shader code for OpenGL vs. for DirectX?
I have been trying to use an existing library that automatically generates shaders (Hydrax plugin for Ogre3D).
These shaders are used to render water and somewhat involved, but are not extremely ...
0
votes
0answers
130 views
Setting a Direct3D world matrix by an array
Outside of the DirectX class I have objects that hold their own transform matrix (this is calculated every frame by the physics system) held in a linear array of floats
//rotation Mat|Position
[m0, ...
0
votes
0answers
366 views
Anti-aliasing with Direct2D and Direct3D Interoperability
I am trying to create a CAD drafting application that uses Direct2D to draw all the 2D graphics and uses Direct3D for all the 3D graphics like engine or machine etc.
I am using Direct2D and Direct3D ...
0
votes
0answers
438 views
Loading a sub resource for a texture array
I've been trying to load textures into a texture array, but I've hit a wall with my knowledge of subresources. Any time I try loading the data, I just get junk as output. The code below is only set ...
-1
votes
0answers
18 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
votes
0answers
87 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 ...
