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

learn more… | top users | synonyms (2)

0
votes
0answers
9 views

Lighting done in tangent space

Instead of doing lighting in world space, i need to do it in tangent space. I dont use the line of code in my code float3 bumpedNormalW = NormalSampleToWorldSpace(normalMapSample, pin.NormalW, ...
2
votes
1answer
70 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
47 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
63 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
16 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
34 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
42 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?
0
votes
0answers
15 views

Resizing orthographic camera while zoomed

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
63 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
303 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
50 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
107 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 ...
1
vote
1answer
82 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; ...
3
votes
0answers
14 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 ...
1
vote
1answer
46 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
1answer
198 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 = ...
1
vote
1answer
31 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
1answer
28 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
34 views

PN TRIANGLES is Bezier Triangles right?

JUst wondering the term pn triangles is the same thing as saying bezier triangle patch??/
0
votes
2answers
54 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
75 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
1answer
51 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 : ...
2
votes
1answer
347 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 ...
2
votes
2answers
360 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 ...
0
votes
1answer
60 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
0answers
112 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
77 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
26 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
51 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
13 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
21 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
57 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
22 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
23 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
44 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
39 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
67 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
23 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
5k views

Where have the Direct3D 11 tutorials on MSDN have gone?

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 ...
0
votes
1answer
553 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
585 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 ...
0
votes
2answers
136 views

Screen point to world space conversion

I have a 3D cube that can be rotated with the mouse to show any side of the sphere.I want to be able to click a point on the cube and draw a circle around that point at a fixed height(so i dont need ...
0
votes
1answer
41 views

Sampling in the Compute Shader not working

I'm trying to sample a image in the compute shader. My code is [numthreads(1, N, 1)] void VertBlurCS(int3 groupThreadID : SV_GroupThreadID, int3 dispatchThreadID : ...
1
vote
2answers
200 views

What is DirectX 11's equivalent of D3DCAPS9::MaxVertexIndex of DirectX 9?

I'm porting a DirectX 9 program to DirectX 11. How do I get the value in DirectX 11 that is retrieved using D3DCAPS9::MaxVertexIndex in DirectX 9? Thanks in advance.
0
votes
0answers
34 views

How can I write the depth buffer to a texture in D3D?

How can write the depth buffer to a texture? I see a lot of OpenGL examples, but I'm looking for one using Direct3D 11.
6
votes
1answer
175 views

How can I speed up this HLSL shader?

I have written a lighting shader file that is used as the fragment shader part of a deferred lighting pipeline. Unfortunately, each iteration seems to be adding 0.5ms to my frame time, so any more ...
0
votes
0answers
28 views

Geting contents of index bufffer

I would like to copy the contents of an index buffer into the system memory. ie get the array of indices used for the rendering. How would i go about this in directX11? i searched the interweb but ...