directx

Can a DirectX surface be plotted to a WPF control?

China☆狼群 提交于 2019-11-27 17:02:30
问题 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. 回答1: 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

OpenGL or DirectX? [closed]

淺唱寂寞╮ 提交于 2019-11-27 16:16:50
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . 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,

Fullscreen DirectX Overlay? Yes.. again C#

纵饮孤独 提交于 2019-11-27 14:53:22
问题 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

Display Different images per monitor directX 10

流过昼夜 提交于 2019-11-27 14:12:24
问题 I am fairly new to DirectX 10 programming, and I have been trying to do the following with my limited skills (though I have a strong background with OpenGL) I am trying to display 2 different textured Quads, 1 per monitor. To do so, I understood that I need a single D3D10 Device, multiple (2) swap chains, and single VertexBuffer While I think I'm able to create all of those, I'm still pretty unsure how to handle all of them. Do I need multiple ID3D10RenderTargetView(s) ? How and where should

How do you draw text in DirectX 11?

泪湿孤枕 提交于 2019-11-27 13:03:59
问题 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? 回答1: 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,

Forcing NVIDIA GPU programmatically in Optimus laptops

↘锁芯ラ 提交于 2019-11-27 11:49:34
I'm programming a DirectX game, and when I run it on an Optimus laptop the Intel GPU is used, resulting in horrible performance. If I force the NVIDIA GPU using the context menu or by renaming my executable to bf3.exe or some other famous game executable name, performance is as expected. Obviously neither is an acceptable solution for when I have to redistribute my game, so is there a way to programmatically force the laptop to use the NVIDIA GPU? I've already tried using DirectX to enumerate adapters (IDirect3D9::GetAdapterCount, IDirect3D9::GetAdapterIdentifier) and it doesn't work: only 1

Hook/Overlay a DirectX game?

荒凉一梦 提交于 2019-11-27 11:30:30
Can anyone tell me how to hook/overlay a DirectX game in C#? I've tried getting a fullscreen C# window to overlap a game, however it wont. After researching a little, I found out that I need to hook the game and then display the C# window. Can anyone explain how I would do this? Would I be able to display a C# form over a DirectX game? (disclosure: I work for this company) You can try our Deviare API , it has functionality to hook COM objects from C#. It's a set of COM objects that can be used from any programming language (supporting COM). An article with source code showing how to capture

Comparison between XNA and DirectX (C#)

北城以北 提交于 2019-11-27 10:51:22
In terms of PC development (excluding Xbox and Zune), What is the difference between XNA and C# DirectX? Does C# DirectX have a significant advantage over XNA (in terms of speed, royalties, etc)? How are the two compared to the speed unmanaged C++ DirectX? Where is the industry moving in terms of game programming? Soviut If you're actually good at writing unmanaged code, then you'll probably be able to write a faster graphics engine on top of DirectX. However, for the hobbyist, XNA has plenty of performance, both for 2D and 3D game development. Here is a good Channel 9 video where they run an

How does the centripetal Catmull–Rom spline work?

被刻印的时光 ゝ 提交于 2019-11-27 10:01:59
问题 From this site, which seems to have the most detailed information about Catmull-Rom splines, it seems that four points are needed to create the spline. However, it does not mention how the points p0 and p3 affect the values between p1 and p2. Another question I have is how would you create continuous splines? Would it be as easy as defining the points p1, p2 to be continuous with p4, p5 by making p4 = p2 (that is, assuming we have p0, p1, p2, p3, p4, p5, p6, ..., pN). A more general question

DirectX 总结

强颜欢笑 提交于 2019-11-27 09:49:40
DDS DirectXDraw Surface file format, .dds。 这是微软从DirectX7开始引进的一种文件格式,它用来存储压缩的或未压缩的纹理,该格式支持mimaps cube maps和volume maps, D3DX和许多其他的DX工具都支持这种格式,比如DirectX Texture Editor(dxtex.exe)和Texture Conversion Tool(Texconv.exe),从D3D110开始,DDS文件也支持纹理数组 DXGI DirectX Graphics Infrastructure 转换为.x格式 MeshConvert.exe,这个tool位于Microsoft DirectX SDK \Utilities\bin\x86目录下面,可以用来转换.x文件,支持.x, .obj, .sdkmesh格式之间的相互转换,.sdkmesh是微软新的格式在DX10/DX11之后使用,用来取代.x格式,MeshConvert是一个命令行工具,使用方法如下 Usage: meshconvert <options> <input filename> <input filename> Input mesh filename. The input file can be of .x, .obj, or .sdkmesh format /o