directx

Can a DirectX surface be plotted to a WPF control?

浪子不回头ぞ 提交于 2019-11-29 02:34:10
Can DirectX be used to plot a set of points on a WPF control (or something that can be used by WPF). I need to implement a control in WPF that should plot 16k points with an update rate of 30 Hz, and i'm running out of solutions rigth now. This idea is from a comment in this question. Any help would be very appreciated. Yes it can. It's usually quite smooth, because WPF itself is an implementation of DirectX. See MS' Greg Schechter blog: Redirecting GDI, DirectX, and WPF applications You can also have a sample of D3DImage on a surface on WPF from Codeproject: http://www.codeproject.com/KB/WPF

OpenGL or DirectX? [closed]

心已入冬 提交于 2019-11-29 01:30:38
I know this is probably a very subjective question, but I just want to start with the one which is the easiest and fastest to learn, so that I can get started with a small project of mine as fast as possible, it's a a little 2D game, to start with at least.. Which one would you recommend me to go with? And I'm using C++ First question: Are you on Windows? If not, use OpenGL. If you're on Windows, this will come down to a matter of taste. The APIs are different, but the concepts required are very similar for both OpenGL and DirectX. Most things are supported on both, although they do work a bit

Fullscreen DirectX Overlay? Yes.. again C#

折月煮酒 提交于 2019-11-28 23:22:26
It looks like this question has been asked multiple times each in a different context and I have made some strides in making an overlay for a game (This is for informational data, etc..). I Would also like to make it inter-actable like Steam and XFire. I have managed to get an overlay for a directx game while its in window mode... kinda. I have looked all over stack overflow and google without a lot of luck. If required, I can try this in C++ instead of C#. I know C# but I don't consider myself to be a professional by any means. Just need a better explanation. Heck I will be willing to put

WPF and DirectX - Game Overlay

时间秒杀一切 提交于 2019-11-28 22:00:29
Greetings I've read WPF utilizes DirectX so I'm wondering if it is possible to create a Game Overlay with WPF. I have tried with Winforms or WPF by itself and the transparent forms or windows always cause problems for streaming software thus I'm wondering is it possible to do the following: Create a WPF application which shows a Window on the desktop with all the options needed for the overlay. Once all the options is filled in you can press Update and the Overlay is created in the game with all the information on it. The WPF app itself won't be visible on the stream. This means all the

Faster method of reading screen pixel in Python than PIL?

三世轮回 提交于 2019-11-28 21:38:54
问题 Currently I'm using a pixel reader via AutoItv3 to perform some actions in a program that is running direct X; A game. Right now the program works fine but as an exercise I've been rewriting it in python. Right now I can do: import ImageGrab # Part of PIL image = ImageGrab.grab() #Define an area to capture. rgb = image.getpixel((1, 90)) #What pixel do we want? And that grabs the pixel info I want just fine, but I'm doing this quite rapidly (needs to be done 3x a second or faster), but the

How do you draw text in DirectX 11?

旧城冷巷雨未停 提交于 2019-11-28 20:41:45
In DirectX 10 you could use the font interface provided by D3DX10. In DirectX 11 you are supposed to use DirectWrite. But it looks like DirectWrite doesn't speak natively to Direct3D? Is there something basic I'm missing? How do you draw simple text with DirectX 11? Zee Edit 2014: As pointed out in comment, the link to RasterTek tutorials no longer functions, here is a link to Webarchive of RasterTek provided by RadioSpace . The second point of the original answer is no longer valid either, because its now possible to share D3D11 backbuffer with Direct2D and through it draw text with

DirectX SDK vs Windows SDK: which one to use?

岁酱吖の 提交于 2019-11-28 19:42:25
I have an old game engine (sort of) based on DirectX 10, which I've been planning to move to DX 11. I have also just installed Windows 8 and VS 2013 and, while trying to run this old project I've learnt that DirectX SDK has been deprecated and now replaced by Windows 8 SDK. In this case I wonder whether it makes sense to update to DX 11 or should I try and make my engine use the new Windows 8 SDK. There are several things I'd like to know before I make the decision: 1) Is Windows 8 SDK the thing to learn now or is DX 11 still relevant? Like, if you want to learn C++ you should learn C++11, so

How do I use Hardware accelerated video/H.264 decoding with directx 11 and windows 7?

混江龙づ霸主 提交于 2019-11-28 19:18:35
问题 I've been researching all day and not gotten very far. I'm on windows 7, using directx 11. (My final output is to be a frame of video onto a DX11 texture) I want to decode some very large H.264 video files, and the CPU (using libav) doesn't cut it. I've looked at the hwaccel capabilities of libav using DXVA2, but hit a road block when I need to create a IDirectXVideoDecoder, which can only be created with a D3D9 interface. (which I don't have using DX11) Whenever I've looked up DXVA

How to programmatically disable the auto-focus of a webcam?

我怕爱的太早我们不能终老 提交于 2019-11-28 18:55:27
I am trying to do computer vision using a webcam (the model is Hercules Dualpix). I know it is not the ideal camera to use, but I have no choice here. The problem is the auto-focus makes it hard/impossible to calibrate the camera. Anyone knows a way to disable the auto-focus feature. Or, if someone has an idea to deal with it and calibrate the camera with the auto-focus. The Hercules cameras are UVC compliant, so they should work with the DirectShow Interface IAMCameraControl . You can set the focus to a specific value, and use the flags to set that you do not want it to be automatic. You can

OpenGL/DirectX Hook - Similar to FRAPS

好久不见. 提交于 2019-11-28 18:55:00
Is it possible to detect what applications are using OpenGL or DirectX similar to what FRAPS does? (Possibly using some form of hook)? I probably won't need to actually draw to the window, I just need to know what processes are doing some form of 3D rendering for the time being. (Edit:) In case you are not familiar with it, FRAPS is a program that can be used to draw a "Frame-per-second" counter on a 3D application. FRAPS finds all running 3D applications by itself without needing you to specify the process name. Example of "Frame Per second" counter drawn to external game: Probably the