directx

How hard would it be to port a directx 7 application to run on Windows 7?

We had an arcade/redemption game running on Win98, but hardware which can run it has finally gone obsolete. The game used a number of scaling effects, some through the 3D path, and played some tricks moving things in and out of video memory. If I was to undertake porting it to run on Windows 7, how much trouble would it likely be? Wou...

how to add custom prerequisite for a remote client in a clickonce installer?

Hi, i made a click once installer, in that i added direct X as a custom prerequisite. when i make the installer on my local machine only then the installation of DirectX works fine. but i need to make a clickonce deployment for the web so that a person can remotely access my installer and download it. when i am adding a custom pre...

Debugging directx pixel/vertex shaders?

I'm trying to figure out how to debug pixel and vertex shaders in DirectX, I've tried using Pix for Windows but find it to be quite buggy and effectively non-operational. Is there an alternative that would allow me to debug these shaders inside my own application? ...

Direct3d/C# - Blur area under a rectangle drawn on a sprite

Any idea how to do it? I am drawing a rectangle that is supposed to be a half-transparent window. I managed to do the transparency by drawing a half-transparent texture, but I also want to blur whatever is under the window. Normally (eg. using GDI) I would create a bitmap of the area, blur it and paint it as the background of my window...

I need a UI-Editor for my custom Direct-x UI

I have developed a custom DirectX UI library equipped with everything from buttons to a gridview. I need a screen-layout editor of some sort. It just takes too long to do it by hand, whether through a config file or hard-coding. I could spend a month or two developing a DirectX editing utility, but I don't have a month or two to spen...

Installing multiple directx sdk versions

I have some DirectX applications I developed in college using DirectX August 2007 SDK. I would like to have August 2007 and the latest SDK installed so I can port my application to the newest framework. Does anyone have experience with having multiple frameworks installed, or is it discouraged? Thanks ...

How compatible is DirectX with Click Once installer Deployment?

Hi I added DirectX 9c as a prerequisite in my VS2008 publish. On running the installer it does not install directx on my m/c. The exe file only extracts the directx zipped files in the folder and starts my application. The directX does not get installed on my m/c Why is it so?? Can anybody help.. for long i am struck on this proble...

Display active window for video in custom allocator

I am displaying video over panel using custom allocator sample, for some file it play video on some active window and this show separately . how can i avoid this unwanted window to be open. ...

how does the d3dx library save textures to files?

When using the function: D3DXSaveTextureToFile and passing in D3DXIFF_BMP to create a bmp I've noticed that the values seem to be estimated rather than given specifically. Correct me if I'm wrong but a floating point texture can store any float in any given texel which would put it outside the range of a BMP which is stuck between rgb(2...

How do I set a pixel color in a texture using ManagedDX?

Hey guys, I need to set a specific pixel in a texture to a custom color, for doing that I made a Bitmap and I always set the pixel in the bitmap, then I recreate the texture from the bitmap. Doing that is very time consuming, is there any way to modify the pixel directly in the texture? ...

Direct3D Texture Post-Processing/Copying

So I'm trying to implement some Direct3D post-processing, and I'm having issues rendering to textures. Basically, my program looks like this: // Render scene to "scene_texture" (an HDR texture)... ... device->SetRenderTarget(0, brightpass_surface); device->SetTexture(0, scene_texture); // Render "scene_texture" to "brightpass_texture...

How to get camera up vector from roll, pitch, and yaw?

Hello, I need to get an up vector for a camera (to get the right look) from a roll, pitch, and yaw angles (in degrees). I've been trying different things for a couple hours and have had no luck :(. Any help here would be appreciated! ...

What is the most efficient way to keep a steady frame rate with DirectX and C++?

I'm learning DirectX from a book about game programming, and it uses the following method for a game loop: long int start = GetTickCount(); while(true) GameRun(); void GameRun() { if(GetTickCount() - start >= 30) //do stuff } This makes start equal whatever the time is (I'm guessing get tick count gives the number o...

Does d3d9.h include windows.h? (C++)

When I use #include <d3d9.h> in my programs, I no longer need to include windows.h to use windows functions like WinMain, and CreateWindow. Is this because d3d9.h &c. include windows.h? Mainly, I'm wondering if it is possible to substitute windows.h with d3d9.h, etc, and still be able to se any functions I could use with windows.h. ...

SlimDX Assembly Reference

I've installed SlimDX but the assembly reference does not come up as a choice in Visual Studio, and I cannot for the life of me find out where SlimDX has installed itself! Any help would be greatly appreciated! Thank, Mikey ...

How to get pixel shaders version from .NET?

I am writing a WPF application and need to show info about video card installed in the system. I've faced a problem that I can't get pixel version supported by current video card. How can I do this using .NET? (importing of external code, may be DirectX libs, is also a suitable solution). ...

Why doesn't my DirectX program recognize that I've released the escape key? (C++)

EDIT: After even more code modification, the error is still there, modified code shown: KeyDown(): const int input_bit_num = 0x8000; char keys[256]; bool KeyDown(int key) { return (keys[key] & input_bit_num) != 0; } PollKeyboard(): LPDIRECTINPUTDEVICE8 di_keyboard; void PollKeyboard() { long result = di_keyboard->GetDeviceSt...

Can Flex wrap Java applets?

I'm just learning about Flex and I'm loving it. Unfortunatly I still have to make the decision on which RIA technology to use and its dependent on, among other things, from the following case: How can we wrap a java applet around a Flex application? More specifically, I would like to wrap/integrate NASA's World Wind applet in a Flex pan...

HLSL declaring a pass with angle brackets containing values..

In the directx post process sample the downfilter FX has the following code in it: //----------------------------------------------------------------------------- // Technique: PostProcess // Desc: Performs post-processing effect that down-filters. //----------------------------------------------------------------------------- technique...

Has any one Used DMO in C#?

Has any one Used DMO (Microsoft DirectX Media Objects) in C#? Not using DShow. Any Libs, Wrapers, etc? ...