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.
0
votes
1answer
26 views
Cannot enable 4X MSAA Anti-Aliasing in DirectX 11
I am currently learning how to use DirectX11 but I am unable to use 4X MSAA. Here is my code (Since I'm just learning I haven't used any headers or classes, sorry for the messy code) If anybody can ...
0
votes
0answers
22 views
DX12 Domain Shader texture mapping using WRAP despite setting CLAMP on AMD hardware
My application works fine on my NVidia GTX 960, but my AMD Radeon R9 380 is incorrectly setting the address mode to WRAP, despite setting it as CLAMP in my application. This totally caught me off ...
0
votes
1answer
25 views
What compatibility checks should i do while creating Direct3D device, swap chain etc
I've done DirectX apps for 1.5 years now, mainly to teach myself but now i would like to make games for public. So i was wondering would it work for others just leaving the values default ie. swap ...
1
vote
0answers
21 views
Automated animation retargeting
I am currently developing a video game using my own game engine I develop at the same time. While making a good progress in the past months, I am currently stuck. I assume I only miss a minor thing, ...
1
vote
2answers
67 views
How to read rendered textures back without killing performance
I have an application where I need to render some OpenGL based dlls, read the rendered textures back, and send them to another directx based application that will render them in directx.
Right now, I ...
0
votes
1answer
27 views
Why do I get this error about DllMain when using D3D from within a DLL?
I am trying to create a Dll that will handle all my rendering, I am trying to initialize Direct X but I am getting the following error message:
DXGI ERROR: CreateDXGIFactory cannot be called from ...
0
votes
2answers
36 views
How to copy FrontBuffer to BackBuffer in DirectX11
I want to render the surface base on the the last surface.
So I try to copy FrontBuffer to BackBuffer, but not work:
//Get the BackBuffer(it will be FrontBuffer after SwapChain swapped the BackBuffer ...
0
votes
2answers
68 views
Shadow mapping too slow and ugly! [closed]
As many of you are, I am working on a game.
I have just added my first attempt at shadow mapping (standard variation) and quite frankly I am very disappointed.
I am literally squeezing as much out ...
0
votes
0answers
26 views
How to Copy the Contents of a DirectX Stream-Output Buffer to a Vertex Buffer?
I'm writing a very simple particle system in DirectX using the SharpDX wrapper. I use a constant buffer to pass a delta time to the vertex shader, which updates the position of the particles by simply ...
1
vote
1answer
37 views
DirecX 11 R8G8B8 24bit format without alpha channel?
This is maybe a stupid question but I can't seem to find texture format for simple 24bit R8G8B8? There is only 32bit R8G8B8A8, but some of my textures don't have alpha channel.
Is there any way to do ...
2
votes
0answers
25 views
Problem Rendering a Wireframe Cube and Grid with DirectX 11
I am trying to draw a 3D Wireframe (just the lines that connect each vertex) Cube and a 10x10 grid with D3D11. So far, this is my code
//************************************************************
//...
1
vote
0answers
25 views
Controllable color blending?
I'm relatively new to color blending in DirectX, and I'm hoping there is a relatively simple answer to this question. I am targeting Direct10.1.
What I am trying to achieve is colour blending of two ...
1
vote
1answer
45 views
Texture mapping artifacts on certain surfaces
I am currently working on a 3d game engine, but am complete stumped on a problem involving texture rendering. Here is the rundown.
My game engine renders meshes of the OBJ wavefront type. I have ...
1
vote
0answers
17 views
Problems setting up dx12 [closed]
I'm following the Frank Luna directX12 book, I have installed the windows 10 SDK etc but now, when I compile any project from his demo they wont build. Error I am getting is Cannot open source file ...
1
vote
0answers
58 views
How to Convert DirectX Texture2D to a DXGI Surface for WPF Rendering?
I have an image in my WPF application that uses a D3DImage to render DirectX content. On the DirectX side I render everything to a Texture2D using SharpDX (a C# DirectX wrapper), but I'm not sure how ...
4
votes
2answers
44 views
How is a DirectX Adapter Different from a Device?
I'm relatively new to DirectX programming, and this is one of the more confusing issues I've encountered to date. According to the MSDN Documentation for DirectX 11:
"A device is used to create ...
0
votes
0answers
63 views
A few questions about Order Independent Transparency
I've been looking through several different Order Independent Transparency algorithms. But very few of them seem to answer a few things.
I understand that the idea of OIT is to not worry so much ...
-1
votes
1answer
67 views
Volumetric Lighting/Light Shafts in DirectX
So currently I am trying to implement Light Shafts into my DirectX Engine. I read the Nvidia GPU Gems Article (http://http.developer.nvidia.com/GPUGems3/gpugems3_ch13.html) I am new to Graphics ...
0
votes
1answer
36 views
How to draw Alpha Masked fragments' depth to depth buffer?
I feel like an absolute idiot for asking this. But how exactly do safely draw the depth of a fragment featuring a Masked ( Alpha 1) texture on it's surface?
So far I've literally been doing a depth ...
0
votes
1answer
26 views
Problem with Frustum Culling Right-Handed(LookAtRH GLM)
I am trying to do Frustum Culling based on Goemetric Approach, however don't matter how much i try, the frustrum rotate to opposite side, i tried to find a solution over all internet, but couldn't ...
3
votes
0answers
28 views
Flicker when drawing multiple shapes over image based texture
I'm rendering video frames with multiple color filled shapes over it using SharpDx and D3D11.
Rendering seems to be fine when just rendering the video frame and is as expected.
Now if i draw a ...
0
votes
0answers
48 views
How to make Level Editor in C# for a DirectX engine in C++ [duplicate]
I have been trying for months to make a Level Editor for my C++ DirectX Engine. I have tried using a C++/CLI wrapper or P/Invoke to do this. Neither seems to work. Can someone let me see a sample of ...
1
vote
1answer
277 views
How do I render my DirectX C++ engine to a C# Panel?
The title pretty much sums it up. I'd like to know how I can get the HWND of my C# Panel object to my DirectX engine so I can render to it. I know it involves making a C++/CLI wrapper, but I'm not ...
4
votes
1answer
56 views
How to display unicode text in monogame?
I'm looking for ways to draw any characters that may be entered in any language, on any keyboard, so that I don't have any trouble with limited language support in a monogame project.
So far I've ...
2
votes
0answers
109 views
Texture Mapping to procedurally generated geometry
How can I calculate texture coordinates of such geometry?
The angle shown in the image (89.90 degree) may vary, therefore the geometry figure is changing and is not always such uniform.(maybe like ...
0
votes
1answer
50 views
DirectX 12: Problem with render target
I've got a problem with DirectX 12 I cannot figure out by myself. I wrote a small program that should render a triangle onto the screen.
When I executed the application, however, there was no triangle ...
0
votes
1answer
51 views
DirectX 12 Questions about the command queue and command list?
I have been wondering this question for a while. Would this command
ThrowIfFailed(m_command_list->Reset(m_command_allocator.Get(), nullptr));
m_command_list->ResourceBarrier(1, &...
1
vote
2answers
105 views
Get the difference between 2 matrices
Hi I'm using C# and MonoGame, and have the world matrices of 2 objects. I need to get the difference between them, so I can effectively parent the second object onto the first. The aim is to get to a ...
0
votes
1answer
65 views
Load 2 triangles in a simple DX11 example
I'm following this tutorial, where they show how to setup a simple dx11 demo with a green triangle in the middle. I'd like to be able to modify it so that it shows 2 triangles instead, i modified the ...
1
vote
1answer
33 views
DirectX 11 Vertex Shader Fragmentation
I was wondering how my vertex shader is causing my cube to be render weirdly? I am using the Visual Studio graphics tool and see that my input assembler is correctly receiving the cube and I can only ...
1
vote
0answers
28 views
Light intensity on plain from angle
Given a vector (v) for the direction of light and a vector (n) for the normal of a plain.
How can I calculate a rudimentary intensity value (i) where
When (v) points at (n) directly/face on (i) = 1....
-2
votes
1answer
39 views
2
votes
0answers
27 views
DirectX 11 - Problem with low resolution decals
I'm trying to add a decal system in my DirectX engine but i'm facing some problems with the quality of the textures projected. Every other no decal texture look fine, but these ones look really bad.
...
0
votes
1answer
17 views
Set up a basic D3DXQUATERNION
I'm trying to set up a D3DXQUATERNION to operate a rotation of 90 degrees around the Y axis.
I tried in the following way:
D3DXQUATERNION tempRot1(0.0f, 1.0f, 0.0f, cos(XM_PIDIV2/2));
because in ...
0
votes
0answers
48 views
Implementing Depth of Field in DirectX 11
I have created a procedural dungeon demo in DirectX 11 as part of an assignment, and am now looking to add some post processing to it. I have implemented whole scene Gaussian Blur in the past, but ...
0
votes
0answers
52 views
3d rotation of a cube using DirectX
I can't solve an apparently simple problem: i have a cube, similar to the one in the following picture
I've tried to write a small demo where i can rotate the cube by dragging the mouse, but i can'...
2
votes
1answer
63 views
DX11 CreateTexture2D
When i want to load texture i can either call
CreateTexture2D without passing pointer to texture content passing Default usage and call UpdateSubResource
or
CreateTexture2D with pointer to texture ...
0
votes
0answers
40 views
Quad not rendered correctly after window resize
I have a orthographic camera. With the help of this camera i'm able to render a quad onto the screen using screen-cordinates.
Using the camera i perform the zoom in/out on specific mouse position ...
3
votes
0answers
50 views
RWTexture3D in Compute Shader on Intel HD 4000
I'm having some weird issues running a Compute Shader with DirectX 11 on an Intel HD 4000 GPU.
The goal is to write different shapes into a DXGI_FORMAT_R32_FLOAT 3D Texture with a size of ...
0
votes
1answer
45 views
Why when releasing a DirectX Texture it fail
I have an instance where a class creates a DX9 texture via
UINT usage = D3DUSAGE_RENDERTARGET;
HRESULT hr = D3DXCreateTexture (m_D3DDevice,
200,
...
1
vote
1answer
141 views
How to Load and Apply a Cube Map with DDS Texture Loader?
So I have been spending a lot of time recently implementing a working skybox/skysphere, and have almost completed it. The last thing that I need to do is to load my given texture, a skybox texture ...
0
votes
0answers
32 views
How to do an xBR or hqx filter in MonoGame?
I have been trying to implement an HD filter (xBR or HQX) in my MonoGame game project but so far got no success. I have checked out this question, but the shaders provided in the answers don't seem to ...
0
votes
1answer
53 views
Problem with stencil in directx 12
I'm trying to use stencil buffer in directx 12. I have problem that probably is really easy to solve.
So, it's look like dx12 ignore it, ClearDepthStencilView() affect only depth, writing to stencil ...
0
votes
1answer
150 views
Doing legacy DirectX Coding on Windows 10
I decided to study couple of old computer graphics books like Andre LaMothe's Tricks of 3D Game Programming Gurus. I feel like this book is full of great general computer graphics knowledge and I want ...
0
votes
1answer
80 views
Game crashes when sound is finished
I'm trying to code a simple audio playback test game (which will be used in my actual project), and everything works fine, except for the fact that after the audio has finished playing, the game will ...
3
votes
1answer
120 views
Sine-based Tiled Procedural Bump
I am trying to implement this formula to generate bump but I am facing some issue. The result doesn't look the same it's much darker.
Here is my result (without same parameters) but it is much ...
1
vote
0answers
77 views
How to draw SharpDX 2D Bitmap Outline
i want drawing bitmap outline
Now Drawing
Device.DrawBitmap(mBitmap, GetBound(), Opacity, d2.BitmapInterpolationMode.Linear);
// mBitmap as SharpDX.Direct2D1.Bitmap
// GetBound() as Bitmap Bound
1
vote
1answer
94 views
Rotating A model in 3D so it matches its direction of movement
So I have a model of a spear and when it gets thrown I want to set the orientation of the spear to its direction. ( I also want to use this for other things like bullets pointing in the direction ...
2
votes
1answer
71 views
Setting oblique projection to data visualization
I'm developing a small application using Directx intended to plot frequency spectra data in a waterfall plot. It should look like this:
So far, I managed to created most of the chart components(axes,...
0
votes
1answer
207 views
Windows 10 User has only DX 10.1 API
A user of ours has an issue whereby they cannot run our application, which requires DX11 API support and hardware support for DX10.1. The strange this about this issue is that the user is running ...