Questions tagged [managed-directx]

Tools and techniques to use DirectX through managed code. Managed DirectX is also known as MDX.

65 questions
1
vote
1 answer

How to play a wave file using SlimDX.DirectSound?

public partial class Form1 : Form { SecondarySoundBuffer m_DSoundBuffer; DirectSound m_DirectSound; string fileName = @"F:\\guitar-classical-E-octave0.wav"; public void setting() { WaveStream waveFile = new…
1
vote
2 answers

Missing Direct3D.dll dependency while using MDX

I have taken a perfectly working MDX piece of code to Windows 2008R2 (all DX drivers installed) and am getting the following, rather bizarre, error. Any idea what this could mean? System.BadImageFormatException: Could not load file or assembly…
Dmitri Nesteruk
  • 23,067
  • 22
  • 97
  • 166
1
vote
1 answer

Is D3DImage causing airspace problem?

A DirectX scene can be drawn inside of a WindowsFormsHost, but this solution concerns struggling with some interop issues, mainly the 'airspace' problem. Thus, before creating whole framework for this, I'd like to know, if a D3DImage used within a…
pbalaga
  • 2,018
  • 1
  • 21
  • 33
1
vote
1 answer

How do I check for a 32-bit z-buffer using Managed Direct3D?

I understand that a call to Manager::CheckDepthStencilMatch should get me an answer, but so far I have not been able to gather the pieces required to make this call effectively. In particular, I need to obtain values for the adapterFormat and…
Agnel Kurian
  • 57,975
  • 43
  • 146
  • 217
1
vote
0 answers

Managed DirectX downscaling sprites

I can't figure out how to downscale (make smaller) my sprites. There are 2 functions that I use: sprite.draw2d and sprite.draw. When im using the first one, I specify the parameter "destination size", and when I use the second one, I apply the…
0
votes
1 answer

Issue with transparency while drawing with RenderToSurface

I am facing issue while drawing semitransparent object with RenderToSurface(While it working file when i am drawing object direct on device). Issue is when i m drawing a object with Alpha value 50% on RenderToSurface, and when i am drawing surface…
Firoz
  • 7,224
  • 10
  • 41
  • 56
0
votes
3 answers

How do I include the .NET and Managed DirectX runtime dependencies in my VS 2010 Project?

How do I include the .NET and Managed DirectX runtime dependencies in my VS 2010 Project? I've had some difficulty with the setup project in the past and can't quite figure this one out.
LunchMarble
  • 5,079
  • 9
  • 64
  • 94
0
votes
0 answers

How to write a not-CPU-gated graphics benchmark with Managed DirectX

Yes, MDX is end-of-life, but I'd still like to write a short benchmark that spins a mesh at the highest frame rate the video card will allow. (This doesn't really simulate what a game would do, so it's more like measuring raw performance, like…
user6481358
  • 53
  • 2
  • 6
0
votes
2 answers

Managed DirectX: Specifying the Depth (Z-Order) of Sprites containing Texture and Text

I am using managed DirectX to try and draw a texture and a piece of text to the screen using a Sprite. Unfortunately, if I place the text and the texture in the same sprite, the texture overwrites (overdraws?) the text regardless of the order I do…
Tom West
  • 1,759
  • 2
  • 13
  • 20
0
votes
3 answers

Combine multiple small texture into large texture

Sorry for this, may be this is very basic question, I have multiple small texture with different size and co-ordinate, and i want apply some transition on this. So i need to combine all this textures in a large texture to make one one single texture…
Firoz
  • 7,224
  • 10
  • 41
  • 56
0
votes
1 answer

directx basic capability testing

I have a managed directx 9.0c application that fails to run on some low spec machines (ones without graphics card). I am wondering if anyone has any suggestions with regards to the minimum directx caps to test for so that I can catch a potential…
Belliez
  • 5,356
  • 12
  • 54
  • 62
0
votes
0 answers

Flip texture in DirectX9 (Managed)

I need to flip the texture vertically or horizontally. I use the following code for this: //We are use textures Format.X8R8G8B8, so int bytesPerPixel = 4; int pitch; GraphicsStream srcGs =…
0
votes
0 answers

Rectangular Area Light Using In

I want to implement Area Light Exact like below link http://blog.selfshadow.com/sandbox/ltc.html Using directx-9 how I should start.
Parwez Akhtar
  • 243
  • 1
  • 3
  • 13
0
votes
1 answer

Area Light Implementation with directx9 or DX11

I want to implement AreaLight Using Directx 9 Plz help me that how I can start. I Studies Two three link but enable to implement in RenderMonkey or Direct With Sample
0
votes
0 answers

C# MDX device.Reset failure on form minimize

I'm using Managed DirectX/C#/WinForms for some graphics and video rendering. I'm using my own SwapChain and setting Device.IsUsingEventHandlers = true, otherwise my for OnDeviceLost and OnDeviceReset event handlers don't get called (why?) So, when…
Jim
  • 25
  • 2
  • 8