Click here to Skip to main content
15,886,067 members
Everything / Multimedia / DirectX

DirectX

DirectX

Great Reads

by Dr. WPF
.NET 3.5 SP1 is here! It's time to break out your DirectX skills. This article provides the information necessary to get started using a new DirectX interop feature in WPF called D3DImage.
by shunninghuang
CPS1 emulator, ROM hacking
by Maxim Kartavenkov
Article describes how to make H.264 Video Encoder DirectShow Filter using NVIDIA encoder API in C#
by CMalcheski
Thinking outside the box can result in critical performance gains

Latest Articles

by Michael Chourdakis
An introduction to machine learning with working C++ code that trains a linear regression model.
by Michael Chourdakis
DirectX hardware screen capture and encoding with audio mixing capabilities. H264/H265/VP80/VP90/FLAC/MP3. HDR supported.
by Shao Voon Wong
Lee Algorithm Mazesolver in MFC and Direct2D
by ColleagueRiley
A multi-platform single-header very simple-to-use framework library for creating GUI Libraries or simple GUI programs.

All Articles

Sort by Title

DirectX 

4 Apr 2007 by Perry Marchant
An article on decoding Ogg Vorbis audio files in .NET.
19 Apr 2005 by Karel Donk
Describes how to do 2D Blits in DirectX 9 with direct surface access between various surface formats (using color conversion).
28 Jan 2020 by Tatyana Entin
32-bit depth Icons become invisible while connecting second display and choosing "Control Panel\Display\Change Display Settings\Multiple displays: extend these displays" setting. I draw icons in my MFC\C++\ATL Windows application using ::DrawIconEx( hDC, x, y, hIcon,W,H,NULL,NULL, DI_NORMAL)...
28 Jan 2020 by Rick York
This is a real shot in the dark here but check the icons and see what their alpha channel looks like. If it is completely black they might be interpreted as being fully transparent.
27 Feb 2013 by MetaMapper (Andy Powell)
How to program hardware accelerated 3D graphics for Windows 8 Store apps and Windows Phone apps using XNA.
21 May 2009 by Tommi Laukkanen
A KD-Tree which stores axis aligned boxes.
18 Sep 2005 by Igor Stjepanovic
In this project I demonstrate how to write a simple 3D rendering application in a relatively small amount of code.
28 May 2012 by KCorazza
Hi to all,I've to start a new windows project in C# where it is necessary to view 3D data in different way. I don't know which technology use: OpenGL or DirectX ?Which technology offer the best performance ?Do you know OpenGL and DirectX wrapper that allow the programming life more...
18 Jan 2019 by ilostmyid2
hi i'm in the process of deciding how to decode received video frames, based on the following: 1. platform is Windows. 2. frames are encoded in H264 or H265. 3. GPU should be used as much 4. certainly we prefer less coding and simplest code. we just need to decode and show the result on screen....
18 Jan 2019 by RickZeeland
Maybe the easiest way is to use LibVLC (which use ffmpeg too), see example here: .net - How to streaming video via VLC api in C# - Stack Overflow[^]
17 Apr 2017 by Atakutabrak
I build project with Microsoft Visual Studio 2010 and get this Error "Unhandled exception has occured in your application.." when play video in project, problem solve with disable LoaderLock in VS2010 toolbar Debug, Exceptions.. , Managed Debugging Assistants, Uncheck LoaderLock but after I...
11 Apr 2017 by User 4180254
Put the code in TRY-CATCH to capture actual error you need to address.. try { videoFile = new AudioVideoPlayback.Video(file) videoFile.Owner = pnlVideo VideoFile.Play() } catch(Exception ex) { // you can get exception information here.. }
17 Apr 2017 by Jochen Arndt
Your complete approach is wrong. Instead of disabling the exception you should find the cause and fix that. Ignoring the execption may lead to a deadlock: loaderLock MDA[^]: Effect on the Runtime Typically, several threads inside the process will deadlock. One of those threads is likely to be...
28 Apr 2011 by Kozlov_Sergey
How can i scale (stretch) ID3D10Texture2D in Direct3D 10?
25 Apr 2011 by Himansu sekhar bal
http://msdn.mi...
28 Apr 2011 by Kozlov_Sergey
Here is the function HLSL shader from c++ funtion[^]
18 Apr 2013 by lxdfigo
A 3D Game Based on Ogre, ODE, 3D Max, CEGUI and so on
6 Feb 2005 by Bob Ciora
Definition of the CDSSD3DView8 class, a CView-derived class to facilitate Direct3D development with SDI.
1 Nov 2009 by Ali Tavakol
Fast, real, and easy to connect to your application.
29 Mar 2004 by BlackDice
Lets user create and manipulate 3D DirectX models.
22 Feb 2010 by Aric Wang
The article will give you an idea on how to design a source filter.The source filter creates samples and outputs it from its output pin.
8 May 2008 by Davidwu
A Cool Vista Sidebar Gadget Style CPUInfo Animate Control! (Fixed)
2 Apr 2001 by Jason Troitsky
A CStatic derived class that can be dropped into an application to provide the ability to load and display 3D objects
16 Oct 2008 by Paul M Watt
An interpretation of a popular falling block game implemented with DirectX that attempts to avoid any copyright infringement.
9 May 2019 by Michael Chourdakis
Create music easily
6 Feb 2013 by Jarno Burger
A managed wrapper around FreeFrame, to give your video frames some cool effects
6 Oct 2009 by John Hilton
Simple yet comprehensive viewing code for OpenGL and Direct3D.
7 Nov 2009 by Ali Tavakol
Fast, beautiful, real and easy to connect to your application
11 Dec 2010 by logicchild
An article that desribes some essentials to help learn the DirectX technology.
30 Mar 2013 by liaoyuandeyehuo
LPDIRECT3DSURFACE9 g_pSurface;...
30 Mar 2013 by Maxim Kartavenkov
1. GetFrontBufferData does not recommended to use as it slow.2. You are getting screen into system memory and what for you copy it back to the texture?3. You copy via Locking which is not good.To solve your issues see:This API D3DXLoadSurfaceFromSurface usd to copy from one surface to...
7 Feb 2013 by Aweiwei_
the purpose is to create a mesh of teapot,get the vertices & index from it,and draw from the vertices and index ID3DXMesh *Teapot; D3DXCreateTeapot(dev,&Teapot,NULL); Teapot->DrawSubset(0); dev->Clear(0, 0, D3DCLEAR_TARGET | D3DCLEAR_ZBUFFER, 0xffffffff, 1.0f,...
7 Feb 2013 by Matthew Faithfull
My guess would be that's because there's nothing in the triange list without the call to DrawSubset(0) Look at the documentation for DrawSubset to see why you would need to call it.To me it implies in a Microsoft, 'we said it even though we didn't really say it' way that DrawSubset turns a...
11 Feb 2008 by João Paulo Figueira
Capture your Windows Mobile device screen via ActiveSync or WMDC.
23 Jul 2007 by S Keller
This article talks about a simple and powerful game engine to make game programming simpler
30 Nov 2008 by WajihUllahBaig
How to read audio input devices in DirectX.
12 Dec 2008 by Sumi, Eo, WajihUllahBaig
How DirectShow can be used to play a video in console mode.
9 Feb 2011 by Okan Kocyigit
A simple snake game controllable both by joystick and keyboard, graphics using C#, joystick control using Directx
29 May 2010 by Software_Developer
A Simulation of a Canadian F-86 fighter jet in Windows Forms using Visual C++ 2005
21 Mar 2001 by Zhaohui Xing (Joey)
This article focuses on giving an example of using the DirectX API in PC game software development by using a DirectSound wrapper class
21 Mar 2010 by yingkou
I want to know whether directx support to play sd audio file?for details: DirectSound has a interface of IBaseFilter that support to play WMA file(by CLSID_CAsfAcmHandlerObject)、support to play Wave file(by CLSID_WAVEParser),then support to play sd audio file(by what???)
9 Apr 2013 by liaoyuandeyehuo
The open boradcaster software is so powerful.I'm curious about how to get a D3D9 game's backbuffer.I was failed to read the source code because it is too complicated for me.Could you give me some suggestions or tell me how to realize it.Thank you!
4 Apr 2010 by dxFrety
Hi!I want to write a plug-in for Windows Media Player 11 to capture screenshots but I find it is really difficult for me. Is there someonewho can give me any suggestion?------------(My English is so-so, there may be some mistakes in my question, I'm so sorry! If you want to help me...
3 Apr 2010 by Rod Kemp
To learn how to create plug-ins for Windows Media Player, see the Windows Media Player SDK[^].This should outline what you can and can't do with a plug-in in WMP.
3 Apr 2010 by dxFrety
To Rod Kemp:What I mean is Not Only using Wmp SDK But Also others like DirectX SDK andWindows Media Format SDK.
4 Apr 2010 by Rod Kemp
To find information regarding the DirectX SDK and Windows Media Format SDK a quick Google (or Bing) search finds the MSDN pages for them which also contain sample code;Windows Media Format 11 SDK[^]DirectX Developer Center[^]Also a quick search of this site found;Various methods for...
29 Jun 2011 by Member 8027520
Hello everyoneHow do i access the TRANSFORMED pixel data for a texture, after it has been transformed by D3DXMatrixTransformation2D() and texture->SetTransform()?I'm trying to do 2D pixel perfect collision detection and it's impossible if you can only access the untransformed pixel data...
15 Jul 2011 by KarstenK
paint it on a memory dc and do GetPixel()
1 Dec 2015 by Android on Intel
As a follow-up to Adaptive Volumetric Shadow Maps for DirectX 11, we present a port of the same algorithm adapted for Android devices that support OpenGL ES 3.1 and the GL_INTEL_fragment_shader_ordering OpenGL extension.
29 Oct 2012 by Sharath2790
I've downloaded DirectX on My PC and I've installed it But unable add reference to my project. I need to embed a video into my application. Thank you!
30 Oct 2012 by ridoy
You not mentioned what type of application you need to embed it,here's some for you..http://www.dotnetspider.com/resources/42801-How-Play-Videos-C-NET-WinForm.aspx[^]http://www.dreamincode.net/forums/topic/111181-adding-video-to-an-application/[^]
30 Oct 2012 by Thomas Daniels
You don't need to use DirectX. You can add a Windows Media Player control[^].If you do that, you don't need to add a reference to the DirectX library.
1 Nov 2012 by Sharath2790
http://www.dreamincode.net/forums/topic/111181-adding-video-to-an-application/[^]
5 Feb 2011 by ifithegr8
I am using DirectX.Capture and DirectShow. Using existing project DirectX.Capture Class Library[^].I want to add water mark in it. Is it possible? If yes, how?
5 Feb 2011 by Abhinav S
As per these[^] discussions this may be possible. Follow the links in that discussion and you might get somewhere.
31 Jul 2001 by Xavier John
25 Jul 2012 by pranav_30
HI I am working on forest rendering engine. (3D model is of .X format)i am using alpha to coverage for leaf plane renderingHR(gd3dDevice->SetRenderState(D3DRS_ALPHATESTENABLE, true)); HR(gd3dDevice->SetRenderState(D3DRS_ALPHAREF, 50));HR(gd3dDevice->...
17 Jun 2015 by Afzaal Ahmad Zeeshan
In this article, I would explain the steps to create a simple WPF application that can read out text for you; using .NET framework's Speech API and Installed voices.
5 Mar 2008 by Mingliang Zhu
An article showing how to easily but effectively extract all frames from a video as bitmaps
21 Jun 2012 by sidali.kadi
hi allim trying to display 3d objectusing direct x and i get this error "An unhandled exception of type 'Microsoft.DirectX.Direct3D.Direct3DXException' occurred in Microsoft.DirectX.Direct3DX.dll" with additional information "error application"in this methode:public void drawMesh(Object3D...
24 Jun 2012 by sidali.kadi
salam guysi found the solution.the probleme was that i forgot to add those methodes:device.beginSecene();device.endScene();device.Present(); that's all.have a nice day
20 Nov 2014 by Gregory Morse
Analyzing Text With DirectWrite in .NET Using SharpDX
13 May 2015 by Neta777
In this post, I'll describe graphics buffers flows in Android, with special attention to class BufferQueue which plays a central role in graphics buffer management.
20 Jan 2015 by Android on Intel
Android* Texture Compression - a comparison study with code sample
3 Dec 2010 by CRayGoodwin
Custom windows control that mimics Windows 7 diming & asynchronous aero progress animation
11 Feb 2009 by WajihUllahBaig
A console program that captures audio but does not save it.
10 Feb 2009 by WajihUllahBaig
A console program that captures audio and saves it.
10 Feb 2009 by WajihUllahBaig
A console program that captures audio and saves it with simultaneous preview.
23 Feb 2008 by almere109
Enhancements to the DirectX.Capture class for capturing audio to WMA files.
6 Sep 2011 by nujKhanna
Hi all,I am rendering a video in managed DirectX, using vmr9 and custom allocator.Problem is audio/video are not in synchronization. I had also checked file in other players with no problem.My findings: when i seek the position backward or forward solve the problem.Hack that i found...
3 Mar 2009 by Andrew Rissing
An application for visualizing common dendrimer models
8 Dec 2007 by chazza_10101
How to setup an Axiom application
30 Jul 2010 by Steven Foxton
Hi Everyone.Im building an project using Visual studio 2008 express c#. Basically im trying to catch audio via directsound on Window 7 x64 using the below code but it is giving me the error:BadImageFormatException is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)Can...
11 Aug 2010 by Thomas Krojer
You said so, but did you set the "Target Platform" property in the property page or the Combobox on the mainform of the ide?
15 Mar 2011 by Abudreas
Applying simple world transformation in 2D world using DirectX and VB.NET
9 Apr 2009 by WajihUllahBaig
Capturing video from webcam and VMR9 windowless rendering with DirectShow.
16 Jul 2012 by pranav_30
i am using directx9 & i have created tree.x (3D model of Tree) having 5 material..and a orientation list which contains orientation data such as 3dvector for position.now suppose my orientation list contain 1000 of orientation so i am able to draw 1000 of trees.i had already...
8 Mar 2004 by Vahid Kazemi
Start Direct3D programming and create a window
10 Apr 2008 by Vahid Kazemi
Create your first application using Direct3D 10.
29 Dec 2003 by Mårten R
How to create believable physics using C#.
12 Oct 2010 by vithalgk
Hi,Please give me if you have any sample directx example code which does drawing of bezier curve(waveform drawing).ThanksVithal
12 Oct 2010 by Richard MacCutchan
Try at least doing some basic research for yourself before posting questions. Here[^] is a list of DirectX links that could help you.
12 Oct 2010 by Sauro Viti
You have a sample about doing it just inside the DirectX SDK: see THIS[^] for more details...
12 Oct 2010 by The Manoj Kumar
This should help you :) Bezier Curve DirectX[^]
4 Oct 2017 by CMalcheski
Thinking outside the box can result in critical performance gains
10 Oct 2013 by arussell
Box2D DebugDraw Implemented using DirectX 2D and win32
30 Oct 2015 by Android on Intel
The current generation of Intel® graphics hardware extends Intel’s leadership in enabling innovation across the industry, including being fully ready for DirectX 12 and driving the adoption of advanced features by next-generation games.
21 Jul 2019 by Shao Voon Wong
Bring your existing WPF and Winform application to the Microsoft Store
18 Feb 2013 by iDebD
Hi, I have downloaded a open source game and want to modify it according to my need, It has following code in resource file:// Main Include Headers.#include // Required header for sprintf() & sprintf_s().#define DIRECTINPUT_VERSION 0x0800// Direct3D#include...
18 Feb 2013 by Leo Chapiro
Hi,I think you need the DirectX SDK - http://www.microsoft.com/en-us/download/details.aspx?id=23549[^]Download the complete DirectX SDK, which contains the DirectX Runtime and all DirectX software required to create DirectX compliant applications.
12 Oct 2016 by Mahmoud Samir Fayed
Getting started with 2D games development and build the Flappy Bird 3000 game using the Ring programming language.
19 Jun 2011 by pucx
C # video player by using directx, set its owener to a form panel control.I want to use the mouse hook to capture mouse double click event, but I do not know how to restrict in the playback screen when I double-click for the appropriate action.No matter where I am now double-click will perform...