DirectX 11 is the primary graphics API for Microsoft platforms including Windows, Xbox One, and Windows phone.

learn more… | top users | synonyms (2)

1
vote
1answer
118 views

How can I read the smallest mipmap back to the CPU after calling generateMips?

I'm implementing an adaptive tonemapper based on the standard "scale down the luminance map to a 1x1 texture" approach. This is my code following the rendering of the luminance map: //Average the ...
0
votes
1answer
83 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 ...
2
votes
1answer
18 views

DX11 Camera not working properly

I'm currently trying to implement a ArcBall Camera which should fly around a given XMFLOAT3 position stored in a cb with a spezified distance to the position. I used the code from Allen Sherrod for ...
2
votes
1answer
321 views

Mix multisample and non multisample rendering in Directx11

is there a way to mix multisample and non multisample rendering in Directx11? It seems that when I create a multisampled render target I always get a multisampled rendering, regardless of the value of ...
1
vote
2answers
58 views

Primitives LINESTRIP Closing to the first point?

I'm doing a exercise form the Frank Luna book. It ask to draw a LineStrip that looks like the red line in the picture. I'm using ...
1
vote
1answer
87 views

Why isn't my cbuffer updating?

I am really frustrated because my cbufer isn't updating. This is my VS: cbuffer MatrixBuffer: register(b0) { float4x4 worldViewProj; }; struct VertexIn { float4 Pos : POSITION; float4 Color: COLOR; ...
1
vote
1answer
58 views

DirectxMesh obj to cmo texture coordinates off

I'm having trouble getting the texture coordinates of the cmo to match how the mesh was unwrapped in blender. I am using the directxmesh to convert the obj to a cmo and the directxtk to load the cmo. ...
0
votes
0answers
30 views

Transforming the bounding sphere of an object [closed]

I'm getting the bounding sphere of a tree object and then I draw a bounding sphere around it in world space coordinates. From that mesh I can get a bounding sphere. I'm trying to transform it ...
-1
votes
0answers
9 views

calculate ray picking using directx11 [duplicate]

I'm trying to generate a ray to check which objects has been picked. I want to check the math if its correct or no, because when I try to draw a ray, Its not visible at all, and the ray origin is in ...
1
vote
1answer
205 views

Constant buffer not updating

I'm trying to rotate models independently of each other however I cannot for the life of my figure out how. I have gotten to the stage of writing this: std::vector<int>::size_type st = ...
0
votes
0answers
20 views

picking ray in directx11 [closed]

I'm trying to generate a ray to check which objects has been picked. I want to check the math if its correct or no, because when I try to draw a ray, Its not visible at all, and the ray origin is in ...
1
vote
1answer
39 views

How do I toggle color writes in SlimDX 11/Direct3D 11 with FeatureLevel 10?

I'm having trouble setting the RenderTargetWriteMask field of a RenderTargetDescription struct. I simply want to toggle color writes but every time I try to enable the the color writes are changed ...
0
votes
2answers
57 views

Retricting movement to 3D axis

A cube is constructed in a 3D and can be rotated to view any side. I want to be able to drag the cube to any position with the mouse while keeping the Y-coordinate the same. I used project and ...
0
votes
1answer
80 views

Vertexquads are not being drawn in 2D space

I started teaching myself DirectX a short time ago and have come across a problem which I can't figure out by myself unfortunately. I'm trying to build my own font system, so I can draw strings in 2D ...
0
votes
0answers
20 views

Centering the skydome around the camera

I'm using the DirectXtk to create a sphere, that's hopefully to be a sky dome. Now I set the world matrix to CommonStates states(m_Graphics.getDevice()); ...
0
votes
1answer
59 views

Full screen quad in the HLSL Directx 11

I want to create a full screen Triangle/Quad so I can blur the box that is the quad I made. I want to do this in the vertex buffer. I tried this code: struct VSQuadOut { float4 position : ...
3
votes
1answer
373 views

Finding out the “width” and “height” of my screen after projection added

In a 2d game, doing collisions with the edges of your screen is easy. Your textures are a 1:1 mapping of your screen resolution because your verities are too.. if your x position is > than ( screen ...
0
votes
1answer
5k views

Where have the Direct3D 11 tutorials on MSDN have gone? [closed]

I've had this tutorial bookmarked for ages. I've just decided to give DX11 a real go, so I've gone through that tutorial, but I can't find where the next one in the series is! There are no links from ...
1
vote
0answers
43 views

rendering a terrain

I'm trying to render a terrain using directx 11 and applying a heightmap to it. I load the heightmap then I copy it to a integer vector, then for each vertex position I assign the Y position of that ...
2
votes
0answers
24 views

Calculating light in tangent space

Just a simple question. To do lighting in tangent space, just take the transpose of the TBN basis Matrix and multiply that against the light direction. Is that right? Here is my code float3 normalT ...
0
votes
0answers
33 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 ...
0
votes
1answer
74 views

Zoom at a specific point using Orthographic camera

Currently I can perform Zoom which seems to be working fine but essentially what I'm really trying to do is zoom on a position offset from center as currently when I zoom then zoom is performed at the ...
2
votes
1answer
71 views

D3D11InfoQueue Isn't filtering out messages

I have followed the Coordinator's code advice from this page on how to query and filter the messages in the debug layer but it doesn't seem to be working. You can see from the following code that I ...
2
votes
1answer
50 views

Shader constant management problem in DirectX 11

I've been learning the "dragon book" written by Frank D. Luna and trying to implement the part of the demo on my own. As some of you can see, the demo of the book uses effects interfaces to update the ...
0
votes
1answer
66 views

DirectX 11 Problem with texture loading

I am trying to load a texture into my 3d graphics application. I am having trouble with my sampler state specifically. There are no errors generated just my little popup window saying, "Texture failed ...
0
votes
0answers
22 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
1answer
39 views

Is object space the same as local space?

I was in directx 11 and was wondering is local space the same as object space and if not, what is object space?
0
votes
1answer
44 views

Refraction and transparency?

I need to do some refraction in a sphere. Do I need to make the object transparent first? Or just use refraction(refract) in HLSL DirectX?
3
votes
0answers
18 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
35 views

The steps in implementing Bézier triangle patches

What are the steps in creating a Bézier triangle patches. What steps would you do in order to create this in directx 11? Say I just input 3 vertices and create a simple triangle. Is this enough? Or ...
0
votes
1answer
36 views

PN TRIANGLES is Bezier Triangles right?

JUst wondering the term pn triangles is the same thing as saying bezier triangle patch??/
2
votes
2answers
363 views

SSAO all jagged

So I've been working on SSAO for awhile, and I thought I had it right, untill I loaded up the sponza scene that accompanied the SAO technique I'm implementing ...
2
votes
0answers
121 views

Struggling with simple orthographic projection for a 2D setup

I'm trying to build a simple setup for 2D using SharpDX. Basically I want to supply my vertices in classic Cartesian coordinates: X-right, Y-up, starting with (0,0) in bottom-left corner. I've had ...
3
votes
1answer
84 views

Why is quad rendered at the center (0,0) instead of top left when using orthographic projection

I have been trying to render a quad(containg a texture) using orthographic camera so that the quad can be rendered using the screen coordinates directly. I started of by rendering just a triangle ...
0
votes
0answers
29 views

D3D11 Weird Tessellation patterns

I'm having a very peculiar problem regarding quad-patch tessellation. I'm building a planetary renderer using spherified cube and chunked LOD (6 quadtrees, 1 per original cube face). I have reached a ...
4
votes
2answers
53 views

DirectX11 Using Multiple Shaders

I currently have a scenario where I am rendering terrain with a shadow map. I have two passes, one for the depth buffer to create the shadow map (which is rendered to a texture) and a second that ...
0
votes
0answers
14 views

GBuffer and SMAA

I am doing my rendering engine. It contains GBuffer that has no subsamples (only 1 sample per pixel). I added FXAA post-processing filter and it works good. I decided to do better and after some ...
0
votes
1answer
29 views

Is it possible to use mipmaps with dynamic textures in Dirext 11?

I was trying create a texture with D3D11_USAGE_DYNAMIC and MipLevels equal to 0 (to create all the mip levels). However, the texture failed to be created. Is it possible to use mipmaps with dynamic ...
1
vote
1answer
38 views

Doubts with results of per-vertex lighting shader

I'm researching simple shaders to add to my DirectX 11 project such as a per-vertex diffuse shader plus specular reflection component. I'll begin with the results: Seems specular reflection is ...
3
votes
1answer
64 views

Vertex normals in the geometry shader using directx

I'm in directx 11 with the geometry shader. Is is possible to calculate vertex normals? Just one like segment per vertex? In the geometry shader? I did vertex normals per face, this is what I got, ...
0
votes
0answers
27 views

Why does Intel Graphics Monitor crash after I set a depth stencil state in my Direct3D 11 application?

I'm programming a managed Direct3D 11 application with SlimDX. I want to use Intel Graphics Monitor to capture draw calls for a single frame. When I try to set a depth stencil state my application ...
0
votes
1answer
25 views

Why does PIX crash while creating render target views in my D3D11 application?

I'm trying to use PIX to debug my Direct3D11 application. PIX crashes and gives the following stack trace: Frame 000001 ........PRE: <this=0x054338e0>IDXGISwapChain::GetBuffer(0, ...
0
votes
0answers
27 views

SlimDX 11: Setting Multiple Render Targets

I'm using SlimDX 11 in my managed Direct3D application. I would like to implement deferred shading. I'm having trouble when I try to set a depth stencil surface and multiple render targets at the same ...
0
votes
0answers
45 views

Why won't my object go 3D DirectX11?

I am trying to make a 3d mesh within my code. For some reason it looks deformed, which makes no sense because I specified the vertices correctly I am pretty sure. Also sorry that I am posting loads of ...
0
votes
0answers
20 views

Driver crash creating vertex buffer

I am starting working on my first D3D "framework" but I get a driver crash (in nvwgf2um.dll) when creating a buffer. I have latest NVIDIA driver ID3D11Buffer* ...
0
votes
1answer
40 views

D3D11CreateDevice leads to syntax error [closed]

I'm following the book Introduction to 3D Game Programming with DirectX 11 by Frank Luna (link) and I'm trying to make the empty project in Chapter 4 (don't worry, I don't expect you to read the book) ...
2
votes
1answer
69 views

DX11 Losing Instance Buffer Data [closed]

I've got a function that basically creates different instance buffers into an array for me to use in my DrawIndexedInstanced call. But when I pass the vertex buffer and instance buffer through to my ...
1
vote
0answers
27 views

HLSL Buffer<> Data Type

I'm working on converting a dx11 shader from a .fx file for use in Unity3D and I'm a little puzzled by the HLSL Buffer<> type declared in the shader. More specifically, what are these and how can I ...
0
votes
1answer
563 views

When should I set a texture as a shader resource in order to read it?

I'm writing a Direct3D 11 HLSL shader with SharpDX. What I want to do is write the depth to a texture in one pass and read it in the next one. After declaring the texture, do I have to set the depth ...
0
votes
1answer
591 views

Animation, Interpolation, & Structure

I have been working on animation in my small game engine recently and I am implementing some interpolation to be used with skeletal animations. I know how to do interpolation but I am not sure where ...