directx

Hardware Accelerated Image Scaling in windows using C++

坚强是说给别人听的谎言 提交于 2019-12-11 00:36:20
问题 I have to scale a bitmap image (e.g 1280 x 720 to 1920 X 180 and vice versa). I am using this scaling in video capturing from screen. Software based scaling consumes lots of CPU scaling and slower as well. Is there any hardware accelerated API or library to perform scaling? Some methods are discussed in thread How to use hardware video scalers?. Buts no final conclusion. Support Needed : Windows 7 onwards 回答1: If you have a a IDirect3DTexture9 of the image to be scaled, you can use

DirectX: How to draw smooth 2D water (particle based water)

眉间皱痕 提交于 2019-12-11 00:32:30
问题 I recently got a water simulation using particles (1000-1500) working (using the stokes equation), but my problem is that I use a IDXSprite which just draws the particles using blue texture quads (7x7), that doesnt look very smooth. Is there any way or known technique for drawing such systems so the surface will look smooth (and the water shouldnt have the edges from the textures in it) 来源: https://stackoverflow.com/questions/6316307/directx-how-to-draw-smooth-2d-water-particle-based-water

How to develop DirectX applications? [closed]

懵懂的女人 提交于 2019-12-11 00:14:20
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . Is there a way, on 2017, to develop a DirectX application using either C# or Basic? I'm using Visual Studio 2017 with Framework 4.5.2 and I'm having a hard work trying to install/find the DirectX SDK references on Visual Studio. Should I be using a dedicated IDE or am I doing

How to capture desktop on windows so that it would capture both directX and normally rendered parts of screen?

房东的猫 提交于 2019-12-10 22:34:56
问题 Simple example - on one side we see camera rendered via standard software rendered "Input" on other hand (labeled "Output") rendered via some directX stuff (at least it seems to me) : So what function is provided by windows api or DirectX api for capturing such mixed scenes? 回答1: TightVNC Server can do it, you may want to look into what they are doing. From a simple glance through their source code it looks like they are creating a virtual screen that mirrors the primary screen. Specifically

DirectX with VB.NET

无人久伴 提交于 2019-12-10 22:19:23
问题 Is there a set of documentation on DirectX (9 or above) that shows the objects, methods, properties, events and samlple code for the use of DirectX (9 or above) with VB.NET? The most recent SDK includes details for C++ and the "Windows DiectX Graphics documentation" file doesn't contain these details. 回答1: I think the most sane idea here is to use SlimDX (a user mantained very good wrapper). Cause remember that Managed DirectX is NO LONGER supported or updated by microsoft. (the support

Scaling of the point sprites (Direc3D 9)

旧巷老猫 提交于 2019-12-10 21:56:06
问题 Tell me please what values should ​​I set for D3DRS_POINTSCALE_A, D3DRS_POINTSCALE_B, D3DRS_POINTSCALE_С to point sprites scaled just like other objects in the scene. The parameters A = 0 B = 0 and C = 1 (proposed by F. D. Luna) not suitable because the scale is not accurate enough and the distance between the particles (point sprites) can be greater than it should be. If I replace the point sprites to billboards, the scale of the particles is correct, but the rendering is much slower. Help

Transferring textures across adapters in DirectX 11

大兔子大兔子 提交于 2019-12-10 20:54:13
问题 I'm capturing the desktop with the Desktop Duplication API from one GPU and need to copy the texture (which is in GPU memory) to another GPU. To do this I have a capture thread that acquires the desktop image then copies it to a staging resource (created on the same device) using ID3D11DeviceContext::CopyResource. I then map that staging resource with Read, map the destination dynamic resource (which was created on the other device) with WriteDiscard and copy the data. On the rendering thread

How to create IDWriteTextFormat from IDWriteFontFace

人盡茶涼 提交于 2019-12-10 19:19:09
问题 I'm creating W8 C++/CX DirectX application and I'm trying to use custom font file from application own storage. I figure out how to use IDWriteFactory::CreateFontFileReference to load IDWriteFontFile from directory and then how to create IDWriteFontFace from it. What I don't know now is how to use IDWriteFontFace for loading IDWriteTextFormat , if it is possible at all. Should I do this though IDWriteFontCollection ? Sorry if the answer is really stupid and trivial, I am very new to DirectX

Error playing video using Microsoft.DirectX.AudioVideoPlayback; assembly version error

早过忘川 提交于 2019-12-10 18:13:46
问题 I am trying to embed video on c# windows form based application, using assembly Microsoft.DirectX.AudioVideoPlayback but getting following error Mixed mode assembly is built against version 'v1.1.4322' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information. I am using Visual Studio 2010 .NET version 4.0 Microsoft DirectX SDK is also installed Any link for updated version of library or any alternative? Code: using Microsoft.DirectX

What percentage of Windows boxes have OpenGL support [closed]

ⅰ亾dé卋堺 提交于 2019-12-10 18:12:10
问题 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 7 years ago . 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