Все вопросы: [directx]

218 вопросов

1
голосов
2ответов
1108 просмотров

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/integr...

2
голосов
2ответов
2115 просмотров

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(...

1
голосов
1ответов
409 просмотров

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).

2
голосов
1ответов
2746 просмотров

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

0
голосов
3ответов
1562 просмотров

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...

2
голосов
2ответов
3759 просмотров

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...

5
голосов
2ответов
6445 просмотров

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

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!

2
голосов
3ответов
1327 просмотров

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); ...

1
голосов
1ответов
397 просмотров

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?

2
голосов
1ответов
976 просмотров

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 r...

1
голосов
2ответов
384 просмотров

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.

0
голосов
1ответов
260 просмотров

How compatible is DirectX with Click Once installer Deployment?

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.....

2
голосов
3ответов
1950 просмотров

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?...

0
голосов
2ответов
480 просмотров

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 utilit...

1
голосов
2ответов
1967 просмотров

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 a...

1
голосов
4ответов
4581 просмотров

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?

0
голосов
1ответов
403 просмотров

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

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 ...

0
голосов
3ответов
2203 просмотров

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,...

1
голосов
2ответов
634 просмотров

What creates the three close/minimize/maximize icons in the top corner of a window? (C++)

I am making a C++/Windows/DirectX program, and when it runs in windowed mode (using d3dpp.Windowed = (!FULLSCREEN); where FULLSCREEN is defined as 0), the three icons that are usually at the top of any window (minimize, maximize/restore, and close) are not there. Also, it's not like just an i...

5
голосов
3ответов
1378 просмотров

Position of fields (position, normal, etc.) in a D3D9 vertex

I'm trying to read 3D models which were created for a DirectX applications, which are defined in the following way : In the file header, the Flexible Vertex Format (FVF) of the mesh is given (actually, I have any combinations of D3DFVF_{XYZ,DIFFUSE,NORMAL,TEX1,TEX2} in the meshes I tested) Then...

1
голосов
1ответов
865 просмотров

Mouse click detection and Transformation2D in Direct3D

I use Sprites to draw images in a D3D window. I draw an image on every sprite within a rectangle (0, 0, width, height) and use Matrix.Transformation2D to place the image in the rendered view. Example: using (Sprite s = new Sprite(device)) { s.Begin(SpriteFlags.AlphaBlend); Matri...

0
голосов
3ответов
98 просмотров

How to lower loading time of DirectX?

I am making a C++/Windows/DirectX program that requires the functions d3d = Direct3DCreate9(D3D_SDK_VERSION); and d3d->CreateDevice(...); when I run the program, these to init functions take particularily long to work (not long, but noticible). Is there any way to shorten the loading ti...

1
голосов
1ответов
316 просмотров

MS API Code Pack - Will it support future versions of DirectX?

I'm working on deciding between Managed DirectX (through MS API Codepack), SlimDX library (managed wrapper for DirectX), XNA (managed wrapper++ for Directx9 only), or unmanaged Directx (20%+ extra development time). So, the MS API Codepack interests me, because it has support for DirectX. Howev...

0
голосов
3ответов
215 просмотров

Why check only certain values for errors? (C++?)

I recently started learning DirectX/Windows, and the book I'm learning from had the code d3d = Direct3DCreate9(D3D_SDK_VERSION); if(d3d == NULL) //catch error &c. My question is: What would cause an error in this line, that is different than what would cause an error in another line (s...

9
голосов
2ответов
1671 просмотров

Does XNA effectively replace Managed Directx?

Possible Duplicate: Comparison between XNA and DirectX (C#) The subject speaks for itself. Does XNA effectively replace Managed DirectX? We have a few projects using managed DirectX in VB.NET. I was considering porting one over to XNA, but wonder whether it's worth the effort.

3
голосов
4ответов
2935 просмотров

3D graphics in Delphi/Native TForm GUIs

What is the easiest way to do accelerated 3D graphics inside a TForm in Delphi?

1
голосов
1ответов
812 просмотров

"Wrap-around" effect with a Direct3D.Texture

Given a destination rectangle and an x/y offset value, I need an image to be drawn within the confines of that destination rectangle. If the offset would push the image off the edge of the rectangle, then the part that "pushes out" should appear on the opposite side of the destination rectangle. ...

8
голосов
7ответов
10193 просмотров

Want to learn to write 2d games

Hey stackoverflow Community! I learned the basics of C# (i can write some Form-Applications) and now I want to learn how to write 2d games. I don't know where to start. Is there a engine that's good for 2d games? After learning the basics of 2d I'll want to write simple games which work under win...

0
голосов
1ответов
1164 просмотров

How does clickonce installer installes prerequisites that are not mentioned on the prerequisites list

I want to package DirectX 9 with my installer as it is necessary for my software to work. Can you please tell me how can i do that? I tried doing this thing. I went to the heading under prerequisite tab, download prerequisites from the following location and pasted the url for DirectX, which is...

0
голосов
3ответов
1278 просмотров

Extract frame from VOB(DVD) file

I need to generate thumbnail from video files, i m using IMediaDet to get frame from video, it not working for (*.vob) file DVD, how can i get thumbnail from DVD in C# ..