directx

How to use hardware video scalers?

两盒软妹~` 提交于 2019-12-18 15:28:36
问题 Modern graphics cards have hardware video scalers, for example as part of AMD Avivo, NVIDIA PureVideo or Intel ClearVideo. For example, AMD's Avivo whitepaper says: "The image output scalers support up to 6 vertical filter taps and up to 10 horizontal filter taps. These scalers are high-precision polyphase scalers that are highly programmable; they are suitable for upscaling by practically any ratio, or for downscaling by up to 4:1." The question: How can the video scaler hardware be used

Prevent desktop sharing of a particular c# winforms or detect desktop sharing

荒凉一梦 提交于 2019-12-18 15:07:24
问题 While developing an examination software I have a requirement to prevent desktop sharing through applications like TeamViewer, AnyDesk, Ammyy Admin etc or at least detection of it. Our examination software is developed in C#, it's a winform renders question one by one. I don't think detection is that easy as their are so many ways to capture the screen Desktop Duplication API, BitBlt, Direct3D, DirectX, DirectShow and so many. So I started exploring for preventing my c# winform getting

DirectX Screen Capture and Output as Video

空扰寡人 提交于 2019-12-18 13:37:45
问题 I am doing desktop screen capture and wanted the output to be a video file. Currently I have codes getting from here to output png images. I modified the code a bit to change the output to JPEG file and then convert it to avi video output using openCV 3.0.0. Reason I need the JPEG file as output is because I am running on Windows 8.1 and OpenCV VideoWriter::fourcc('M', 'J', 'P', 'G') are the only options that work for me. Output of PNG image works perfectly but not JPEG. There are vertical

Playing a sound from a generated buffer in a Windows 8 app

爷,独闯天下 提交于 2019-12-18 12:35:03
问题 I'm porting some C# Windows Phone 7 apps over to Windows 8. The phone apps used an XNA SoundEffect to play arbitrary sounds from a buffer. In the simplest cases I'd just create a sine wave of the required duration and frequency. Both the duration and frequency can vary greatly, so I'd prefer not to rely on MediaElements (unless there is someway to shift the frequency of a base file, but that will only help me with the single frequency generation). What is the equivalent of an XNA

What are the pros and cons of using Matrices, Euler Angles, and or Quaternions for rotation representation? [closed]

梦想与她 提交于 2019-12-18 11:58:11
问题 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 . Matrices and Euler angles can suffer from Gimbal lock but what are some other arguments for using one over the other? What do you

On Windows, how does OpenGL differ from DirectX?

一世执手 提交于 2019-12-18 11:54:23
问题 I don't have any hands on experience with graphics programming. I got this doubt when I was reading about graphics programming. From what I understand, because Windows didn't offer DOS like direct hardware access, DirectX was created. That means DirectX is the only sure way to achieve direct(ish) hardware access. Am I wrong? If I am not wrong, then OpenGL must be implemented either using DirectX itself or on top of DirectX. So doesn't it mean that on Windows OpenGL is really DirectX? Please

HLSL for getting cylinder effect

帅比萌擦擦* 提交于 2019-12-18 07:14:53
问题 I need to write an application with Silverlight 4 and need to show images like wrapped on cylinder. I need some HLSL code, as I wont to do that with Effects of Silverlight. I don't wont to do that with 3D libarries for silverlight. I only need HLSL code for changing pixels. I need for my image to look like this Thanks. 回答1: This seems to be the effect you want, you may wish to change the 0.2 value to increase or decrease the effect or make this adjustable in your shader but that's a simple

NV_STEREO_IMAGE_SIGNATURE and DirectX 10/11 (nVidia 3D Vision)

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-18 05:11:13
问题 I'm trying to use SlimDX and DirectX10 or 11 to control the stereoization process on the nVidia 3D Vision Kit. Thanks to this question I've been able to make it work in DirectX 9. However, due to some missing methods I've been unable to make it work under DirectX 10 or 11. The algorithm goes like this: Render left eye image Render right eye image Create a texture able to contain them both PLUS an extra row (so the texture size would be 2 * width, height + 1) Write this NV_STEREO_IMAGE

Low polygon cone - smooth shading at the tip

耗尽温柔 提交于 2019-12-18 05:04:25
问题 If you subdivide a cylinder into an 8-sided prism, calculating vertex normals based on their position ("smooth shading"), it looks pretty good. If you subdivide a cone into an 8-sided pyramid, calculating normals based on their position, you get stuck on the tip of the cone (technically the vertex of the cone, but let's call it the tip to avoid confusion with the mesh vertices). For each triangular face, you want to match the normals along both edges. But because you can only specify one

Does XNA effectively replace Managed Directx? [duplicate]

ぐ巨炮叔叔 提交于 2019-12-18 04:46:06
问题 This question already has answers here : Closed 7 years ago . 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. 回答1: Does XNA effectively replace Managed DirectX? According to the wikipedia entry for MDX it does. At least for game development purposes. XNA aims to be a