<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>tdistler.com &#187; DirectX</title>
	<atom:link href="http://tdistler.com/tag/directx/feed" rel="self" type="application/rss+xml" />
	<link>http://tdistler.com</link>
	<description>&#34;To err is human, but to really foul things up you need a computer.”</description>
	<lastBuildDate>Tue, 06 Dec 2011 20:46:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Windows 7 Development Guide</title>
		<link>http://tdistler.com/2008/11/04/windows-7-development-guide</link>
		<comments>http://tdistler.com/2008/11/04/windows-7-development-guide#comments</comments>
		<pubDate>Tue, 04 Nov 2008 18:39:40 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Code Monkey]]></category>
		<category><![CDATA[Tech and Security]]></category>
		<category><![CDATA[DirectX]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://tdistler.com/?p=144</guid>
		<description><![CDATA[Microsoft has started to release developer information for Windows 7 (the follow-on to Windows Vista). Of particular interest to me is the Windows 7 Developer Guide. It discusses many of the new features that will be available when this new version of Windows is released. Of particular interest to me are the changes to DirectX [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" style="float: right;" src="/media/images/windows-7-construction.jpg" alt="Windows 7: Under Construction" />Microsoft has started to release developer information for Windows 7 (the follow-on to Windows Vista). Of particular interest to me is the <a title="MSDN: Windows 7 Developer Guide" href="http://code.msdn.microsoft.com/Win7DeveloperGuide" target="_blank">Windows 7 Developer Guide</a>. It discusses many of the new features that will be available when this new version of Windows is released.</p>
<p>Of particular interest to me are the changes to DirectX 10, Media Foundation, and the new DirectX 11. Here are some highlights.</p>
<p>DirectX 11:</p>
<ul>
<li>&#8220;&#8230;resource creation and management has been optimized for multithreaded use, enabling more efficient dynamic texture management for streaming.&#8221;</li>
<li>Several improvements have been made to the high-level shading language (HLSL), such as a limited form of dynamic linkage in shaders to improve specialization complexity, and object-oriented programming constructs like classes and interfaces.&#8221;</li>
</ul>
<p>DirectX 10 improvements:</p>
<ul>
<li>&#8220;The pipeline also introduces the geometry shader stage, which offloads work entirely from the CPU to the GPU. This new stage enables you to create geometry, stream the data to memory, and render the geometry with no CPU interaction.&#8221;</li>
<li>Predicated rendering performs occlusion culling to reduce the amount of geometry that is rendered. Instancing APIs can dramatically reduce the amount of geometry that needs to be transferred to the GPU by drawing multiple-instances of similar objects. Texture arrays enable the GPU to do texture swapping without CPU intervention.&#8221;</li>
</ul>
<p>Media Foundation improvements:</p>
<ul>
<li>&#8220;&#8230;Media Foundation has been enhanced to provide better format support, including MPEG-4, as well as support for video capture devices and hardware codecs.&#8221;</li>
<li>&#8220;In Windows 7, Media Foundation provides extensive format support that includes codecs for H.264 video, MJPEG, and MP3; new sources for MP4, 3GP, MPEG2-TS, and AVI; and new file sinks for MP4, 3GP, and MP3.&#8221;</li>
<li>&#8220;In Windows Vista, Media Foundation exposed a relatively low-level set of APIs. These APIs are flexible, but may not be appropriate for performing tasks. Windows 7 adds new high-level APIs that make it simpler to write media applications in C++.&#8221;</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://tdistler.com/2008/11/04/windows-7-development-guide/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Direct3D 9.0 Graphics Pipeline</title>
		<link>http://tdistler.com/2008/11/03/direct3d-90-grphics-pipeline</link>
		<comments>http://tdistler.com/2008/11/03/direct3d-90-grphics-pipeline#comments</comments>
		<pubDate>Mon, 03 Nov 2008 17:36:42 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Code Monkey]]></category>
		<category><![CDATA[DirectX]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://tdistler.com/?p=143</guid>
		<description><![CDATA[Here&#8217;s great diagram of the Direct3D 9.0 graphic pipeline (thanks Amanda for bringing this to my attention). I know DirectX 10 is out, but this diagram serves as a good reference for anyone interested in the nitty-gritty of a 3D graphics pipeline.]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" style="float: right;" src="/media/images/DirectX90.jpg" alt="DirectX 9.0" />Here&#8217;s great diagram of the Direct3D 9.0 graphic pipeline (thanks Amanda for bringing this to my attention). I know DirectX 10 is out, but this diagram serves as a good reference for anyone interested in the nitty-gritty of a 3D graphics pipeline.</p>
<p style="text-align: center;"><a href="/media/images/Direct3DPipeline9.0.jpg"><br />
<img src="/media/images/Direct3DPipeline9.0Thumb.jpg" alt="" /><br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://tdistler.com/2008/11/03/direct3d-90-grphics-pipeline/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Custom Video Streams into WPF Natively</title>
		<link>http://tdistler.com/2008/01/29/getting-custom-video-streams-into-wpf-natively</link>
		<comments>http://tdistler.com/2008/01/29/getting-custom-video-streams-into-wpf-natively#comments</comments>
		<pubDate>Wed, 30 Jan 2008 00:04:53 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Code Monkey]]></category>
		<category><![CDATA[DirectX]]></category>

		<guid isPermaLink="false">http://tdistler.com/?p=14</guid>
		<description><![CDATA[Over the last 2 weeks, Rob and I have been working hard to get custom video streams into WPF without using WinForms. The issue with WPF is that the application has no access to the lower-level DirectShow stuff to control how the filter graph is built. This leaves the programmer with 2 choices: (1) build [...]]]></description>
			<content:encoded><![CDATA[<p>Over the last 2 weeks, <a title="Rob Fahrni" href="http://rob.crabapples.net/" target="_blank">Rob</a> and I have been working hard to get custom video streams into WPF without using WinForms. The issue with WPF is that the application has no access to the lower-level DirectShow stuff to control how the filter graph is built. This leaves the programmer with 2 choices: (1) build a custom WinForms user control and build the filter graph manually (2) register a custom protocol type that will allow DirectShow&#8217;s Intelligent Connect to build the graph you want via a specially formed URL.</p>
<p>Option #1 works, but doesn&#8217;t allow WPF to do any overlays on the video. This means that all overlays (text, timestamps, images, controls, etc) must be drawn at the DirectShow layer. This is difficult, inflexible, and bypasses all the visual effects power of WPF (not to mention to loose hardware acceleration).</p>
<p>Option #2 is the optimal solution, and was what we set out to prove. This option allows WPF to control the render surface, and thus provide all the overlay functionality the UI designer can expect from WPF. We succeed this week in proving that option #2 is possible, and one of our UI guys went off and used it to create a custom list box for choosing video (good job Brent). The video clips below are live and displayed in real time:</p>
<p align="center"><img title="Custom List Box" src="/media/images/BrentEnduraListBox.jpg" alt="Custom List Box" /></p>
<p align="left">The videos are displayed using WPF MediaElement objects, and passing in a URL with our custom protocol type and the id of the camera to connect to. The great thing about WPF is that we get all the scaling, reflection, and overlays you see above for free.  Another one of our UI guys (Nick) did a demo with live video playing on a 3D cube that can be rotated by the mouse. (UPDATED) Check it out:</p>
<p align="center"><img title="Cube Test Application" src="/media/images/EnduraCubeTest.jpg" alt="Cube Test Application" /></p>
<p align="left">You can find information about registering custom protocols at <a title="Registering a Custom File Type" href="http://msdn2.microsoft.com/en-us/library/ms787558.aspx" target="_blank">http://msdn2.microsoft.com/en-us/library/ms787558.aspx</a>. The DirectShow documentation is at <a title="DirectShow" href="http://msdn2.microsoft.com/en-us/library/ms783323%28VS.85%29.aspx" target="_blank">http://msdn2.microsoft.com/en-us/library/ms783323%28VS.85%29.aspx</a>. We downloaded the Windows Vista Platform SDK and built off of the <a title="Push Source Filters Sample" href="http://msdn2.microsoft.com/en-us/library/ms787526(VS.85).aspx" target="_blank">Push Source Filters</a> sample.</p>
]]></content:encoded>
			<wfw:commentRss>http://tdistler.com/2008/01/29/getting-custom-video-streams-into-wpf-natively/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

