Questions tagged [directxtk]

This tag is for questions related to the open source C++ utility library DirectX Tool Kit available for DirectX 11 and DirectX 12.

This tag is for questions related to the open source C++ utility library DirectX Tool Kit available for DirectX 11 and DirectX 12.

65 questions
0
votes
0 answers

DirectX 11 ClearRenderTargetView Fullscreen Problem

I have a DirectX 11 application which renders frames supplied from an SDK. My clear_screen function does not work (stucks on the last frame) when the fullscreen is enabled by calling swapchain_->SetFullscreenState(TRUE, dxgi_output) after I created…
xeco
  • 184
  • 14
0
votes
2 answers

Why sprites render over objects?

I want to render a cube on a picture like in this tutorial. Problem is that it renders only the picture and the cube doesn't render. Can you help me ? Thankyou m_spriteBatch->Begin(); m_spriteBatch->Draw(m_background.Get(), m_fullscreenRect); // //…
0
votes
1 answer

Why is CoCreateInstanceFromApp missing from an ARM build over an x64 build?

This question does not already have an answer I know what an unresolved external symbol means - I'm asking specifically why when building as ARM the DirectX functions are missing for my project. When I build my DirectX project for Raspberry Pi I…
noelicus
  • 14,468
  • 3
  • 92
  • 111
0
votes
0 answers

How to add DirectXTK to UWP app for hololens?

I am trying to follow the steps outlined here but I am unable to add a reference at the step when adding DirectXTK as a reference. When I skipped this step and proceeded to use DirectXTK in my project it would not compile. Any suggestions for…
aweez
  • 11
  • 3
0
votes
1 answer

Extracting a row from XMMATRIX to store in a vector

I'm trying to extract a row from the world matrix to place into my forward vector which when called in the Update function will make the plane move forward. Currently I have this working but I access the members directly, is there a function that…
qTicTac
  • 21
  • 1
0
votes
0 answers

C++ std::make_unique<> Assign to Class Property

I have what should be a simple operation, but I'm having difficulty figuring out what is wrong. I have a private property in my header file like so: #pragma once #include "Sprite.h" #include "MainMenuContent.h" class MainMenu { public: …
Jack
  • 950
  • 2
  • 17
  • 36
0
votes
2 answers

DirectX Matrix: transform relative to facing direction(like in an FPS)

I took someone's advice but it did not work as I intended: M=inverse(inverse(M)*rotation_matrix); This is the code for my update: void TestApp::Update(float dt) { DirectX::SimpleMath::Matrix rotation = …
0
votes
1 answer

How to manually render a mesh loaded with the DirectX Toolkit

I have a c++/cx project where I'm rendering procedural meshes using DirectX-11, it all seems to work fine, but now I wanted to also import and render meshes from files (from fbx to be exact). I was told to use the DirectX Toolkit for this. I…
Stef
  • 315
  • 3
  • 14
0
votes
0 answers

Get Raw Pixel Data with DirectXTK

I would like to access pixel buffer data from Dirty Rect after calling AcquireNextFrame from DXGI. Here is my code to get pixel buffer data from D3D11Texture2D : BYTE* DISPLAYMANAGER::GetImageData(ID3D11Texture2D* texture2D, D3D11_TEXTURE2D_DESC…
X6Entrepreneur
  • 971
  • 2
  • 10
  • 30
0
votes
0 answers

DirectXTK: Custom Shader doesnt draw

Getting back to my HLSL experiments with the DirectXTK, I stumbled across something really odd. First of all, I managed to get my effect class integrated into DirectXTKs IEffect subsystem like this: #include "pch.h" #include "TmgnEffect.h" using…
Tam HANNA
  • 51
  • 6
0
votes
1 answer

DirectX11 with Clang shows black texture (with Visual Studio it works)

Hearing great things about Clang, I decided to give it a chance and installed Clang on my windows. With the installation it got integrated to my VisualStudo2015 too. Everything worked fine, until I tried to compile a small DirectX11 programm with…
Jaberwocky
  • 51
  • 5
0
votes
0 answers

Xbox One Controller not detected (loading gamepad.h from DirectXTK without library)

I am using the DirectXTK library for the gamepad class. I compiled the library with only this class inside it and it works. If I would only add the source files to my project, without the library, the size would be ~50KB instead of ~500KB. However,…
Z0q
  • 1,689
  • 3
  • 28
  • 57
0
votes
0 answers

DirectXTK: integrate a hlsl file into Model and Effect system

Having programmed for OpenGL ES and XNA for some time, I am now updating some of my content to DirectXTK for the XBOX One. Sadly, I just ran into another issue - namely the integration of custom shader files. In particular, I have the following…
Tam HANNA
  • 51
  • 6
0
votes
1 answer

C++ DirectXTK Changing SpriteTint Over Time

So for a University Project I am looking to try and change the tint of a sprite over a specific time frame. The aim is to make a set of rocks turn from grey to orange (simulating heating them up) over 5 seconds, then turn them from orange to grey…
0
votes
1 answer

0x88982F50: "The component cannot be found" When using DirectXTK's CreateWICTextureFromMemory()

I'm working on a (Universal Windows) c++/cx Directx project, which builds to a dll used in a c# UWP project. I'm using the DirectX Toolkit to load textures. I already use it to create a texture from file, but now I need it to create a texture from…
Stef
  • 315
  • 3
  • 14