Followers 0

# DX11 Need help

## 4 posts in this topic

Hello!

Well I am stuck, it feels like I am hitting my head against a brick wall and have been doing it for several days now.

I am reading Frank D. Luna's book "Introduction to 3D Game Programming with DirectX 11" and seriously I am stuck at chapter 4. I am trying to use the initialization code for Direct3D and I can't get it to work.

I have included the common code folder and the June SDK 2010 in the directories as the book said, and then I open the .sln file from chapter 4 for initializing Direct3D but I just get errors.

Error 1 error C1083: Cannot open include file: 'd3dx11.h': No such file or directory c:\users\dawood\desktop\utbildning\programmering\dvd\d3d11codeset1\common\d3dutil.h 13 1 Init Direct3D

Error 2 error C1083: Cannot open include file: 'd3dx11.h': No such file or directory c:\users\dawood\desktop\utbildning\programmering\dvd\d3d11codeset1\common\d3dutil.h 13 1 Init Direct3D

Error 3 error C1083: Cannot open include file: 'd3dx11.h': No such file or directory c:\users\dawood\desktop\utbildning\programmering\dvd\d3d11codeset1\common\d3dutil.h 13 1 Init Direct3D


Regards!

0

##### Share on other sites

Also for those who are familiar with the book, if you download the sample codes from d3dcoder.net there is no "d3dx11.h" file in the common folder, wtf!?

0

##### Share on other sites

What's up. There's no d3dx11.h file in the common folder because that file is in the June 2010 DirectX SDK.

I don't think you've set up your include directories correctly.

1

##### Share on other sites

Yes, I managed to fix it yesterday with some help of others. :)

0

## Create an account

Register a new account

Followers 0

• ### Similar Content

• Hi Guys,
I am revisiting an old DX11 framework I was creating a while back and am scratching my head with a small issue.
I am trying to set the pixel shader resources and am getting the following error on every loop.
As you can see in the below code, I am clearing out the shader resources as per the documentation. (Even going overboard and doing it both sides of the main PSSet call). But I just can't get rid of the error. Which results in the render target not being drawn.
ID3D11ShaderResourceView* srv = { 0 }; d3dContext->PSSetShaderResources(0, 1, &srv); for (std::vector<RenderTarget>::iterator it = rtVector.begin(); it != rtVector.end(); ++it) { if (it->szName == name) { //std::cout << it->srv <<"\r\n"; d3dContext->PSSetShaderResources(0, 1, &it->srv); break; } } d3dContext->PSSetShaderResources(0, 1, &srv);
I am storing the RT's in a vector and setting them by name. I have tested the it->srv and am retrieving a valid pointer.
At this stage I am out of ideas.
Any help would be greatly appreciated

• hi, guys, how to understand the math used in CDXUTDirectionWidget ::UpdateLightDir
the  following code snippet is taken from MS DXTU source code

D3DXMATRIX mInvView;
D3DXMatrixInverse( &mInvView, NULL, &m_mView );
mInvView._41 = mInvView._42 = mInvView._43 = 0;
D3DXMATRIX mLastRotInv;
D3DXMatrixInverse( &mLastRotInv, NULL, &m_mRotSnapshot );
D3DXMATRIX mRot = *m_ArcBall.GetRotationMatrix();
m_mRotSnapshot = mRot;
// Accumulate the delta of the arcball's rotation in view space.
// Note that per-frame delta rotations could be problematic over long periods of time.
m_mRot *= m_mView * mLastRotInv * mRot * mInvView;
// Since we're accumulating delta rotations, we need to orthonormalize
// the matrix to prevent eventual matrix skew
D3DXVECTOR3* pXBasis = ( D3DXVECTOR3* )&m_mRot._11;
D3DXVECTOR3* pYBasis = ( D3DXVECTOR3* )&m_mRot._21;
D3DXVECTOR3* pZBasis = ( D3DXVECTOR3* )&m_mRot._31;
D3DXVec3Normalize( pXBasis, pXBasis );
D3DXVec3Cross( pYBasis, pZBasis, pXBasis );
D3DXVec3Normalize( pYBasis, pYBasis );
D3DXVec3Cross( pZBasis, pXBasis, pYBasis );

https://github.com/Microsoft/DXUT/blob/master/Optional/DXUTcamera.cpp
• By YixunLiu
Hi,
I have a surface mesh and I want to use a cone to cut a hole on the surface mesh.
Anybody know a fast method to calculate the intersected boundary of these two geometries?

Thanks.

YL

• By hiya83
Hi, I tried searching for this but either I failed or couldn't find anything. I know there's D11/D12 interop and there are extensions for GL/D11 (though not very efficient). I was wondering if there's any Vulkan/D11 or Vulkan/D12 interop?
Thanks!

• Hi Guys,
I am just wondering if it is possible to acquire the address of the backbuffer if an API (based on DX11) only exposes the 'device' and 'context' pointers?
Any advice would be greatly appreciated

• 10
• 11
• 20
• 11
• 28