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

Issue rendering texture in C++ DirectX Tool Kit

I'm trying to load texture from .jpg file with function CreateWICtextureFromFile from DirectX Tool kit. My image gets loaded as texture but the output has jitter and missing information. This are my code snpshots D3D11_SAMPLER_DESC samplerdesc; …
0
votes
1 answer

DirectX bounding box drawing

The idea is to draw the bounding box as 2D corners on the screen after my DiretXTK model is displayed. I got the bounding box corners form DirectXKT in a std::vector, so auto mf = m_world * m_view *…
Michael Chourdakis
  • 10,345
  • 3
  • 42
  • 78
0
votes
1 answer

LNK1104 with NuGet Packages : DirectXTKAudioWin8.lib

I have a Direct3D Application. We use the NuGet Package directxtk_desktop_2015. In recent packages like directxtk_desktop_win10 or directxtk_uwp, I have additional WICTextureLoader flags which I want and need. However, when I add these packages to…
Raildex
  • 3,406
  • 1
  • 18
  • 42
0
votes
1 answer

More efficient way to collect all DLL in a project

I want export a executable file to others and they can play the game with a click, but when I click the executable file it immediately shutdown. I think it missed some DLL file to be able to run. So I checked the build log. 'Pacman.exe' (Win32):…
Samuel
  • 803
  • 8
  • 17
0
votes
1 answer

Creating a 3d card using DirectXTK with Dynamic texture on one side

I am trying to create a card game. I want to have a deck of cards where the back of the card is a fixed texture but the front is dynamic, i.e. it has some text fields on it as well as a picture. I have created a box sized 3x2x0.16 to represent my…
Rolonos
  • 1
  • 3
0
votes
1 answer

Drawing spheres via DirectX12 Tool Kit

I have three problems when trying to draw spheres: Sphere is glitching in some angles: Don’t know how to apply a color to sphere Can’t draw two spheres at one - only one is shown. Code. Render: void Game::Render() { if (m_timer.GetFrameCount()…
Artur
  • 325
  • 2
  • 16
0
votes
1 answer

Picking via DirectX12 Tool Kit

I am facing problems trying to make 3d objects clickable by mouse. For intersection checking I use ray casting. Code I found, ported for my solution: Exactly picking bool RaySphereIntersect(Vector3, Vector3, float); bool TestIntersection(Matrix…
Artur
  • 325
  • 2
  • 16
0
votes
1 answer

Direct3D Win32 Game Template not Showing up in VS 2019

I am trying to use the directx TK with visual studio. In the wiki, it shows the template option "Direct3D Win32 Game"; however, that is not available in my templates. I think that I have installed all of the required work loads.
0
votes
1 answer

Using PrimitiveBatch::DrawIndexed with ID3D11DeviceContext::DrawIndexed?

I'm creating a game engine and I'm at the point where I would want to draw wireframe shapes for debugging (colliders, triggers, raycasts, etc.). I was previously using meshes with a wireframe rasterizer state, but now I want to migrate the system…
Jomsss
  • 3
  • 1
0
votes
1 answer

DirectXTK no member in "Mouse" for "SetWindow(HWND hwnd)"

I was trying to implement mouse and keyboard support in my game engine using DirectXTK. It was quite simple for keyboard, but I have got a problem with implementing proper mouse support. I was following THIS for implementing mouse into my engine.…
bilek993
  • 85
  • 11
0
votes
0 answers

DirectXTK make_unique(flags) fails

I am just about ready to release my first little game with my game engine. However, through having some people test it, we found that the call to acquire the pointer to the AudioEngine interface fails for one of my testers. The call works fine for…
GaleRazorwind
  • 229
  • 2
  • 7
0
votes
1 answer

DirectX: can't render a model from CMO

I'm trying to draw a model using DirectX (following this tutorial: https://github.com/Microsoft/DirectXTK/wiki/Rendering-a-model?fbclid=IwAR3A0mw9rzjJHrN3mwgSb9a6oKqNgiDiAnnfkVLIIQVca9Og6cvfvscuVfE). I've add my model.cmo file with Add existing…
xyz
  • 306
  • 3
  • 11
0
votes
1 answer

GXMVECTOR - Documentation?

I am trying to re-learn directx after a decade of doing other things. I read a tutorial on the github wiki on how to render some sprites: https://github.com/Microsoft/DirectXTK/wiki/Sprites-and-textures In the Draw method it uses…
Christopher Pisz
  • 3,757
  • 4
  • 29
  • 65
0
votes
0 answers

DirectXTK SoundEffect->CreateInstance() Returns NULL

All. It's finally time to add audio to my game engine. I have simple SoundEffect->Play() functions working just fine, but I want to have SoundEffectInstances so I can apply 3D effects and such. When I call SoundEffect->CreateInstance(), it returns a…
GaleRazorwind
  • 229
  • 2
  • 7
0
votes
1 answer

Input Assembler - Vertex Shader Linkage error

I'm trying to render text in my DX11 project, by using SpriteFont and SpriteBatch. Everything worked before adding the code in, but when the code in uncommented, I get the following error and nothing renders. D3D11 ERROR:…
George_H
  • 93
  • 2
  • 14