directx

Is it worth porting a small C# "engine" to C++ or similar?

So, following a tutorial I found on MSDN I've created what you might call an "engine" using DirectX and C#. I haven't seen a lot of this sort of thing (Personally, that is) done in C# and the majority seem to favour C/C++ so I'm curious as to whether using C# will come back to bite me, or whether I should just go ahead? The reason I ask...

Why Direct3D application performs better in full screen mode?

The performance of a Direct3D application seems to be significantly better in full screen mode compared to windowed mode. What are the technical reasons behind this? I guess it has something to do with the fact that a full screen application can gain exclusive control for the display. But why the application cannot gain exclusive contro...

VMR9Allocator (DirectShow .NET + SlimDX)

I was trying to convert and run the VMR9Allocator sample for DirectShow .NET with SlimDX instead of MDX. I got an exception when it reach this line return vmrSurfaceAllocatorNotify.SetD3DDevice(unmanagedDevice, hMonitor) In the AdviseNotify method in Allocator.cs. The exception is "No such interface supported", and the hr return was ...

nVidia SLI Tricks

I'm optimizing a directx graphics application to take advantage of nVidia's SLI technology. I'm currently investigating some of the techniques mentioned in their 'Best Practices' web page, but wanted to know what advice/experience any of you have had with this? Thanks! ...

FFMPEG Frame to DirectX Surface

Given a pointer to an AVFrame from FFMPEG's avcodec_decode_video() function how do I copy the image to a DirectX surface? (Assume I have a pointer to an appropriately sized DX X8R8G8B8 surface.) Thanks. John. ...

Microsoft.DirectX.Vector3.Normalize() inconsistency

Two ways to normalize a Vector3 object; by calling Vector3.Normalize() and the other by normalizing from scratch: class Tester { static Vector3 NormalizeVector(Vector3 v) { float l = v.Length(); return new Vector3(v.X / l, v.Y / l, v.Z / l); } public static void Main(string[] args) { Vector3 ...

Transform a Direct3D Mesh

I tried to write a TransformMesh function. The function accepts a Mesh object and a Matrix object. The idea is to transform the mesh using the matrix. To do this, I locked the vertex buffer, and called Vector3::TransformCoordinate on each vertex. It did not produce expected results. The resulting mesh was unrecognizable. What am I doing...

Pass texture using pointer across process

It's hard to put this into the title, so let me explain. I have an application that uses Direct3D to display some mesh and directshow(vmr9 + allocator) to play some video, and then send the video frame as texture to the Direct3D portion to be applied onto the mesh. The application needs to run 24/7. At least it's allowed to be restarted...

3d files in vb.net

Hi, I know this will be a difficult question, so I am not necessarily looking for a direct answer but maybe a tutorial or a point in the right direction. What I am doing is programing a robot that will be controlled by a remote operator. We have a 3D rendering of the robot in SolidWorks. What I am looking to do is get the 3D file into ...

C# - Can't resolve XInput namespace in DirectX SDK (November 2008)

Hi, i'm just starting to play around with directx and i've read a few articles on the internet that use xinput to interface with the xbox controller. but when i try to use it in my c# app, i can't seem to find the correct assembly to reference. from what I understand, it's supposed to be in Microsoft.DirectX.dll (namespace Microsoft.Di...

Correct way to handle 2D z-indexing in a 3D scene (DirectX)

I need to achieve the following: Two 2D quads appear as though they are stacked one on top of the other (like two halves of the same texture) but are in fact seperated on the z axis by n coordinates. So that if a 3D object passes between them one half appears in front of the object and the other behind. Could i achieve this by applying...

Good DirectX reference book

I'm looking to buy a good DirectX reference book for offline reading. I'd like it to be more advanced then not, DirectX 9 ideally but prepared to buy 10 if it looks/sounds good. Thanks! ...

Draw Text Over Video in Managed DirectX with C#

How can I draw text Over Video in Managed DirectX with C#? ...

Resources for Development Using DirectX in C#?

Could some one provide me some good resources for development using DirectX in C#? ...

SDK for Avatars (such as Wii, XBOX 360 avatars)

What are some software packages available to provide 90% of the avatar functionality for my games? My favorite is xbox's Avatar system (but I want it in my PC games). I need the ability to customize the looks of a person (body, clothes, etc...). ...

SlimDX - how did you find it?

Has anyone out there used the SlimDX library for something serious (e.g., commercial) work? How did you find the library? Is it production-ready? ...

PrintWindow WPF / DirectX

Anyone know of a way to reliably take a snapshot of a WPF window? The PrintWindow api works well for "standard" win32 windows but since WPF uses DirectX, PrintWindow fails to capture an image. I think that one would need to grab the front buffer for the DirectX object associated with the window, but I am not sure how to do that. Thanks!...

DirectX Version on Windows XP SP3

What is the version of DirectX that is installed by default with Windows XP SP3? Google did not yield convincing results on this. ...

2nd call to Device.Reset in DirectX throws an InvalidCallException

I've been working on a DirectX application in C#, and I noticed that when I lock the workstation, the DirectX "Device" becomes lost. After looking up the information about what to do upon when a device is lost (and when a DeviceLostException is thrown by Device.Present), I re-wrote the code to reset the Device. This simply meant that I m...

Most Common 3D Model Format?

It's been about two years since I last developed games, and I am interested in starting a new project. What is the most common open-source 3D model format? I am looking for a format that would preferably have a lot of either public domain or open-licensed models existing. Last I checked, MD5 was the most common animated model format, a...