directx

How to copy the pixel data from a texture into a bitmap (direct3d)?

I have rendered the scene into a texture, and then I want to save it into a bitmap, but after lock the texture, I found there is no pixel data in the lock area. The texture can be displayed correctly on the screen. I am not sure why? 1> the format is incorrect? A8R8G8B8 has been used. 2> have I missed some important steps before get the ...

C# Grab frame from wmv file

Hello, Does anyone know if it is possible to grab a frame/image from a video (.wmv) on position X using C# without installing DirectX and working on Windows 2008 (a webserver I would like to install as less as possible). Or even a simple solution with directx could be nice. Henk ...

Using a font from a ttf file in windows / direct3d

I'm using direct3d 9 and using D3DXCreateFont to create a font object that I can use to write text to the screen. However I want to use a font I have in TTF file instead of an installed font. Is there any way to create a font object from a TTF file without first installing the font into windows which I don't want to do? ...

DXGetErrorString newbie question

Hello, I'm new to C++ and Direct X, and I was wondering what is the proper use of DXGetErrorString and DXGetErrorDescription? According to http://msdn.microsoft.com/en-us/library/bb173057(VS.85).aspx and http://msdn.microsoft.com/en-us/library/bb173056(VS.85).aspx, these functions return a pointer to a string. However, in all the examp...

DirectX application on 64 bit windows

I am developing a WPF application where the 3D part is handled by DirectX 9 (a lot of 3d that did not run fast enough using WPF). The problem is the application is released with "Any CPU" as configuration and when a user runs it on a 64 bit windows, the direcX part crashes (System.BadImageFormatException). Apparently the dlls included ...

Direct3D & iPhone Accelerometer Matrix

Hi All, I am using a WinSock connection to get the accelerometer info off and iPhone and into a Direct3D application. I have modified Apples GLGravity's sample code to get my helicopter moving in relation to gravity, however I need to "cap" the movement so the helicopter can't fly upside down! I have tried to limit the output of the acc...

How do I get input from an XBox 360 controller?

I'm writing a program that needs to take input from an XBox 360 controller. The input will then be sent wirelessly to an RC Helicopter that I am building. So far, I've learned that this can be done using either the XInput library from DirectX, or the Input framework in XNA. I'm wondering if there are any other options available. The ...

What is the industry standard IDE for Game Development?

I'm guessing this depends on the OS, among other things. I would guess that development for Windows using DirectX would "force" people to use Visual Studio, but is that always the case? What about when OpenGL is the graphics API? How about Java? Is Eclipse the norm? UPDATED: I guess the general consensus is that there aren't really...

Showing big images by DirectX faster?

Hi All, as developer of industrial vision applications I frequently have rather clunky images like 6000x4000Pixels and bigger. While the camera and imageprocessing is working on a steady stream of new images (and this processing is the main task) I would like to allow the user to comfortably view some other image in parallel. Doing th...

Question regarding guidInstance in DirectInput library; also deals with enumeration of devices.

Regarding guidInstance in DIDEVICEINSTANCE Microsoft says: Unique identifier for the instance of the device. An application can save the instance globally unique identifier (GUID) into a configuration file and use it at a later time. Instance GUIDs are specific to a particular computer. An instance GUID obtained from one computer is...

directx basic capability testing

Hi, 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 failure before trying to run the application. The directx application only displays a ...

Is using a Windows handle to make DirectX calls from bgnd thread safe?

I am debugging an app that is (mostly) a Winforms UI on top of unmanaged code. A little bit of the UI code is not WinForms: it is using DirectX to draw directly onto the surface of some Panel components. In order to do so, the windows handle of the component is recorded after it is created, and any subsequent calls requiring a handle tha...

Take screenshot of any external application using C#

We have a C# (WPF) application in which we want to take a screenshot of an arbitrary application launched by us (i.e. so we have a reference to the Process we started). The application may be minimized or behind other windows but we still only want the image of the individual application, not overlapping pixels. I know the typical P/In...

What percentage of Windows boxes have OpenGL support

I've been thinking about starting a new graphics project and I want to use Java. Java has wrappers for all of the relevant GL functionality but I wonder how many people, including casual users, actually have decent GL drivers installed. By decent, I mean somewhat stable and fairly new (GL 1.5 support would probably do although the GLSL...

How do I Resize entire screen?

I want to be able to re size everything that is displayed - taskbar, windows, desktop - everything and put it in a border. What is the best way to accomplish this? I'm thinking DirectX, but I am not that familiar with it. I'm not sure what technologies would accomplish this, but I bet it would have to be rather low level. ...

Java applets with hardware accelerated 3D graphics? OpenGL and/orDirectX

I can't find a clear answer to this question with all my googling. If I want a web applet, is there a library in Java that takes advantage of the hardware accelerated graphics drivers on the client's machine, as in OpenGL and directx? I'm picturing writing some driver detection code before the applet launches to detect 3D graphics capa...

DirectX programming on Windows, what is the preferred way?

I need to develop a part of a business application in a flashy eye candy way. Therefore wanted to see if I can use DirectX. Here's what I got. First I read how using C/C++ is like shooting yourself on the foot and I should use DirectX.NET instead. I couldn't disagree. It's the 21st century. Downloaded DirectX SDK but couldn't find the ...

About Direct2D and DirectWrite features

Is anybody know how to enable Direct2D and DirectWrite features in XP and Vista? Direct2D and DirectWrite were introduced in Windows 7. ...

DirectShow.NET BitmapMixer Sample Using Direct3D Surface

I am trying to modify the DirectShow.NET BitmapMixer sample app to use a surface that is rendered with Direct3D. Instead of creating a Surface based on a GDI rendered bitmap, I am creating my surface like this: surface = new Surface(device, new Bitmap(1024, 768, PixelFormat.Format32bppArgb), Pool.SystemMemory); sprite = new Sprite(dev...

Is DirectX on Java possible?

Is there an easy way to use DirectX in Java? In particular, DirectX's video APIs. I know that C# might be a more natural choice, but I have my devious reasons for wanting to do something so perverse. ...