Click here to Skip to main content
15,885,899 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 Updated

DirectX 

23 May 2010 by #realJSOP
Is this a .Net app? What language? What platform (32 or 64-bit)? What OS? Without that info, we can't possibly help you.
3 Dec 2010 by #realJSOP
Should go something like this:private Sub button1_Click(object sender, System.EventArgs e) handles button1.Click AddHandler me.capture.FrameEvent2, Capture.HeFrame(this.CaptureDone) me.capture.GrapImg()End Subprivate Sub CaptureDone(System.Drawing.Bitmap e) ...
23 Nov 2011 by #realJSOP
So run it under the debugger and make sure all of the pointers are valid (not null). The error you cite generlly means you're either accessing a null pointer, or overflowing a boundary.
29 Mar 2018 by _GX_
can i use visual studio .net framework to make node system like visual programming (""the visual part of it not the logic part of it"") or i need to implement opengl or directx or etc......... What I have tried: n--------------o------------t---------------h------------i-------------n------------g
5 Sep 2013 by _Hello_World_
IDirect3DSurface9 *back = NULL;pDxdevice->GetBackBuffer(0,0,D3DBACKBUFFER_TYPE_MONO,&back);pDxdevice -> CreateOffscreenPlainSurface(d3dpp.BackBufferWidth,d3dpp.BackBufferHeight, D3DFMT_A8R8G8B8,D3DPOOL_SYSTEMMEM, &pSurface,...
16 Nov 2012 by Abd Alrahman Sammani
What Is The Best Language For Games Programming?
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.
16 Nov 2012 by Abhishek Pant
All languages are best for programming but you must prefer the languge that is best known to you.You are asking this question as Head=Tails was found in your game and you want to change this order into best programming languages that you will know from here so that you can make history.
2 Feb 2013 by Abhishek Pant
DX9 Shockwave Flash Player demo with Eventing with source[^]
21 Feb 2011 by Abudreas
Create a DirectX device and draw some Primitives using VB!
15 Mar 2011 by Abudreas
Applying simple world transformation in 2D world using DirectX and VB.NET
18 May 2011 by achainard
Hi,Solutio...
17 Jul 2007 by Adrian Brutus
A project that alows the user to create a 3D world.
30 Oct 2014 by AeroClassics
I am stuck on how to obtain the proper coordinates from a rectangle drawn over a D3DImage that is being used as the background in a Canvas object.I have a 1920 x 1080 image that gets put into a D3DImage and that is used as the background of a Canvas object. The Canvas object is contained in...
5 Nov 2014 by AeroClassics
A 1920 x 1080 image is a 16:9 aspect ratio. I can put the image into a D3DImage no problem. I am using this as the background of a Canvas object. That works very well too. To get proper scaling when the Canvas is resized by the user changing the size of the Window I have the Canvas inside a...
20 Apr 2012 by Aescleal
If you want skills that'll translate into the games industry on desktop computers NOW then learn C++ and about DirectX on windows. Every games shop I've worked in has been exclusively C or C++, apart from mobile phone games which were J2ME.One problem with C++ is that consoles (apart from...
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.
31 Mar 2015 by Akash Rajendra
Hi, I am creating a Audio Player Application using DirectX SDK and VB .NET, i want to show the user Duration and Time elapsed of the Audio File, how can i achieve this?P.S I'm Using VS 2010 Ultimate, Windows 7 Ultimate 64 bit...
11 May 2011 by Albert Holguin
Here's a post with someone who had the same problem:http://www.gamedev.net/topic/7112-linking-error--iid_idirectdraw2/[^]It mentions what .libs you may be missing.
5 Aug 2010 by AlexlyBlue De Lu
evening,I'm not good in english, so I try to explain my question as simple as I can.I got a .x format mesh which was exported from 3ds max, and used uvw onwarp mapping.Could I get the w value from vertex buffer when I load this x file into memory?or any other way to get...
1 Nov 2009 by Ali Tavakol
Fast, real, and easy to connect to your application.
7 Nov 2009 by Ali Tavakol
Fast, beautiful, real and easy to connect to your application
30 Jul 2013 by alirezamilani
Hi i want to run a project that write with DirectX in VS2012.but when i Debug it ,see a following problem:cant find Winmm.hcant find kernal32.hand .....plz someone help methx
9 Dec 2005 by Allegnet
An article on how to use the AllegNet library to write games with managed languages for the .NET 2.0 framework.
23 Feb 2008 by almere109
Enhancements to the DirectX.Capture class for capturing audio to WMA files.
27 Mar 2009 by almere109
Enhancements to the DirectX.Capture class for capturing audio and video to Windows Media files, using IWMProfile
31 Mar 2009 by almere109
Enhancements to the DirectX.Capture class for TV fine-tuning using IKsPropertySet.
16 Jun 2011 by ambarishtv
try this waypublic partial class Form1 : Form { public Form1() { InitializeComponent(); panel1.Dock = DockStyle.Fill; } private void panel1_DoubleClick(object sender, EventArgs e) { if (this.WindowState...
23 Aug 2014 by AmiR1999
As i know the only API that windows provides to developers for working with graphics and displaying them is GDI(Graphic Device Interface) and any other library that simplifies this work is also based on GDI such as System.Drawings(in .net framework)... so What is actually DirectX?Does it...
14 Jul 2006 by AmitDey
Simulating Mirror in a Managed DirectX Application
23 Jan 2014 by Amol Parsewar
Hi,I want to develop a remote desktop app, one i have already created but it's speed is too slow.To perform fast operation directx is very helpful so any help will be expected.Final product should work like teamviewer.Thanks..!
10 May 2009 by Amory Wong
An article on parsing MIDI files and using MIDI events.
24 Jun 2011 by Ananda_mr
Dear all, I wrote code to capture screen (1024 * 786 resolution) using both GDI and DirectX, but I am doing a performance test, both GetDIBits (GDI) and GetFrontBufferdata(DirectX) taking more time ~600ms and also CPU utilization is around 17%. I am doubt about whether APIs are too slow...
5 Sep 2011 by Ananda_mr
Dear sir,I am using ReceiveConnection to change only video dimensions while graph is active. It is working fine for me, but sometimes while changing format MSVCRT.DLL is crashed with EVR (in vista and above systems.) and Quartz.dll crashed with VMR9 in XP systems. These issues are frequently...
9 May 2011 by Andows
I’m trying to make a very simple application which would display different images on each eye. I have Asus VG236H monitor and NVIDIA 3D Vision kit, the stereo 3D shutter glasses. The I’m using C#, .NET Framework 2.0, DirectX 9 (Managed Direct X) and Visual Studio 2008. I have been searching high...
9 May 2011 by Andows
A friend of mine found the problem. The bytes in the stereo signature were in reversed order. Here is the correct order: byte[] data = new byte[] {0x4e, 0x56, 0x33, 0x44, //NVSTEREO_IMAGE_SIGNATURE = 0x4433564e; 0x00, 0x0F, 0x00, 0x00, //Screen width * 2 = 1920*2 = 3840 =...
16 Nov 2014 by Andreas Gieriet
Given the plane vector [n] at a given point [p], and you have an object model at the absolute origin, and you want to render the object at point [p] aligned with the plane, then you must find the following transformation:T1 = rotate the absolute x-z plane around the absolute y-axis by the...
19 Oct 2011 by Andresin87
I'm trying to make a Transform filter dll witch gets parallel video frames and displays it in fullscreen mode as NVidia 3D stereo mode. I use graphedit to show the results but, when i conect It to a video render filter, It shows me the "Hard coded break point"...
19 Oct 2011 by Andresin87
How can u use it in Graphedit?
25 Oct 2011 by Andrew Brock
The approach I would take to this is to make a 2 dimensional array of vertices (as if you were going to render a landscape) and set the render mode to Point.Initialise the points in the array to have the correct XYZ position (and RGB or RGBA colour if you want different...
31 Oct 2011 by Andrew Brock
Ok, this code will run with just the main.cpp file, but will work best with a texture demo.bmp, and the shader file Shader.fxYou will need to grab or make a bitmap image and place it in the working directory, and name it demo.bmp. This will texture the quad.The shader file should also be...
22 May 2008 by Andrew Kirillov
Some ideas about Hands Gesture Recognition in still images and video feeds, using the AForge.NET framework (C#).
20 Nov 2008 by Andrew Kirillov
Turning regular USB web camera into a pan tilt camera using the Lego Mindstorms robotics kit and tracking simple objects using C#.
9 Oct 2006 by Andrew Kirillov
A C# video surveillance application, which allows monitoring several IP cameras simultaneously.
3 Mar 2009 by Andrew Rissing
An application for visualizing common dendrimer models
8 Jun 2010 by Andrew Rissing
Can you take out the Application.DoEvents() call and have it work in full screen?It you can't, then you need to change your present parameters.Ex.presentParams.Windowed = false;See the following link[^].It might help if you provide more information on the exception as well.
20 Jan 2015 by Android on Intel
Android* Texture Compression - a comparison study with code sample
2 Mar 2015 by Android on Intel
The Murl Engine is a fresh and free solution for cross-platform development. It is focused on games and multimedia applications and is currently supporting Android, iOS, Windows, OS X and Linux* platforms.
13 May 2015 by Android on Intel
Introduction to Resource Binding in Microsoft DirectX 12
1 Sep 2015 by Android on Intel
Which Intel software tool includes a new name, new features, and it's ALL available for FREE?
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.
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.
28 Mar 2013 by André Kraak
This CP article Various methods for capturing the screen[^] describes how to use DirectX to capture the screen.
20 Jan 2017 by Ansel Castro
The article shows how to render 3D graphics with C# in .NET using an API Igneel.Graphics.
7 Mar 2017 by Ansel Castro
Describes the basic steps to render height maps using the graphics engine of Igneel
3 Jun 2011 by Anshul R
Use WPF. Set ForeColor Property.
28 May 2010 by Anthony Mushrow
Which version of the DLL that your program is using depends on which build of the library your program actually linked to.You may either need to check your linker settings and make sure that in Release you are not linking with the debug lib or check your code for any #pragma comment(lib,...
15 Apr 2011 by Anthony Mushrow
will my final resulting .exe still work on an end user's system using the latest (2010) DirectX end user runtime?Yes. When you link with a .lib file it is actually put into your .exe or .dll fileFunctionality from previous versions of DirectX are always available in the runtime for...
30 May 2011 by Anthony Mushrow
Just as an experiment try using:CheckDeviceType( D3DADAPTER_DEFAULT, D3DDEVTYPE_REF, D3DFMT_X8R8G8B8, D3DFMT_X8R8G8B8, false );The reference device is just what it says it, it should behave exactly the same as a fully compliant DirectX compatible graphics card. If CheckDeviceType works...
7 Jun 2011 by Anthony Mushrow
I can't see what's happening inside of DrawDirectXMesh but If you can only see the vertex points instead of the actual faces that I can only assume it's rendering with D3DPT_POINTLIST instead of D3DPT_TRIANGLELIST. It might be easier to set up the vertices for the floor yourself and then render...
26 Sep 2001 by Anthony Roach
A framework for writing apps using DirectX 8
18 Oct 2001 by Anthony Roach
An extension to the DirectX framework for adding backgrounds
22 Mar 2016 by Anup6
im using the DirectX class library.i refered following application to preview and capture the video http://www.codeproject.com/Articles/7637/DirectX-Video-Stream-and-frame-capturefrom the digital cameras to the hard disk.. but i can't find a way to draw on() playback video.In...
25 Mar 2010 by aquanar
I actually just have a rather small question, but I have had the HARDEST time finding information about it.Assuming we have a 3-axis joystick being connected via USB to a Windows XP computer, and it is being handled by directx, my question is how is the data for the axes...
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.
31 Jul 2012 by armagedescu
see here how can you intercept functions and inject modules
6 Aug 2006 by Arman S.
An article on multimedia - playing Waves by using the DirectSound component.
3 Nov 2005 by Arman S.
An article that presents some C++ classes to play MIDI files.
10 Oct 2013 by arussell
Box2D DebugDraw Implemented using DirectX 2D and win32
9 Nov 2012 by Ashley Davis
Introducing Investigo: Using a Proxy DLL and embedded HTTP server for DirectX9 Performance Analysis, Debugging and Automated Performance Testing
12 Sep 2004 by Ashok Jaiswal
How to paint in DC in source filter
10 Oct 2012 by Asif Bahrainwala
GS-SO tutorial for basic effects
18 Mar 2012 by Asif Bahrainwala
Hull, Domain shader
14 Jan 2015 by Asif Bahrainwala
FFT using DX11 compute shader
22 Feb 2013 by Asif Bahrainwala
HPC via Compute Shaders (GPGPU).
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...
18 Apr 2017 by Atakutabrak
I build project with video Imports Microsoft.DirectX.AudioVideoPlayback when developing I can play video why in the client video cannot played? I get this error in client: "Unhandled exception has occurred in your application. If you click Continue. the application will ignore this error and...
24 Jul 2007 by AvengerDr
This article introduces the Odyssey User Interface, a library of controls that can be used in any Managed DirectX application.
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,...
31 Jul 2013 by Ayush001
Traditional game which becomes more interetsing.
8 Aug 2013 by balajidileepkumar
Hi all, I need to develop a transparent window using vc++ that interacts with a multiplayer online game, which has a client exe installed via steam, I need to create a overlay text over the game which doesn't flicker while playing the game,I used setwindowspos api to create a modal form...
22 Feb 2015 by Bangsang
www.xiquinho.com/mybooks/file/...
4 Aug 2011 by barneyman
if all you want to do is draw lines and curves, and you have no complex viewing requirements, DirectX is overkill - simply use GDI, or GDI+Create a CPaintDC in your OnPaint method, then use the methods in the base CDC class
19 Feb 2012 by barneyman
Alternatives to enhzflep's solutions, if you don't have access to/want to change the texture ...1. Multiple textures - first is your map, second is your line2. Stencil 'Shadows' - render the line 'above' the map, then cast a shadow from it, perp'l to the mapagain, comfy chair, coffee
15 Mar 2012 by barneyman
I can't help you with 8.1, but with 9+ the process is this Load your bitmap into a textureGet the size of the backplane using GetBackBufferCreate a square textured backplane (vertex format = D3DFVF_XYZRHW | D3DFVF_TEX1), using D3DXVECTOR4 with w set to 1.0In your render function,...
19 Mar 2012 by barneyman
an excellent DX start up tutorial from here[^]
16 Jun 2012 by barneyman
You should look at progressive meshes[^]From experience, trees (if you mean the arboreal kind) are much better handled as billboards[^], especially at a distance
24 Feb 2015 by barneyman
your test at mDirectx9Obj->CreateDevice is wrong - you're testing for NULL - that call returns an HR, so i'm guessing it's failing, you're not catching itwhich would give you a NULL device, which would cause an exception first time you use it - say, at Clear()
8 Dec 2015 by barneyman
have a look at How to enumerate audio endpoint (IMMDevice) properties on your system[^]That uses the IMMDevice interface[^] which drops you right into a bunch of useful APIs
30 May 2017 by barneyman
in dx9 (sorry, but that should get you started) you'd render to a texture (using SetRenderTarget) then get to that texture's surface (GetSurfaceLevel), then lock that and read from it (LockRect)
28 Apr 2014 by Bartlomiej Filipek
Short review of a very interesting book about DirectX 11 using C#
7 Jul 2011 by bat3a
OK i got a viewport3d and i have slimDX sdk, i searched through the code to know how to render the viewport3d using slimDX, and found nothing, basically i'm trying to hardware render a viewport3d which has some 3d object, to an image to save.or if anyone got a better solution than slimDX,...
27 Jun 2012 by bearsomg
Hello. I am currently working on a rendering engine which is meant to render character animations. Right now I am working on vertex blending to make the body parts move with the bones.For each vertex declaration, I have a short that represents the first bone's weight, and 2 shorts...
7 Jun 2004 by BeCapture
The new generation of capture device - MPEG2 capture that does time shift.
11 Jun 2004 by BeCapture
This article shows how to work with MPEG2 capture devices such as Preview, Record. Works with all video renderers. Grab picture and configure MPEG2 Demux.