Tools and techniques to use DirectX through managed code. Managed DirectX is also known as MDX.
Questions tagged [managed-directx]
65 questions
0
votes
1 answer
Saving a non-pow-2 dimension screen capture in Managed DirectX
I'm attempting to capture a rendered screen from a Managed DirectX application. Typically, the way to do this is as follows:
Surface renderTarget = device.GetRenderTarget(0);
SurfaceLoader.Save(snapshotName, ImageFileFormat.Bmp,…

J23
- 3,061
- 6
- 41
- 52
0
votes
1 answer
Draw Circle C# Directx
I'm attempting to draw a 2d circle in C# using Managed DirectX. (yes it is outdated, and unsupported, i know)
Every single example i could find on the web is in C++. They use things like D3DTLVERTEX, Which my C# library does not seem to have. I have…

LegitGodmode
- 39
- 1
- 6
0
votes
1 answer
Not able to get stencil to work
Was trying to get Stencil to work in my app. I use Sprites to render content on to the Device. Content could be movies, pictures or text.
Can I set the stencil buffer using these Sprites, which can be used in later passes to stencil out other…

Trainee4Life
- 2,203
- 2
- 22
- 38
0
votes
0 answers
When using Microsoft.DirectX.AudioVideoPlayback.dll in my project i'm getting Managed Debugging Assistant 'LoaderLock' has detected a error
I have a menustrip in my form1 designer.
In top of form1:
The Video is Microsoft.Directx.AudioVideoPlayBack.Video
Video vdo;
Then in the menustrip open menu click event:
private void openToolStripMenuItem_Click(object sender, EventArgs e)
…

Daniel Voit
- 111
- 1
- 10
0
votes
1 answer
Managed DirectX Camera Issue
I am a bit new to the DirectX library and I am wondering if anyone can help me with a camera issue. In my main form I load a set of polygon data representing a 3D object and then pass that polygon data to another form and want to draw the polygon as…

Snuffaluffagus
- 23
- 1
- 6
0
votes
4 answers
Creating a texture from a image in DX 12 VC++
I just want know Directx 12 API to create texture from image.
For DX11 it is D3DX11CreateShaderResourceViewFromFile and for DX9 it is D3DXCreateTextureFromFileEx and for DX12 ?

Mukesh Bharsakle
- 403
- 1
- 4
- 17
0
votes
1 answer
Directx 3D the farther object covers the nearer object
I'm new to the DirectX in c#, and there is a question that confused me a lot, basically I want to render two cubes on the screen, one is near from the camera and the other is far from the camera, what I expected is the nearer one always in front of…

Edgar
- 1
- 1
0
votes
2 answers
Managed DirectX as a starting point
I know the difference between manage and unmanaged DirectX. My question is if I decided to do managed directX as a starting point, would it help me to better understand unmanaged DirectX. Honestly, the only thing I see different about the 2 is how…

numerical25
- 10,524
- 36
- 130
- 209
0
votes
1 answer
How to get started with DirectInput from a Visual Studio 2013 C# solution on Windows 8.1?
Following a comment posted to one of my questions, I am trying to get started using DirectInput.
I am absolutely unfamiliar with it, and I don't know how to get started at all. The namespace seems to be Microsoft.DirectX.DirectInput but I cannot…

Evren Kuzucuoglu
- 3,781
- 28
- 51
0
votes
1 answer
Rotate text - Managed DirectX (C#)
I am currently developing a little application with a highly-dynamic GUI which needs a lot of refreshing and drawing. To archive this, I am using managed DirectX.
I successfully painted a little string in a specific font to specific coordinates, but…

Emiswelt
- 3,909
- 1
- 38
- 56
0
votes
1 answer
2 Mesh.Box among each other
I use directx with C# (MDX). And my Task is it so put two Boxes (created with Mesh.Box) among each other.
The top box has:
width: 200
height: 10
depth: 1
The bottom box has:
width: 10
height: 100
depth: 1
Both together should look like
-----------
…

user3252833
- 129
- 9
0
votes
1 answer
Rotating in Managed DirectX
I have a quad that I want to (1) rotate a quad around the Y axis and (2) rotate it around the quad's X axis. The problem is that it does the rotations one after the other, so it rotates it around the Y axis and then it rotates it around the world's…

davidweitzenfeld
- 1,021
- 2
- 15
- 38
0
votes
1 answer
Tracing unmanaged DirectX objects allocated through Managed DirectX
I have a problem where Device.Dispose() is taking a long time to execute when the application is closed. I am investigating whether this is due to unmanaged objects not being freed properly thus resulting in a long cleanup time.
Is there an easy way…

Matt Breckon
- 3,374
- 20
- 26
0
votes
1 answer
Basic samples for shader in Managed DirectX
I am new write a pixel shader and use in my managed directx project, where i can get some basic sample to start it.

Firoz
- 7,224
- 10
- 41
- 56
0
votes
1 answer
Determining adaptor identifier with Managed DirectX
Creating a new Managed DirectX device on a single monitor setup is easy, I call the device constructor with adapter identifier 0 ( or Manager.Adapters.Default.Adapter).
On a multiple monitor setup I want to create the device with the correct adapter…

spaceman
- 41
- 1
- 5