<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>hemipteran</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/hemipteran/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/hemipteran/feed.xml</link>
    <description>This is a blog with all things Microsoft development related and a few odds and ends.</description>
    <lastBuildDate>Wed, 17 Apr 2019 03:10:42 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Visual Studio Feature Walkthrough–Part 2–My Favorite Extensions</title>
      <link>https://docs.microsoft.com/archive/blogs/hemipteran/visual-studio-feature-walkthroughpart-2my-favorite-extensions</link>
      <pubDate>Wed, 06 Apr 2016 12:30:54 GMT</pubDate>
      <dc:creator><![CDATA[Dave Russell (Technical Evangelist)]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/hemipteran/?p=263</guid>
      <description><![CDATA[Abstract This is the second post in a series of posts which covers various features and extensions...]]></description>
      <content:encoded><![CDATA[<h3>Abstract</h3> <p>This is the second post in a series of posts which covers various features and extensions available in Visual Studio.&nbsp; I work in Visual Studio for most of my day and over time I have found a number of extensions that have been extremely useful while coding. This post covers a list of the ones I use most and why.</p> <h4>Keywords: Visual Studio, Extensions</h4> <h3>Introduction</h3> <p>The extensions I have included have various different features and capabilities and each of them make my life easier as a developer. I am not listing them in any particular order. All the extensions can be found in the manager but I will provide links to each extension in this post. Enjoy.</p> <h3>Extensions</h3> <h4>CodeMaid</h4> <p>I like my code neat and organised. I like to group my members at the top based on access and my methods into regions. I also like to have things in alphabetical order, I have no idea why but it makes me happy to know that my code is always neat. One easy way to make sure you have neatly formatted code is to use CodeMaid. CodeMaid is an open source extension that will clean and simplify your code for you. You can configure various options on how you want it to clean your code. From whether to add regions, ordering preferences, and which rules to use. I have personally set it to organise my code every time I save but you can configure this to what suits you best. </p> <p>CodeMaid comes with a simple code discovery tool called Spade which allows you to dig into your code quickly and you can drag and drop the code in Spade to reorganise the code how you prefer. </p> <p><a href="https://msdnshared.blob.core.windows.net/media/2016/04/CodeMaid.png"><img title="CodeMaid" style="border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px" border="0" alt="CodeMaid" src="https://msdnshared.blob.core.windows.net/media/2016/04/CodeMaid_thumb.png" width="600" height="325"></a></p> <p>Link: <a title="http://www.codemaid.net/" href="http://www.codemaid.net/">http://www.codemaid.net/</a></p> <h4>CodeCracker</h4> <p>Is an analyser library for C# and VB that helps identify Design, Naming, Performance, Style, Usage and Refactoring items within your code. There is some overlap with the Style Cop extension there are some additional checks in Style Cop that don't exist in CodeCracker and some that exist in <a href="https://github.com/DotNetAnalyzers/StyleCopAnalyzers">Style Cop Analysers</a>. I run both side by side and get some very neat code in the end and some great information on how to improve my code. </p> <p><a href="https://msdnshared.blob.core.windows.net/media/2016/04/Code-Cracker.png"><img title="Code-Cracker" style="border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px" border="0" alt="Code-Cracker" src="https://msdnshared.blob.core.windows.net/media/2016/04/Code-Cracker_thumb.png" width="300" height="200"></a></p> <p>Link: <a title="http://code-cracker.github.io/" href="http://code-cracker.github.io/">http://code-cracker.github.io/</a></p> <h4>Powershell Tools</h4> <p>I user Powershell extensively while developing solutions especially when I use Azure and these tools provide some really helpful features. It adds some scripting enhancements, Intellisense, project systems, and debugging for Powershell right in Visual Studio.</p> <p><a href="https://msdnshared.blob.core.windows.net/media/2016/04/Powershell.png"><img title="Powershell" style="border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px" border="0" alt="Powershell" src="https://msdnshared.blob.core.windows.net/media/2016/04/Powershell_thumb.png" width="604" height="429"></a></p> <p>Link: <a title="http://adamdriscoll.github.io/poshtools/" href="http://adamdriscoll.github.io/poshtools/">http://adamdriscoll.github.io/poshtools/</a></p> <h4>Productivity Power Tools 2015</h4> <p>This is a collection of tools built by Microsoft that helps you be more productive. They have added features for Peek Help, Quick Tasks, Power Commands, Fix Mixed Tabs, and a whole lot more. Some of the best features they have added is the Solution Explorer Errors which helps you find errors quickly within your code.</p> <p><a href="https://msdnshared.blob.core.windows.net/media/2016/04/PowerTools.png"><img title="PowerTools" style="border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px" border="0" alt="PowerTools" src="https://msdnshared.blob.core.windows.net/media/2016/04/PowerTools_thumb.png" width="600" height="460"></a></p> <p>Link: <a title="https://visualstudiogallery.msdn.microsoft.com/34ebc6a2-2777-421d-8914-e29c1dfa7f5d" href="https://visualstudiogallery.msdn.microsoft.com/34ebc6a2-2777-421d-8914-e29c1dfa7f5d">https://visualstudiogallery.msdn.microsoft.com/34ebc6a2-2777-421d-8914-e29c1dfa7f5d</a></p> <h4>Visual Studio 2015 Color Theme Editor</h4> <p>We all work in our IDE for a long period of time and its great when we can have a good looking experience. Its a pain to go and customise your theme everytime you reinstall or get a new machine. The easiest way to manage this is through the theme editor extension which allows you to change themes and customize your IDE base on past themes which you have exported or downloaded. </p> <p><a href="https://msdnshared.blob.core.windows.net/media/2016/04/Theme.png"><img title="Theme" style="border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px" border="0" alt="Theme" src="https://msdnshared.blob.core.windows.net/media/2016/04/Theme_thumb.png" width="600" height="165"></a></p> <h4>Spell Checker</h4> <p>One thing I like to see is that my comments and strings are spelt correctly. I use Visual Studio Spell checker, its not a bad tool, I think its a little limited as to what it checks but works for my needs. </p> <p><a href="https://msdnshared.blob.core.windows.net/media/2016/04/SpellChecker.png"><img title="SpellChecker" style="border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px" border="0" alt="SpellChecker" src="https://msdnshared.blob.core.windows.net/media/2016/04/SpellChecker_thumb.png" width="600" height="280"></a></p> <p>Link: <a title="https://github.com/EWSoftware/VSSpellChecker/wiki" href="https://github.com/EWSoftware/VSSpellChecker/wiki">https://github.com/EWSoftware/VSSpellChecker/wiki</a></p> <h4>Refactoring Essentials</h4> <p>Refactoring is a great way to enhance and maintain your code over time. The Refactoring Essentials extension has been extremely useful day today and has a ton of great features. With rich analysers and some very useful refactorings this tool has made my life a lot easier.</p> <p><a href="https://msdnshared.blob.core.windows.net/media/2016/04/Rec.png"><img title="Rec" style="border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px" border="0" alt="Rec" src="https://msdnshared.blob.core.windows.net/media/2016/04/Rec_thumb.png" width="600" height="278"></a></p> <h4>C# Essentials</h4> <p>C# Essentials is a set of analysers, code fixes and refactorings which are targeted with working in C# 6 and the new features that are included. This extension will identify when parameters are in strings, when auto-properties are getter only, and conversions to interpolated strings. </p> <p><a href="https://msdnshared.blob.core.windows.net/media/2016/04/CEsn.png"><img title="CEsn" style="border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px" border="0" alt="CEsn" src="https://msdnshared.blob.core.windows.net/media/2016/04/CEsn_thumb.png" width="600" height="252"></a></p> <p>Link: <a title="https://github.com/DustinCampbell/CSharpEssentials" href="https://github.com/DustinCampbell/CSharpEssentials">https://github.com/DustinCampbell/CSharpEssentials</a></p> <h4>SideWaffle</h4> <p>There are times when I am working with Visual Studio and I think wouldn’t it be nice to create a project with Angular, or add new files to a project such as a robot.txt. This extension reduces the amount of work needed to maintain and build new websites. Here is a video from his site:</p> <p><iframe height="320" src="https://www.youtube.com/embed/bEt0MFksmpU" frameborder="0" width="600" allowfullscreen></iframe></p> <p>Link: <a title="http://sidewaffle.com/" href="http://sidewaffle.com/">http://sidewaffle.com/</a></p> <h4>GitHub Extension</h4> <p>Most developers today work with Git as their choice of source control, the default installation of Visual Studio does not include the GitHub Extension. Simply go install it and it adds great features for working with Git and GitHub right from visual studio. </p> <p><a href="https://msdnshared.blob.core.windows.net/media/2016/04/Git.png"><img title="Git" style="border-top: 0px;border-right: 0px;border-bottom: 0px;padding-top: 0px;padding-left: 0px;border-left: 0px;padding-right: 0px" border="0" alt="Git" src="https://msdnshared.blob.core.windows.net/media/2016/04/Git_thumb.png" width="400" height="37"></a></p> <p>Link: <a title="https://visualstudio.github.com/" href="https://visualstudio.github.com/">https://visualstudio.github.com/</a></p> <h4>Web Essentials</h4> <p>I am not going to cover web essentials in detail here because it has been done so many times, but it is an amazing collection of tools for web development. </p> <p>Link: <a title="http://vswebessentials.com/" href="http://vswebessentials.com/">http://vswebessentials.com/</a></p> <h4>VSColorOutput</h4> <p>The last one on my list for this post is VSColorOutput which modifies the colours of the output windows using regular expressions to select text in the output window and modify its colour. This is brilliant if you rely on the output window for a large amount of information. It makes it easy to identify important information in your output windows and its pretty to boot. </p> <p><a href="https://msdnshared.blob.core.windows.net/media/2016/04/vsOUTPUT.png"><img title="vsOUTPUT" style="border-top: 0px;border-right: 0px;border-bottom: 0px;padding-top: 0px;padding-left: 0px;border-left: 0px;padding-right: 0px" border="0" alt="vsOUTPUT" src="https://msdnshared.blob.core.windows.net/media/2016/04/vsOUTPUT_thumb.png" width="600" height="180"></a></p> <p>Link: <a title="http://mike-ward.net/vscoloroutput" href="http://mike-ward.net/vscoloroutput">http://mike-ward.net/vscoloroutput</a></p> <h3>Summary</h3> <p>I hope you have found these extensions useful, I want to thank Rob Maclean for his input on this list you can find him at http://www.sadev.co.za </p> <p><font size="5"></font></p>]]></content:encoded>
    </item>
    <item>
      <title>Dev Camps – IoT Jhb, Dbn, CT</title>
      <link>https://docs.microsoft.com/archive/blogs/hemipteran/dev-camps-iot-jhb-dbn-ct</link>
      <pubDate>Mon, 08 Feb 2016 01:07:33 GMT</pubDate>
      <dc:creator><![CDATA[Dave Russell (Technical Evangelist)]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/hemipteran/2016/02/08/dev-camps-iot-jhb-dbn-ct/</guid>
      <description><![CDATA[&#160;...]]></description>
      <content:encoded><![CDATA[<table cellspacing="0" cellpadding="0" border="0"><tbody>     <tr>       <td valign="top">         <h4><img border="0" alt="Cloud-in-a-Box Solutions." src="http://image.email.microsoftemail.com/lib/fec8157277650d75/m/29/151043-header.jpg" width="600" height="284" /></h4>       </td>     </tr>      <tr>       <td valign="top">         <table cellspacing="0" cellpadding="0" border="0"><tbody>             <tr>               <td valign="top" width="20">&#160;</td>                <td valign="top" width="560">                 <table cellspacing="0" cellpadding="0" border="0"><tbody>                     <tr>                       <td valign="top">                         <h4 align="left">Microsoft Dev Camp is a free and fun event for developers by developers. </h4>                          <p align="left">Please join us for this special Dev Camp that will be presented by Microsoft technical experts.                            <br />You will learn about the Universal Windows Platform that can run across all Windows 10 devices as well as building Internet of Things solutions and using cloud backend support. Whether you haven’t looked at your most recent project in 1 month or 1 year, there is plenty to learn about what’s new - not just for a PC or a phone, but for all Windows 10 devices. That is an unprecedented opportunity of over one billion devices. </p>                       </td>                     </tr>                      <tr>                       <td valign="top">&#160;</td>                     </tr>                      <tr>                       <td valign="top">                         <table cellspacing="0" cellpadding="0" border="0"><tbody>                             <tr>                               <td valign="top" width="173">                                 <table cellspacing="0" cellpadding="0" border="0"><tbody>                                     <tr>                                       <td valign="top">                                         <p align="left"><strong>Durban</strong>                                             <br /><strong>Date:</strong> 17 February 2016                                             <br /><strong>Time:</strong> 9am - 5pm                                             <br /><strong>Address:</strong> Gateway Hotel Corner Centenary Boulevard &amp; Twilight Drive, Gateway, Durban</p>                                       </td>                                     </tr>                                      <tr>                                       <td>                                         <p align="left"></p>                                       </td>                                     </tr>                                      <tr>                                       <td>                                         <table cellspacing="0" cellpadding="0" border="0"><tbody>                                             <tr>                                               <td width="12">&#160;</td>                                                <td width="130">                                                 <p><a href="https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fclick.email.microsoftemail.com%2f%3fqs%3d345495915f7a74dcecc335f5c53c1d9a33321e6d5b6bd3cd6848372ae71d476962817b4e3eeb484e&amp;data=01%7c01%7ctamach%40064d.mgd.microsoft.com%7ce39507345da2440480f708d32e27330b%7c72f988bf86f141af91ab2d7cd011db47%7c1&amp;sdata=CnytKZ4cNAVDZA%2fLUu6uWr9Av6Fc83VuwMUog%2fEKazw%3d">Click here to RSVP</a></p>                                               </td>                                                <td width="10">                                                 <p><a href="https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fclick.email.microsoftemail.com%2f%3fqs%3d345495915f7a74dcecc335f5c53c1d9a33321e6d5b6bd3cd6848372ae71d476962817b4e3eeb484e&amp;data=01%7c01%7ctamach%40064d.mgd.microsoft.com%7ce39507345da2440480f708d32e27330b%7c72f988bf86f141af91ab2d7cd011db47%7c1&amp;sdata=CnytKZ4cNAVDZA%2fLUu6uWr9Av6Fc83VuwMUog%2fEKazw%3d"><img border="0" alt="Click here to RSVP" src="http://image.email.microsoftemail.com/lib/fec41576756d0d7f/m/4/170237-sm-arrow.png" width="15" /></a></p>                                               </td>                                                <td width="27">&#160;</td>                                             </tr>                                           </tbody></table>                                       </td>                                     </tr>                                   </tbody></table>                               </td>                                <td width="20">&#160;</td>                                <td valign="top" width="173">                                 <table cellspacing="0" cellpadding="0" border="0"><tbody>                                     <tr>                                       <td valign="top">                                         <p align="left"><strong>Johannesburg </strong>                                            <br /><strong>Date</strong>: 24 February 2016                                             <br /><strong>Time:</strong> 9am - 5pm                                             <br /><strong>Address:</strong> Focus Rooms 1, The Core, Leeuwkop Rd &amp; Kikuyu rd, Sunninghill, Johannesburg</p>                                       </td>                                     </tr>                                      <tr>                                       <td>&#160;</td>                                     </tr>                                      <tr>                                       <td>                                         <table cellspacing="0" cellpadding="0" border="0"><tbody>                                             <tr>                                               <td width="12">&#160;</td>                                                <td width="130">                                                 <p><a href="https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fclick.email.microsoftemail.com%2f%3fqs%3d345495915f7a74dc94282e27e0c6897c093ebdd2023ad52f958c36e268cd275dfd07cd8359e4c78e&amp;data=01%7c01%7ctamach%40064d.mgd.microsoft.com%7ce39507345da2440480f708d32e27330b%7c72f988bf86f141af91ab2d7cd011db47%7c1&amp;sdata=bXKNuNUD%2bZKFia%2fO1i0LiTmfQiBZXOT8Vh7xD5A%2bVa4%3d">Click here to RSVP</a></p>                                               </td>                                                <td width="22">                                                 <p><a href="https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fclick.email.microsoftemail.com%2f%3fqs%3d345495915f7a74dc94282e27e0c6897c093ebdd2023ad52f958c36e268cd275dfd07cd8359e4c78e&amp;data=01%7c01%7ctamach%40064d.mgd.microsoft.com%7ce39507345da2440480f708d32e27330b%7c72f988bf86f141af91ab2d7cd011db47%7c1&amp;sdata=bXKNuNUD%2bZKFia%2fO1i0LiTmfQiBZXOT8Vh7xD5A%2bVa4%3d"><img border="0" alt="Click here to RSVP" src="http://image.email.microsoftemail.com/lib/fec41576756d0d7f/m/4/170237-sm-arrow.png" width="15" /></a></p>                                               </td>                                                <td width="12">&#160;</td>                                             </tr>                                           </tbody></table>                                       </td>                                     </tr>                                   </tbody></table>                               </td>                                <td width="20">&#160;</td>                                <td valign="top" width="173">                                 <table cellspacing="0" cellpadding="0" border="0"><tbody>                                     <tr>                                       <td valign="top">                                         <p align="left"><strong>Cape Town </strong>                                            <br /><strong>Date:</strong> 02 March 2016                                             <br /><strong>Time: </strong>9am - 5pm                                             <br /><strong>Address: </strong>Cape Town International Convention Centre Convention Square, 1 Lower Long St, Cape Town</p>                                       </td>                                     </tr>                                      <tr>                                       <td>                                         <p align="left"></p>                                       </td>                                     </tr>                                      <tr>                                       <td>                                         <table cellspacing="0" cellpadding="0" border="0"><tbody>                                             <tr>                                               <td width="12">&#160;</td>                                                <td width="130">                                                 <p><a href="https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fclick.email.microsoftemail.com%2f%3fqs%3d345495915f7a74dc240a8cca60eb8679df19dda0b0f7f8c4b88681c98551a1a39c6b389299d00568&amp;data=01%7c01%7ctamach%40064d.mgd.microsoft.com%7ce39507345da2440480f708d32e27330b%7c72f988bf86f141af91ab2d7cd011db47%7c1&amp;sdata=h0owlDoA2roZWyUf1ty2Dp%2foAkVzNg9mkYrf3keuyBg%3d">Click here to RSVP</a></p>                                               </td>                                                <td width="22">                                                 <p><a href="https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fclick.email.microsoftemail.com%2f%3fqs%3d345495915f7a74dc240a8cca60eb8679df19dda0b0f7f8c4b88681c98551a1a39c6b389299d00568&amp;data=01%7c01%7ctamach%40064d.mgd.microsoft.com%7ce39507345da2440480f708d32e27330b%7c72f988bf86f141af91ab2d7cd011db47%7c1&amp;sdata=h0owlDoA2roZWyUf1ty2Dp%2foAkVzNg9mkYrf3keuyBg%3d"><img border="0" alt="Click here to RSVP" src="http://image.email.microsoftemail.com/lib/fec41576756d0d7f/m/4/170237-sm-arrow.png" width="15" /></a></p>                                               </td>                                                <td width="12">&#160;</td>                                             </tr>                                           </tbody></table>                                       </td>                                     </tr>                                   </tbody></table>                               </td>                             </tr>                           </tbody></table>                       </td>                     </tr>                      <tr>                       <td valign="top">                         <p>Agenda: </p>                       </td>                     </tr>                      <tr>                       <td valign="top">                         <table cellspacing="0" cellpadding="0" border="0"><tbody>                             <tr>                               <td valign="top" width="15">                                 <p>1.</p>                               </td>                                <td valign="top" width="545">                                 <p>Welcome</p>                               </td>                             </tr>                              <tr>                               <td valign="top" width="15">                                 <p>2.</p>                               </td>                                <td valign="top" width="545">                                 <p>Introduction to Windows Universal Platform </p>                               </td>                             </tr>                              <tr>                               <td valign="top" width="15">                                 <p>3.</p>                               </td>                                <td valign="top" width="545">                                 <p>Windows and IoT </p>                               </td>                             </tr>                              <tr>                               <td valign="top" width="15">                                 <p>4.</p>                               </td>                                <td valign="top" width="545">                                 <p>Azure and IoT</p>                               </td>                             </tr>                              <tr>                               <td valign="top" width="15">                                 <p>5.</p>                               </td>                                <td valign="top" width="545">                                 <p>Machine Learning and IoT</p>                               </td>                             </tr>                              <tr>                               <td valign="top" width="15">                                 <p>6.</p>                               </td>                                <td valign="top" width="545">                                 <p>Panel Discussion </p>                               </td>                             </tr>                           </tbody></table>                       </td>                     </tr>                   </tbody></table>               </td>                <td valign="top" width="20">&#160;</td>             </tr>           </tbody></table>       </td>     </tr>   </tbody></table>]]></content:encoded>
    </item>
    <item>
      <title>Introducing DevConf: A community organized conference for developers</title>
      <link>https://docs.microsoft.com/archive/blogs/hemipteran/introducing-devconf-a-community-organized-conference-for-developers</link>
      <pubDate>Thu, 28 Jan 2016 05:24:16 GMT</pubDate>
      <dc:creator><![CDATA[Dave Russell (Technical Evangelist)]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/hemipteran/2016/01/28/introducing-devconf-a-community-organized-conference-for-developers/</guid>
      <description><![CDATA[&#160;    Coming up on the 8th March in Johannesburg is a new full day conference for all software...]]></description>
      <content:encoded><![CDATA[<p>&#160;</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/7041.banner_5E84193C.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/7041.banner_5F00_5E84193C.jpg"><img title="banner" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; float: none; padding-top: 0px; padding-left: 0px; margin-left: auto; display: block; padding-right: 0px; border-top-width: 0px; margin-right: auto" border="0" alt="banner" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/7268.banner_thumb_56FB3A80.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/7268.banner_5F00_thumb_5F00_56FB3A80.jpg" width="580" height="232" /></a></p>  <p>Coming up on the 8<sup>th</sup> March in Johannesburg is a new full day conference for all software developers and those interested in DevOps &amp; databases known as DevConf. This conference is being run for the first time and has attracted over 40 speakers, including a number international speakers to spend the day sharing and learning. DevConf serves to inspire software developers. A range of topics applicable to software development will be presented. From keeping up to date with the latest technologies and trends to tackling the challenges of working in large enterprise systems – it's a buffet of experiences, ideas and pragmatic advice as well as an opportunity to connect with peers across the industry. To achieve this the conference will have five tracks of content with over 40 sessions, covering programming languages, soft skills &amp; working in teams, DevOps, databases and tools &amp; frameworks giving developers the opportunity to grow their existing skills and cross skill for the future. </p>  <p>DevConf is being run by the Developer User Group with support from other user groups and sponsors and ticket sales are open. You can get all the details and tickets at <a href="http://www.devconf.co.za">http://www.devconf.co.za</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Getting to know IoT on the Windows Stack–Part 1</title>
      <link>https://docs.microsoft.com/archive/blogs/hemipteran/getting-to-know-iot-on-the-windows-stackpart-1</link>
      <pubDate>Thu, 28 Jan 2016 05:18:30 GMT</pubDate>
      <dc:creator><![CDATA[Dave Russell (Technical Evangelist)]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/hemipteran/2016/01/28/getting-to-know-iot-on-the-windows-stackpart-1/</guid>
      <description><![CDATA[Abstract  This series of posts will detail my somewhat bumbling ordeal of becoming more informed...]]></description>
      <content:encoded><![CDATA[<h4>Abstract</h4>  <p>This series of posts will detail my somewhat bumbling ordeal of becoming more informed when it comes to electronics, and things IoT. I must put a disclaimer in place. I am NOT an electronic engineer, I studied Computer Science and Psychology at University and am the first to admit that electronics is the equivalent of unicorns and magic to me at this point. </p>  <p>Join me on this journey and I hope I can show you somethings not to do and something new through what looks to be a very long series of complete mess ups. In this part I am going to look at IoT and Microsoft. </p>  <p><strong>Keywords: Internet of Things, Raspberry Pi, Arduino, Microsoft, Windows Universal Platform.</strong></p>  <h4>Introduction</h4>  <p>In this session I will be investigating the various options we have with regards to using the Windows IoT Core OS and getting setup. I will go into the various devices and programming options we have with regards to IoT on Windows and how we go about setting up our device for the series going forward.</p>  <h4>Discussion</h4>  <p>Internet of Things (IoT) has a been a major buzz word over the last year and a bit. What the heck is IoT? What is a thing of the internet? Is it anything that connects to the internet? </p>  <p>The one true source of a things true Wikipedia defines IoT as:</p>  <p><em>“The <b>Internet of Things</b> (<b>IoT</b>) is the network of physical objects, devices, vehicles, buildings and other items which are </em><a href="https://en.wikipedia.org/wiki/Embedded_system"><em>embedded</em></a><em> with </em><a href="https://en.wikipedia.org/wiki/Electronics"><em>electronics</em></a><em>, </em><a href="https://en.wikipedia.org/wiki/Software"><em>software</em></a><em>, </em><a href="https://en.wikipedia.org/wiki/Sensor"><em>sensors</em></a><em>, and </em><a href="https://en.wikipedia.org/wiki/Internet_access"><em>network connectivity</em></a><em>, which enables these objects to collect and exchange data”</em></p>  <p>While this definitely holds true I think something else is missing from the definition. This ability for items to communicate and exchange data also allows us to gain insight into how things work and improve on how they function. This exchange data enables us to control these items and build up models of how they interact and affect various aspects of the real world. This opens a world of opportunities for automation of various areas of life from making coffee in the morning (which is critically important) to manufacturing of cars, and sanitation. When we combine this world of millions if not billions of devices with the cloud we start seeing an amazing platform to gain information and to make our lives easier. </p>  <p>Microsoft has been making some pushes into IoT through two paths. The paths are:</p>  <ul>   <li>Operating system or IoT Clients </li>    <li>Cloud or IoT Services </li> </ul>  <p align="left">Figure 1.0 – IoT Base Structure shows a basic structure of an IoT Solution. Basically the information from sensors is passed and handled by the IoT Device. In some instances the device will process the information and do what it needs to without forwarding the information on to services. This is useful in offline scenarios where the IoT device does not have access the internet. In this scenario there is a wealth of information available which could be useful. </p>  <p align="center"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/4010.Picture2_562BF10C.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/4010.Picture2_5F00_562BF10C.png"><img title="Picture2" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="Picture2" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/4606.Picture2_thumb_40D0CC55.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/4606.Picture2_5F00_thumb_5F00_40D0CC55.png" width="600" height="298" /></a></p>  <p align="center">Figure 1.0 – IoT Base Structure</p>  <p align="left">Lets look at this with the Microsoft Technologies this is seen by Figure 1.1 IoT with the Microsoft Stack. </p>  <p align="left"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/8054.Picture3_2BE1DA93.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/8054.Picture3_5F00_2BE1DA93.png"><img title="Picture3" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; float: none; padding-top: 0px; padding-left: 0px; margin-left: auto; display: block; padding-right: 0px; border-top-width: 0px; margin-right: auto" border="0" alt="Picture3" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/7752.Picture3_thumb_322B41D2.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/7752.Picture3_5F00_thumb_5F00_322B41D2.png" width="600" height="212" /></a></p>  <p align="center">Figure 1.1 IoT with the Microsoft Stack. </p>  <p align="left">As you can see there is quite an extensive set of component that form part of Microsoft’s set IoT stack. If we take a look at Figure 1.2 Azure IoT Reference Architecture Diagram we can see that the components that the Azure Stack provide covers all the various areas required to build a pretty great solution. </p>  <p align="left"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/3005.Azure-Ref-Architecture_1CD01D1B.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/3005.Azure_2D00_Ref_2D00_Architecture_5F00_1CD01D1B.png"><img title="Azure Ref Architecture" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; float: none; padding-top: 0px; padding-left: 0px; margin-left: auto; border-left: 0px; display: block; padding-right: 0px; margin-right: auto" border="0" alt="Azure Ref Architecture" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/6371.Azure-Ref-Architecture_thumb_78CF6DE0.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/6371.Azure_2D00_Ref_2D00_Architecture_5F00_thumb_5F00_78CF6DE0.png" width="600" height="278" /></a></p>  <p align="center">Figure 1.2 Azure IoT Reference Architecture Diagram</p>  <p align="left">I now have a basic understanding of IoT what are my options if I am looking at Microsoft. What is this Windows IoT Core thing? It is a build of Windows 10 that is engineered for devices which may not have a display and leverage different CPU architecture which focuses on low power. To sum up Windows IoT Core is an operating system design for IoT Scenarios. It is an edition of Windows 10 optimized for small footprint, low cost IoT devices.&#160; It supports universal apps, but does not include the Windows shell for first party apps, making it ideal for single purpose devices. IoT Core comes in a number of different flavors but we will be focusing on the basic Windows IoT Core version which is royalty free.</p>  <p align="left">What devices are supported by Windows IoT at this point in time (2016/01)? </p>  <ul>   <li>     <div align="left">Raspberry Pi 2</div>   </li>    <li>     <div align="left">MinnowBoard Max</div>   </li>    <li>     <div align="left">DragonBoard</div>   </li> </ul>  <p align="left"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/7142.Picture1_63E07C1E.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/7142.Picture1_5F00_63E07C1E.png"><img title="Picture1" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; float: none; padding-top: 0px; padding-left: 0px; margin-left: auto; display: block; padding-right: 0px; border-top-width: 0px; margin-right: auto" border="0" alt="Picture1" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/8105.Picture1_thumb_7C2B227F.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/8105.Picture1_5F00_thumb_5F00_7C2B227F.png" width="600" height="338" /></a></p>  <p align="left">All of these low power devices that are supported are about 1000 times faster than my first computer and they a 10th of the size. I love how far we have come. There are tons of IoT devices that don't support Windows IoT but Microsoft is working with various partners and the number of supported devices is increasing all the time. </p>  <p align="left">If you want to follow this series its probably a good time to get your hands on the following for the next installment:</p>  <ul>   <li>     <div align="left">1x Raspberry Pi 2</div>   </li>    <li>     <div align="left">1x Network Cable</div>   </li>    <li>     <div align="left">1x MicroSD card</div>   </li>    <li>     <div align="left">1x LED&#160; </div>   </li>    <li>     <div align="left">Some wires</div>   </li>    <li>     <div align="left">Some resistors</div>   </li> </ul>  <p align="left">There are a tons of kits available on the internet which are great to start with and can be shipped in fairly short times. </p>  <h4>Conclusion</h4>  <p>IoT is an exciting area to venture into, so far I feel like I am going to have to learn something about electronics but lets wing it for now. In the next installment of the series is to look deeper at the application options on Windows IoT Core and Universal Windows Platform and Node.js and build our first burnt out circuit board. I can't personally can’t wait to blow up some electronics. </p>  <p>I for one welcome our new robot overlords. </p>  <h4>References</h4>  <p><a title="https://en.wikipedia.org/wiki/Internet_of_Things" href="https://en.wikipedia.org/wiki/Internet_of_Things">https://en.wikipedia.org/wiki/Internet_of_Things</a></p>  <p><a title="http://ms-iot.github.io/content/en-US/IoTCore.htm" href="http://ms-iot.github.io/content/en-US/IoTCore.htm">http://ms-iot.github.io/content/en-US/IoTCore.htm</a></p>  <p><a href="http://www.windowsondevices.com">http://www.windowsondevices.com</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Up coming events April – June 2015</title>
      <link>https://docs.microsoft.com/archive/blogs/hemipteran/up-coming-events-april-june-2015</link>
      <pubDate>Thu, 09 Apr 2015 03:09:35 GMT</pubDate>
      <dc:creator><![CDATA[Dave Russell (Technical Evangelist)]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/hemipteran/2015/04/09/up-coming-events-april-june-2015/</guid>
      <description><![CDATA[We have a number of great events coming in following months. First big event to be spoken of is the...]]></description>
      <content:encoded><![CDATA[<p>We have a number of great events coming in following months. First big event to be spoken of is the Build Tour. We have Pete Brown, KiranKumar Balijepalli, and Shen Chauhan coming to South Africa to present some exciting content from the Build Conference. This will be on the 12th June 2015 in Johannesburg at Vodaworld and more details can be found here - <a title="https://johannesburg.build15.com/" href="https://johannesburg.build15.com/">https://johannesburg.build15.com/</a></p>  <p>Additionally we are also working on running the following camps:</p>  <ul>   <li>Unity 3D Porting Lab </li>    <li>Cloud Camp </li>    <li>Cloud Data Camp </li> </ul>  <p>See below for more details:</p>  <table cellspacing="0" cellpadding="2" border="1"><tbody>     <tr>       <td valign="top" width="114">         <p>Event</p>       </td>        <td valign="top" width="345">         <p>Description </p>       </td>        <td valign="top" width="256">         <p>Dates </p>       </td>        <td valign="top" width="117">         <p>Register at </p>       </td>     </tr>      <tr>       <td valign="top" width="114">         <p align="left">Unity Porting Lab            <br />Johannesburg</p>       </td>        <td valign="top" width="345">         <p align="left">Microsoft experts will be on hand in a lab setting to help you understand Unity and to port your existing apps to a broader audience on Windows and Windows Phone, and food and drinks will be available to fuel your development</p>       </td>        <td valign="top" width="256">         <p align="left">25 April 2015 09h00 – 17h00</p>       </td>        <td valign="top" width="117">         <p align="left"><a href="http://bit.ly/1D5s04U">http://bit.ly/1D5s04U</a></p>       </td>     </tr>      <tr>       <td valign="top" width="114">         <p align="left">Cloud Data Camp            <br />Johannesburg </p>       </td>        <td valign="top" width="345">         <p align="left">The Cloud Data Camp will show how to use data services and platforms in Azure. </p>       </td>        <td valign="top" width="256">         <p align="left">13 May 2015 13h00 – 17h00</p>       </td>        <td valign="top" width="117">         <p align="left"><a href="http://bit.ly/1cQ0PGn">http://bit.ly/1cQ0PGn</a></p>       </td>     </tr>      <tr>       <td valign="top" width="114">         <p align="left">Office Camp            <br />Johannesburg</p>       </td>        <td valign="top" width="345">         <p align="left">At this Office Camp, you will learn the concepts of the new Office 365 API model and go deep into building out an end-to-end example on the Office 365 environment.</p>       </td>        <td valign="top" width="256">         <p align="left">14 May 2015 09h00 – 17h00</p>       </td>        <td valign="top" width="117">         <p align="left"><a href="http://bit.ly/1E1tTVC">http://bit.ly/1E1tTVC</a></p>       </td>     </tr>   </tbody></table>  <p>We are looking forward to seeing you there. Cape Town event details happening soon.</p>  <div id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:cbd41c2e-f19f-47d6-bbd6-3229a8837113" class="wlWriterEditableSmartContent" style="float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px">Keywords: <a href="http://blogs.msdn.com/tag/Events" rel="tag">Events</a>, <a href="http://blogs.msdn.com/tag/South+Africa" rel="tag">South Africa</a>, <a href="http://blogs.msdn.com/tag/Cloud" rel="tag">Cloud</a>, <a href="http://blogs.msdn.com/tag/Unity3D" rel="tag">Unity3D</a></div>]]></content:encoded>
    </item>
    <item>
      <title>Developer Event – What’s new coming to Jhb, CT and Dbn</title>
      <link>https://docs.microsoft.com/archive/blogs/hemipteran/developer-event-whats-new-coming-to-jhb-ct-and-dbn</link>
      <pubDate>Thu, 26 Feb 2015 03:39:20 GMT</pubDate>
      <dc:creator><![CDATA[Dave Russell (Technical Evangelist)]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/hemipteran/2015/02/26/developer-event-whats-new-coming-to-jhb-ct-and-dbn/</guid>
      <description><![CDATA[&#160;...]]></description>
      <content:encoded><![CDATA[<p>&#160;</p>  <table cellspacing="0" cellpadding="0" width="501" border="0"><tbody>     <tr>       <td valign="top" width="499">         <p><img src="http://image.email.microsoftemail.com/lib/feca15777462077e/m/1/123784MS_DevDays_1.gif" width="500" height="305" /></p>       </td>     </tr>      <tr>       <td valign="top" width="499">         <table cellspacing="0" cellpadding="0" border="0"><tbody>             <tr>               <td valign="top" width="675">                 <p align="left">Microsoft Dev Day is a free and fun event for developers by developers.                    <br />Please join us for this special Dev Day that will be presented by Microsoft technical experts.</p>                  <p align="left">At this Dev event we will cover some of the recent announcements made by Microsoft to affect developers including Visual Studio 2015 CTP, Azure Machine Learning, Universal Apps and changes to C#. You will see how to setup your development environment in the cloud, best practices in software lifecycle management, and learn about the latest trends and tools.                    <br />The Microsoft Dev events are a great place to move your Microsoft development skills to a new level and learn how Microsoft is moving the industry forward. </p>               </td>             </tr>              <tr>               <td valign="top" width="675">&#160;</td>             </tr>           </tbody></table>       </td>     </tr>      <tr>       <td width="499">         <table cellspacing="0" cellpadding="2" width="465" align="center" border="0"><tbody>             <tr>               <td valign="top">                 <table cellspacing="0" cellpadding="0" border="0"><tbody>                     <tr>                       <td valign="top">                         <table cellspacing="0" cellpadding="0" border="0"><tbody>                             <tr>                               <td>                                 <p>JOHANNESBURG<b></b></p>                               </td>                             </tr>                           </tbody></table>                       </td>                     </tr>                      <tr>                       <td valign="top">&#160;</td>                     </tr>                      <tr>                       <td valign="top">                         <table cellspacing="0" cellpadding="0" border="0"><tbody>                             <tr>                               <td valign="top" width="46">                                 <p>Date:</p>                               </td>                                <td valign="top" width="158">                                 <p>11 March 2015</p>                               </td>                             </tr>                              <tr>                               <td valign="top">                                 <p>Time:</p>                               </td>                                <td valign="top">                                 <p>9:30 – 17:00</p>                               </td>                             </tr>                              <tr>                               <td valign="top">                                 <p>Venue:</p>                               </td>                                <td valign="top">                                 <p align="left">FNB Conference Centre                                    <br />114 Grayston Drive                                     <br />Sandton                                     <br /><a href="http://click.email.microsoftemail.com/?qs=430c1ba95eebc23cf6dcaa4fe27bbb47545d10abf7cecc56e63151e89197914f5cff50fa4c687fb3">MAP</a></p>                               </td>                             </tr>                           </tbody></table>                       </td>                     </tr>                      <tr>                       <td valign="top">                         <p><a href="http://click.email.microsoftemail.com/?qs=430c1ba95eebc23c8d44dd8297a71009b928d7b692131640908ead22e98d2a33e97c0a2f71bc3a2e"><img border="0" src="http://image.email.microsoftemail.com/lib/feca15777462077e/m/1/123784RSVP.gif" width="148" height="22" /></a></p>                       </td>                     </tr>                      <tr>                       <td valign="top">                         <p><a href="http://click.email.microsoftemail.com/?qs=430c1ba95eebc23c8d44dd8297a71009b928d7b692131640908ead22e98d2a33e97c0a2f71bc3a2e">&#160;</a></p>                       </td>                     </tr>                   </tbody></table>               </td>                <td valign="top">                 <table cellspacing="0" cellpadding="0" border="0"><tbody>                     <tr>                       <td valign="top">                         <table cellspacing="0" cellpadding="0" border="0"><tbody>                             <tr>                               <td>                                 <p>CAPE TOWN<b></b></p>                               </td>                             </tr>                           </tbody></table>                       </td>                     </tr>                      <tr>                       <td valign="top">&#160;</td>                     </tr>                      <tr>                       <td valign="top">                         <table cellspacing="0" cellpadding="0" border="0"><tbody>                             <tr>                               <td valign="top" width="46">                                 <p>Date:</p>                               </td>                                <td valign="top" width="158">                                 <p>17 March 2015</p>                               </td>                             </tr>                              <tr>                               <td valign="top">                                 <p>Time:</p>                               </td>                                <td valign="top">                                 <p>9:30 – 17:00</p>                               </td>                             </tr>                              <tr>                               <td valign="top">                                 <p>Venue:</p>                               </td>                                <td valign="top">                                 <p align="left">Atlantic Imbizo                                    <br />Clock Tower Centre                                     <br />V&amp;A Waterfront                                     <br />                                    <br /><a href="http://click.email.microsoftemail.com/?qs=430c1ba95eebc23c9182ac48815e9e2dfc5f5a93f290419812285b0fd7dfa0e0bd3da9e29e0ad1e7">MAP</a></p>                               </td>                             </tr>                           </tbody></table>                       </td>                     </tr>                      <tr>                       <td valign="top">                         <p><a href="http://click.email.microsoftemail.com/?qs=430c1ba95eebc23c612ca5c425d481f5d382491c0104d128bbbe4dab61721364db929cf2a64063a2"><img border="0" src="http://image.email.microsoftemail.com/lib/feca15777462077e/m/1/123784RSVP.gif" width="148" height="22" /></a></p>                       </td>                     </tr>                      <tr>                       <td valign="top">                         <p><a href="http://click.email.microsoftemail.com/?qs=430c1ba95eebc23c8d44dd8297a71009b928d7b692131640908ead22e98d2a33e97c0a2f71bc3a2e">&#160;</a></p>                       </td>                     </tr>                   </tbody></table>               </td>                <td valign="top" width="200">                 <table cellspacing="0" cellpadding="0" border="0"><tbody>                     <tr>                       <td valign="top">                         <table cellspacing="0" cellpadding="0" border="0"><tbody>                             <tr>                               <td>                                 <p>DURBAN<b></b></p>                               </td>                             </tr>                           </tbody></table>                       </td>                     </tr>                      <tr>                       <td valign="top">&#160;</td>                     </tr>                      <tr>                       <td valign="top">                         <table cellspacing="0" cellpadding="0" border="0"><tbody>                             <tr>                               <td valign="top" width="46">                                 <p>Date:</p>                               </td>                                <td valign="top" width="158">                                 <p>19 March 2015</p>                               </td>                             </tr>                              <tr>                               <td valign="top">                                 <p>Time:</p>                               </td>                                <td valign="top">                                 <p>9:30 – 17:00</p>                               </td>                             </tr>                              <tr>                               <td valign="top">                                 <p>Venue:</p>                               </td>                                <td valign="top">                                 <p align="left">Coastlands Umhlanga Hotel                                    <br />329 Umhlanga Rocks Drive                                     <br />Umhlanga Rocks                                     <br /><a href="http://click.email.microsoftemail.com/?qs=430c1ba95eebc23c2b9e0702db329f6159dd8260c73224f74850bf30cb1e5f55383054b05f6eaa46">MAP</a></p>                               </td>                             </tr>                           </tbody></table>                       </td>                     </tr>                      <tr>                       <td valign="top">                         <p><a href="http://click.email.microsoftemail.com/?qs=430c1ba95eebc23ced8b88167d678d7968c99ad305522459bfc4fd6e453a75b10e61d4154e93b6de"><img border="0" src="http://image.email.microsoftemail.com/lib/feca15777462077e/m/1/123784RSVP.gif" width="148" height="22" /></a></p>                       </td>                     </tr>                      <tr>                       <td valign="top">                         <p><a href="http://click.email.microsoftemail.com/?qs=430c1ba95eebc23c8d44dd8297a71009b928d7b692131640908ead22e98d2a33e97c0a2f71bc3a2e">&#160;</a></p>                       </td>                     </tr>                   </tbody></table>               </td>             </tr>           </tbody></table>       </td>     </tr>   </tbody></table>  <p>&#160;</p>  <p></p>  <div id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:5185251d-1d8c-41fc-ac62-20fcbdd996d9" class="wlWriterEditableSmartContent" style="float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px">Keywords: <a href="http://blogs.msdn.com/tags/Dev+Day" rel="tag">Dev Day</a>, <a href="http://blogs.msdn.com/tags/Cape+Town" rel="tag">Cape Town</a>, <a href="http://blogs.msdn.com/tags/Durban" rel="tag">Durban</a>, <a href="http://blogs.msdn.com/tags/Johannesburg" rel="tag">Johannesburg</a>, <a href="http://blogs.msdn.com/tags/Event" rel="tag">Event</a>, <a href="http://blogs.msdn.com/tags/C%23+Visual+Studio+Online" rel="tag">C# Visual Studio Online</a>, <a href="http://blogs.msdn.com/tags/Azure" rel="tag">Azure</a>, <a href="http://blogs.msdn.com/tags/ASP.Net" rel="tag">ASP.Net</a></div>]]></content:encoded>
    </item>
    <item>
      <title>Visual Studio Feature Walkthrough – Part 1</title>
      <link>https://docs.microsoft.com/archive/blogs/hemipteran/visual-studio-feature-walkthrough-part-1</link>
      <pubDate>Tue, 20 Jan 2015 05:44:40 GMT</pubDate>
      <dc:creator><![CDATA[Dave Russell (Technical Evangelist)]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/hemipteran/2015/01/20/visual-studio-feature-walkthrough-part-1/</guid>
      <description><![CDATA[Abstract   This is a series of posts that goes through the new features of Visual Studio. This...]]></description>
      <content:encoded><![CDATA[<h4>Abstract </h4>  <p>This is a series of posts that goes through the new features of Visual Studio. This specific post focuses on some of the new features of 2013. With 2015 coming soon and the CTP being available I will doing the same for 2015 once it is released. This first article covers the use of some of the new features in VS 2013. This is article is designed to be a walk through that you can do your self. </p>  <div id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:32080c67-eb63-4898-96a4-98c4631a39c6" class="wlWriterEditableSmartContent" style="float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px">Keywords: <a href="http://blogs.msdn.com/tags/Visual+Studio+2013/" rel="tag">Visual Studio 2013</a>, <a href="http://blogs.msdn.com/tags/C%23/" rel="tag">C#</a>, <a href="http://blogs.msdn.com/tags/Code/" rel="tag">Code</a>, <a href="http://blogs.msdn.com/tags/IDE/" rel="tag">IDE</a>, <a href="http://blogs.msdn.com/tags/Peek+Definition/" rel="tag">Peek Definition</a>, <a href="http://blogs.msdn.com/tags/Enhanced+Scroll+Bar/" rel="tag">Enhanced Scroll Bar</a>, <a href="http://blogs.msdn.com/tags/Navigate+To/" rel="tag">Navigate To</a>, <a href="http://blogs.msdn.com/tags/Roaming+Settings/" rel="tag">Roaming Settings</a></div>  <h4>Introduction</h4>  <p>The IDE is probably one of the most important tools a developer has. With various IDE’s out there from IntelliJ to Sublime and Visual Studio to name a few I generally find myself living in Visual Studio. What ever platform I work with, be it Unity3D, C++, C#, HTML JavaScript, PHP, VB, F# its all supported and is a great editor. There are a number of reasons for me mainly working in VS most of them subjective but mostly because I am most comfortable in Visual Studio and it has some amazing features. </p>  <p>This is the first of hopefully many walk through of the various features of Visual Studio. This issue we will be going through the introduction of the Sign in and Sync Settings, the Enhanced Scroll bar, Navigate to, and Peek Definition. I have structured this so you can follow through the step by step to become familiar with each of the features. </p>  <h4>Discussion</h4>  <p>In the current release of Visual Studio 2013 there were a lot of new features made available. For this walk through we will be leveraging Visual Studio 2013 Update 4 and C#. The first big change that has come to Visual Studio is the addition of roaming settings. What exactly does this mean? As a developer I have a lot of personal preferences as to how my IDE is configured. What if I was asked to work on another machine? In the past we needed to reconfigure all those settings again. Fortunately not any more now we log in to Visual Studio with our profile and Visual Studio will automatically setup as per your previous configurations. </p>  <h5>Roaming Profiles:</h5>  <p>Start up Visual Studio 2013 you should see a screen similar to below. As you can see I am currently logged out of Visual Studio (Highlighted in red) click on this sign in link. </p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/7446.Untitled1_4C0BE364.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/7446.Untitled1_5F00_4C0BE364.png"><img title="Untitled-1" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="Untitled-1" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/6763.Untitled1_thumb_1FF17724.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/6763.Untitled1_5F00_thumb_5F00_1FF17724.png" width="604" height="328" /></a> </p>  <p>This will display the following login screen. In order to take advantage of roaming settings you will need to have a Microsoft account, which can easily be created from this page. </p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/1106.Untitled2_10DD28FB.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/1106.Untitled2_5F00_10DD28FB.png"><img title="Untitled-2" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="Untitled-2" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/0407.Untitled2_thumb_02A140BC.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/0407.Untitled2_5F00_thumb_5F00_02A140BC.png" width="199" height="244" /></a> </p>  <p>Once you have logged in. All the settings that you have on your profile will now be downloaded and Visual Studio’s theme will be updated. Additionally if you have not setup Visual Studio and changes you make to your IDE from this point forward will be synchronised to which ever Visual Studio 2013 and above you use. Below you can see my Visual Studio was updated with my preferred settings (yes I know its just a picture but it works I promise). </p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/3823.Untitled3_74D18B71.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/3823.Untitled3_5F00_74D18B71.png"><img title="Untitled-3" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="Untitled-3" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/3821.Untitled3_thumb_3CB52EFD.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/3821.Untitled3_5F00_thumb_5F00_3CB52EFD.png" width="604" height="329" /></a> </p>  <p>This is really a great feature for developers that work across multiple machines and if you reinstall your OS and want to setup your environment quickly. Now that we have logged in lets build a simple project that we can check out the other features with.</p>  <h5>Setup for the other features:</h5>  <p>Now we are going to look at the other features the best way to do this is to simply create a project. I am using a C# console application. See below:</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/3704.Untitled4_4BEE287B.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/3704.Untitled4_5F00_4BEE287B.png"><img title="Untitled-4" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="Untitled-4" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/5153.Untitled4_thumb_3CD9DA52.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/5153.Untitled4_5F00_thumb_5F00_3CD9DA52.png" width="604" height="422" /></a> </p>  <p>Once we have the project created we have the usual Program.cs file and the program class. </p>  <h5>Enhanced Scroll bar:</h5>  <p>The next feature we are going to look at is the new scroll bar. In the static void main add the following erroneous line of code:</p>  <div id="codeSnippetWrapper" style="font-size: 8pt; overflow: auto; cursor: text; border-top: silver 1px solid; font-family: &#39;Courier New&#39;, courier, monospace; border-right: silver 1px solid; width: 97.5%; border-bottom: silver 1px solid; padding-bottom: 4px; direction: ltr; text-align: left; padding-top: 4px; padding-left: 4px; border-left: silver 1px solid; margin: 20px 0px 10px; line-height: 12pt; padding-right: 4px; max-height: 200px; background-color: #f4f4f4">   <div id="codeSnippet" style="border-top-style: none; font-size: 8pt; overflow: visible; border-left-style: none; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4">     <pre style="border-top-style: none; font-size: 8pt; overflow: visible; border-left-style: none; height: 19px; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum1" style="color: #606060">   1:</span> Hello I am text;</pre>
<!--CRLF--></div>
</div>

<p>This line of “code” isn't really a line of real code as we all know but it does help us demonstrate some of the new features. </p>

<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/6116.Untitled5_0C48ED4B.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/6116.Untitled5_5F00_0C48ED4B.png"><img title="Untitled-5" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="Untitled-5" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/1222.Untitled5_thumb_38F437D5.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/1222.Untitled5_5F00_thumb_5F00_38F437D5.png" width="604" height="329" /></a> </p>

<p>Have a look at the area I have highlighted in red. There are three indicators now visible in your scroll bar. The first indicator is the Yellow Line, this shows where changes have occurred in the file since it was opened. The next indicator is the red line which shows where errors are. The last indicator is the white line that goes across the scroll bar which shows where the cursor is currently located. If I save the file the Yellow Line changes to green showing that this was a change since opening the file that has been saved. In summary:</p>

<ul>
  <li><font color="#800000">Red</font> = Errors </li>

  <li><font color="#ffff00">Yellow</font> = Changes </li>

  <li><font color="#008000">Green</font> = Changes that have been saved </li>

  <li>While Line = Current Cursor position </li>
</ul>

<p>That's not all we can see with the scroll bar, if you right click on it and select scroll bar options. </p>

<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/0640.Untitled6_1EB65F62.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/0640.Untitled6_5F00_1EB65F62.png"><img title="Untitled-6" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="Untitled-6" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/6765.Untitled6_thumb_4E0A659D.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/6765.Untitled6_5F00_thumb_5F00_4E0A659D.png" width="196" height="244" /></a> </p>

<p>We are presented with all the customisations we can leverage for the scroll bar. </p>

<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/7737.Untitled7_31FC3763.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/7737.Untitled7_5F00_31FC3763.png"><img title="Untitled-7" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="Untitled-7" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/7217.Untitled7_thumb_0C94D4A6.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/7217.Untitled7_5F00_thumb_5F00_0C94D4A6.png" width="604" height="354" /></a> </p>

<p>Here we can change what information is shown as also how the scroll bar works. Lets select the Use map mode option. </p>

<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/1323.Untitled8_26F7586E.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/1323.Untitled8_5F00_26F7586E.png"><img title="Untitled-8" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="Untitled-8" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/4760.Untitled8_thumb_0CB97FFB.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/4760.Untitled8_5F00_thumb_5F00_0CB97FFB.png" width="604" height="329" /></a> </p>

<p>Now with the Map mode on I can see a smaller view of my code and if I mouse over any section of it a preview is displayed. This is a great feature for keeping track of code and navigating around a source file quickly. The next feature I am going to look at also involves navigation.</p>

<h5>Navigate To:</h5>

<p>When projects grow in size they become more and more difficult to locate specific information inside the solution. This is where the NavigateTo function comes in handy. This feature is accessed by pressing ctrl+, (control + comma) and shows a bar on the top right. In this input bar you can type what you are looking for and Visual Studio will search within your entire solution for any file that has that item and open to the appropriate location in the file. </p>

<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/8546.Untitled10_799AE3FF.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/8546.Untitled10_5F00_799AE3FF.png"><img title="Untitled-10" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="Untitled-10" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/2480.Untitled10_thumb_6205C73D.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/2480.Untitled10_5F00_thumb_5F00_6205C73D.png" width="604" height="326" /></a> </p>

<p>Simply click on the most appropriate resolve and Visual studio will navigate you to the correct place. If you have text selected in your source file and press ctrl+, it will automatically populate the box with the selected text to help you find where else in the solution the text can be found. </p>

<p>The last feature we are going to look at is the Peek Definition.</p>

<h5>Peek Definition:</h5>

<p>Have you ever wanted to look at how a function in another file is implemented? Peek definition will give you an easy way of solving this problem. Lets delete the silly text we inserted into&#160; the Main function. Insert the below code into the Main function in its place. </p>

<div id="codeSnippetWrapper" style="font-size: 8pt; overflow: auto; cursor: text; border-top: silver 1px solid; font-family: &#39;Courier New&#39;, courier, monospace; border-right: silver 1px solid; width: 97.5%; border-bottom: silver 1px solid; padding-bottom: 4px; direction: ltr; text-align: left; padding-top: 4px; padding-left: 4px; border-left: silver 1px solid; margin: 20px 0px 10px; line-height: 12pt; padding-right: 4px; max-height: 200px; background-color: #f4f4f4">
  <div id="codeSnippet" style="border-top-style: none; font-size: 8pt; overflow: visible; border-left-style: none; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4">
    <pre style="border-top-style: none; font-size: 8pt; overflow: visible; border-left-style: none; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum1" style="color: #606060">   1:</span> Cat cat = <span style="color: #0000ff">new</span> Cat(<span style="color: #006080">&quot;Bob&quot;</span>, 16);</pre>
<!--CRLF-->

    <pre style="border-top-style: none; font-size: 8pt; overflow: visible; border-left-style: none; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum2" style="color: #606060">   2:</span> cat.Meow();</pre>
<!--CRLF-->

    <pre style="border-top-style: none; font-size: 8pt; overflow: visible; border-left-style: none; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum3" style="color: #606060">   3:</span> cat.Lives = 9; </pre>
<!--CRLF--></div>
</div>

<p>Obviously these classes don't exist. So lets create them quickly by putting the cursor on the type Cat and pressing ctrl +. (control + full stop) select generate class. This will automatically create the class for you. Now select the new Cat object and press ctrl + . again and generate the constructor. To finish off generate the stubs for both Meow() and Lives. We now have the option of opening the Cat.cs file but that would be the slow way. What we can do now is select any of the components of the Cat class and press Alt + F12. It will show the below screen: </p>

<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/8156.Untitled11_23A2943B.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/8156.Untitled11_5F00_23A2943B.png"><img title="Untitled-11" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="Untitled-11" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/0525.Untitled11_thumb_1017C54B.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/0525.Untitled11_5F00_thumb_5F00_1017C54B.png" width="604" height="329" /></a> </p>

<p>This opens a preview / peek window with a view into the source code into Cat.cs code. This is a great feature for looking at other code inside of an application. You can also modify code inside of the window to make quick changes or open the file from the peek window if you want to have it available as a separate tab. </p>

<h4>Conclusion</h4>

<p>Visual Studio 2013 has a number of amazing features that help us be more productive. Why We are currently eagerly awaiting the release of VS 2015 which will have even more great features for developers. If there any specific features you would like me to cover in the next one please drop me a comment or send me a message through the blog. </p>

<h4>References</h4>

<p align="left"><em>What's New in Visual Studio 2013 </em>[Online] 

  <br />Available: <a title="http://msdn.microsoft.com/en-us/library/bb386063.aspx" href="http://msdn.microsoft.com/en-us/library/bb386063.aspx">http://msdn.microsoft.com/en-us/library/bb386063.aspx</a> [20 January 2015]</p>

<p></p>

<p align="left">Johan Ohlin (2013) <em>8 great features in Visual Studio 2013</em> [Online] 

  <br />Available: <a title="http://www.codeproject.com/Articles/685332/great-features-in-Visual-Studio" href="http://www.codeproject.com/Articles/685332/great-features-in-Visual-Studio">http://www.codeproject.com/Articles/685332/great-features-in-Visual-Studio</a> [20 January 2015]</p>

<p></p>

<p></p>

<p></p>

<p align="left">Shateesh Averti (2013) <em>Look at Enhanced Scrollbar in VS 2013 </em>[Online] 

  <br />Available: <a title="http://www.c-sharpcorner.com/Blogs/13546/look-at-enhanced-scrollbar-in-vs-2013.aspx" href="http://www.c-sharpcorner.com/Blogs/13546/look-at-enhanced-scrollbar-in-vs-2013.aspx">http://www.c-sharpcorner.com/Blogs/13546/look-at-enhanced-scrollbar-in-vs-2013.aspx</a> [20 January 2015]</p>]]></content:encoded>
    </item>
    <item>
      <title>Microsoft Dev Day Content</title>
      <link>https://docs.microsoft.com/archive/blogs/hemipteran/microsoft-dev-day-content</link>
      <pubDate>Tue, 30 Sep 2014 05:15:44 GMT</pubDate>
      <dc:creator><![CDATA[Dave Russell (Technical Evangelist)]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/hemipteran/2014/09/30/microsoft-dev-day-content/</guid>
      <description><![CDATA[Jarrod and I recently went on a tour around South Africa to present on some great technologies such...]]></description>
      <content:encoded><![CDATA[<p>Jarrod and I recently went on a tour around South Africa to present on some great technologies such as SignalR, WebAPI, Azure, Xamarin and Cordova. Due to popular demand here are the slides and source code that were part of my presentations during the day. </p>  <p>It was great seeing all the amazing developers across South Africa and we are looking forward to seeing you all again in November 2014. </p>  <p>Slides:</p>  <ul>   <li><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/DownloadFiles/20140930%20Dev%20Camp/8512.Dev%20Camps%20-%20ASP.net%20WebAPI%20&%20SignalR.pptx" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-DownloadFiles-20140930+Dev+Camp/8512.Dev-Camps-_2D00_-ASP.net-WebAPI-_2600_-SignalR.pptx" target="_blank">ASP.Net WebAPI and SignalR</a></li>    <li><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/DownloadFiles/20140930%20Dev%20Camp/3817.Dev%20Camps%20-%20ALM%20and%20the%20Cloud.pptx" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-DownloadFiles-20140930+Dev+Camp/3817.Dev-Camps-_2D00_-ALM-and-the-Cloud.pptx" target="_blank">ALM and the cloud</a></li>    <li><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/DownloadFiles/20140930%20Dev%20Camp/3482.Dev%20Camps%20-%20Azure%20and%20Mobility.pptx" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-DownloadFiles-20140930+Dev+Camp/3482.Dev-Camps-_2D00_-Azure-and-Mobility.pptx" target="_blank">Azure and Mobility</a></li>    <li><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/DownloadFiles/20140930%20Dev%20Camp/8688.Dev%20Camps%20-%20Azure%20Service%20Bus.pptx" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-DownloadFiles-20140930+Dev+Camp/8688.Dev-Camps-_2D00_-Azure-Service-Bus.pptx" target="_blank">Azure Service Bus</a></li> </ul>  <p>Code:</p>  <ul>   <li><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/DownloadFiles/20140930%20Dev%20Camp/3225.01.%20WebAPI.zip" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-DownloadFiles-20140930+Dev+Camp/3225.01.-WebAPI.zip" target="_blank">ASP.Net WebAPI</a></li>    <li><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/DownloadFiles/20140930%20Dev%20Camp/7484.02.%20SignalR.zip" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-DownloadFiles-20140930+Dev+Camp/7484.02.-SignalR.zip" target="_blank">SignalR</a></li>    <li><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/DownloadFiles/20140930%20Dev%20Camp/2845.05.%20Service%20Bus.zip" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-DownloadFiles-20140930+Dev+Camp/2845.05.-Service-Bus.zip" target="_blank">Service Bus</a></li> </ul>]]></content:encoded>
    </item>
    <item>
      <title>Building a simple executive toy using Kinect for Windows v2 and Unity3D</title>
      <link>https://docs.microsoft.com/archive/blogs/hemipteran/building-a-simple-executive-toy-using-kinect-for-windows-v2-and-unity3d</link>
      <pubDate>Fri, 15 Aug 2014 04:24:14 GMT</pubDate>
      <dc:creator><![CDATA[Dave Russell (Technical Evangelist)]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/hemipteran/2014/08/15/building-a-simple-executive-toy-using-kinect-for-windows-v2-and-unity3d/</guid>
      <description><![CDATA[&#160;     Abstract  This article will look into how to leverage the new Kinect for Windows 2.0...]]></description>
      <content:encoded><![CDATA[<p>&#160;</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/0118.Untitled1_5AEA54FE.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/0118.Untitled1_5F00_5AEA54FE.png"><img title="Untitled-1" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="Untitled-1" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/2134.Untitled1_thumb_4B02C24D.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/2134.Untitled1_5F00_thumb_5F00_4B02C24D.png" width="600" height="365" /></a> </p>  <h5>Abstract</h5>  <p>This article will look into how to leverage the new Kinect for Windows 2.0 device to create a simple executive toy using Unity and the Unity plugin. The aim is to demonstrate how easy it is to leverage Kinect in your Unity projects and how to build some thing simple quickly. This is a step by step guide on how to great the Kinect Wall app and how it works. </p>  <h5>Keywords: Unity3D, Kinect, Shaders, Cg, Geometry Shaders, Vertex Shaders, Fragment Shaders, Textures</h5>  <h5>Introduction</h5>  <h5>Research Method</h5>  <p>I am taking a tutorial approach for this article where I will show you step by step how to build create the application. The application source code will be available on Codeplex free to use in anyway you like. </p>  <h5>Requirements</h5>  <ul>   <li>Unity 3d Pro – yes unfortunately because we are accessing unsafe code we need Pro </li>    <li>Kinect SDK </li>    <li>Kinect Unity Plugin </li> </ul>  <h5>Tutorial</h5>  <p>The first step is to start Unity and create a new Project. Give it a name and click create. </p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/2500.01.CreatenewProject_6B427A5F.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/2500.01.CreatenewProject_5F00_6B427A5F.png"><img title="01.-Create-new-Project." style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="01.-Create-new-Project." src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/8231.01.CreatenewProject._thumb_36A4AED5.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/8231.01.CreatenewProject._5F00_thumb_5F00_36A4AED5.png" width="400" height="257" /></a> </p>  <p>The next step is to do some minor admin in my project. The main thing I do here is create the following folders so I can manage my project a little neater:</p>  <ul>   <li>Materials </li>    <li>Scripts </li>    <li>Shaders </li>    <li>Scenes </li>    <li>Textures </li> </ul>  <p>Now we begin to setup some of the items we need to create to make this all work. We will need the following:</p>  <ul>   <li>Empty Material </li>    <li>Scene – Main one with our camera, lights, etc </li>    <li>Textures – These are textures we are going to use for our bricks </li>    <li>Shader – This does all the depth and body index process as well as all the geometry generation </li>    <li>Main Script – This spins up the Kinect device and passes information through to the Shader for processing. </li> </ul>  <p>We now need to add the Kinect for Windows v2 assets by going to the Assets –&gt; Import Package –&gt; Custom Package option and selecting the Kinect v2 Unity package. This will import all the required assets into the project so we can access the sensor. I need to enable unsafe code, the way that I do this is by adding a file called smcs.rsp to my Assets folder. This file is a simple text file with the single line inside of –unsafe.</p>  <p>Next we create the mainscript file and retrieve all the information from the sensor and pass it to the Shader. Inside the MainScript there are a number of default methods. Start which is used for initialisation and Update which is called as part of the update thread. Inside the Start function we are going to initialise the sensor and some of the storage structure for the stream of information. Firstly I create some local variables to store the sensor states:</p>  <div id="codeSnippetWrapper" style="overflow: auto; cursor: text; font-size: 8pt; border-top: silver 1px solid; font-family: &#39;Courier New&#39;, courier, monospace; border-right: silver 1px solid; width: 97.5%; border-bottom: silver 1px solid; padding-bottom: 4px; direction: ltr; text-align: left; padding-top: 4px; padding-left: 4px; margin: 20px 0px 10px; border-left: silver 1px solid; line-height: 12pt; padding-right: 4px; max-height: 200px; background-color: #f4f4f4">   <div id="codeSnippet" style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4">     <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum1" style="color: #606060">   1:</span> <span style="color: #0000ff">private</span> KinectSensor sensor;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum2" style="color: #606060">   2:</span> <span style="color: #0000ff">private</span> DepthFrameReader depthreader;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum3" style="color: #606060">   3:</span> <span style="color: #0000ff">private</span> BodyIndexFrameReader bodyreader;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum4" style="color: #606060">   4:</span> <span style="color: #0000ff">private</span> <span style="color: #0000ff">byte</span>[] depthdata;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum5" style="color: #606060">   5:</span> <span style="color: #0000ff">private</span> <span style="color: #0000ff">byte</span>[] bodydata;</pre>
<!--CRLF--></div>
</div>

<p>The KinectSensor object gives us access to the various data streams from the device. Because we want the outline of the player and the depth information we need to access to the DepthFrame and BodyIndex information. </p>

<div id="codeSnippetWrapper" style="overflow: auto; cursor: text; font-size: 8pt; border-top: silver 1px solid; font-family: &#39;Courier New&#39;, courier, monospace; border-right: silver 1px solid; width: 97.5%; border-bottom: silver 1px solid; padding-bottom: 4px; direction: ltr; text-align: left; padding-top: 4px; padding-left: 4px; margin: 20px 0px 10px; border-left: silver 1px solid; line-height: 12pt; padding-right: 4px; max-height: 200px; background-color: #f4f4f4">
  <div id="codeSnippet" style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4">
    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum1" style="color: #606060">   1:</span> depthreader = sensor.DepthFrameSource.OpenReader();</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum2" style="color: #606060">   2:</span> bodyreader = sensor.BodyIndexFrameSource.OpenReader();</pre>
<!--CRLF--></div>
</div>

<p>We get the information from the reader in the update loop in the following manner</p>

<div id="codeSnippetWrapper" style="overflow: auto; cursor: text; font-size: 8pt; border-top: silver 1px solid; font-family: &#39;Courier New&#39;, courier, monospace; border-right: silver 1px solid; width: 97.5%; border-bottom: silver 1px solid; padding-bottom: 4px; direction: ltr; text-align: left; padding-top: 4px; padding-left: 4px; margin: 20px 0px 10px; border-left: silver 1px solid; line-height: 12pt; padding-right: 4px; max-height: 200px; background-color: #f4f4f4">
  <div id="codeSnippet" style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4">
    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum1" style="color: #606060">   1:</span> var depthframe = depthreader.AcquireLatestFrame();</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum2" style="color: #606060">   2:</span>&#160; </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum3" style="color: #606060">   3:</span> <span style="color: #0000ff">if</span> (depthframe != <span style="color: #0000ff">null</span>)</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum4" style="color: #606060">   4:</span> {</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum5" style="color: #606060">   5:</span>     <span style="color: #0000ff">fixed</span> (<span style="color: #0000ff">byte</span>* pData = depthdata)</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum6" style="color: #606060">   6:</span>     {</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum7" style="color: #606060">   7:</span>         depthframe.CopyFrameDataToIntPtr(<span style="color: #0000ff">new</span> System.IntPtr(pData), (<span style="color: #0000ff">uint</span>)depthdata.Length);</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum8" style="color: #606060">   8:</span>     }</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum9" style="color: #606060">   9:</span>     depthframe.Dispose();</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum10" style="color: #606060">  10:</span>     depthframe = <span style="color: #0000ff">null</span>;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum11" style="color: #606060">  11:</span>&#160; </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum12" style="color: #606060">  12:</span>     DepthTexture.LoadRawTextureData(depthdata);</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum13" style="color: #606060">  13:</span>     DepthTexture.Apply();</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum14" style="color: #606060">  14:</span> }</pre>
<!--CRLF--></div>
</div>

<p>This will read the information into a byte array that I can then send to the Shader either through a Texture of via a ComputeBuffer. To kick start the shader I need to set all the parameters and then tell it to start drawing using the following:</p>

<div id="codeSnippetWrapper" style="overflow: auto; cursor: text; font-size: 8pt; border-top: silver 1px solid; font-family: &#39;Courier New&#39;, courier, monospace; border-right: silver 1px solid; width: 97.5%; border-bottom: silver 1px solid; padding-bottom: 4px; direction: ltr; text-align: left; padding-top: 4px; padding-left: 4px; margin: 20px 0px 10px; border-left: silver 1px solid; line-height: 12pt; padding-right: 4px; max-height: 200px; background-color: #f4f4f4">
  <div id="codeSnippet" style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4">
    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum1" style="color: #606060">   1:</span> ShaderMaterial.SetTexture(<span style="color: #006080">&quot;_MainTex&quot;</span>, MainTexture);</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum2" style="color: #606060">   2:</span> ShaderMaterial.SetTexture(<span style="color: #006080">&quot;_DepthTex&quot;</span>, DepthTexture);</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum3" style="color: #606060">   3:</span> ShaderMaterial.SetFloat(<span style="color: #006080">&quot;_DepthWidth&quot;</span>, DepthWidth);</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum4" style="color: #606060">   4:</span> ShaderMaterial.SetFloat(<span style="color: #006080">&quot;_DepthHeight&quot;</span>, DepthHeight);</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum5" style="color: #606060">   5:</span> ShaderMaterial.SetBuffer(<span style="color: #006080">&quot;_BodyIndexBuffer&quot;</span>, bodyIndexBuffer);</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum6" style="color: #606060">   6:</span> ShaderMaterial.SetPass(0);</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum7" style="color: #606060">   7:</span>     </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum8" style="color: #606060">   8:</span> Graphics.DrawProcedural(MeshTopology.Points, WallWidth * WallHeight, 1);</pre>
<!--CRLF--></div>
</div>

<p>We now have everything in the MainScript we need, to see the complete source code with both methods of getting data to a Shader as well as getting bodyindex information have a look at the codeplex source where the complete project is available. </p>

<p>Remember to save your scene scene into the scene folder. I then add some items to my scene the first is a few lights to provide a clean effect for the wall. The next is an empty game object (GameObject –&gt; Create Empty /Ctrl-Shift-N). I now add my main script into my Scripts folder and select the mainScriptObject and drag the script onto it. </p>

<p>What I need to do now is create a shader and a material that will use this shader. Creating the shader first and then the material I then drag the material on to the mainScriptObject shader material property. Now we start looking at the shader. The shader will handle all the tile generation for my scene. I will be leveraging a geometry shader to perform all the object handling. The reason for this is mainly performance and processing for the textures will take too long outside of the shader. </p>

<p>The shader itself is below and I have commented as much of the code as possible to make it easy to understand. Currently the depth from the depth buffer isn't functioning as I had hoped and will post an update as soon as I have tweaked it. </p>

<div id="codeSnippetWrapper" style="overflow: auto; cursor: text; font-size: 8pt; border-top: silver 1px solid; font-family: &#39;Courier New&#39;, courier, monospace; border-right: silver 1px solid; width: 97.5%; border-bottom: silver 1px solid; padding-bottom: 4px; direction: ltr; text-align: left; padding-top: 4px; padding-left: 4px; margin: 20px 0px 10px; border-left: silver 1px solid; line-height: 12pt; padding-right: 4px; max-height: 200px; background-color: #f4f4f4">
  <div id="codeSnippet" style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4">
    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum1" style="color: #606060">   1:</span> Shader <span style="color: #006080">&quot;Custom/WallShader&quot;</span> {</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum2" style="color: #606060">   2:</span>     Properties {</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum3" style="color: #606060">   3:</span>         _MainTex (<span style="color: #006080">&quot;Main Brick Texture&quot;</span>, 2D) = <span style="color: #006080">&quot;white&quot;</span> {}</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum4" style="color: #606060">   4:</span>         _DepthTex (<span style="color: #006080">&quot;Kinect Depth Image&quot;</span>, 2D) = <span style="color: #006080">&quot;white&quot;</span> {}</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum5" style="color: #606060">   5:</span>         _DepthImageWidth(<span style="color: #006080">&quot;Depth Image Width&quot;</span>,Float) = 100</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum6" style="color: #606060">   6:</span>         _DepthImageHeight(<span style="color: #006080">&quot;Depth Image Height&quot;</span>,Float) = 50          </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum7" style="color: #606060">   7:</span>     }</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum8" style="color: #606060">   8:</span>     SubShader {</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum9" style="color: #606060">   9:</span>         Tags { <span style="color: #006080">&quot;LightMode&quot;</span> = <span style="color: #006080">&quot;ForwardBase&quot;</span> }            </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum10" style="color: #606060">  10:</span>         Pass</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum11" style="color: #606060">  11:</span>         {    </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum12" style="color: #606060">  12:</span>             Cull Off            </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum13" style="color: #606060">  13:</span>             LOD 200</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum14" style="color: #606060">  14:</span>     </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum15" style="color: #606060">  15:</span>             CGPROGRAM        </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum16" style="color: #606060">  16:</span>                 <span style="color: #cc6633">#pragma</span> vertex VS_Main</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum17" style="color: #606060">  17:</span>                 <span style="color: #cc6633">#pragma</span> geometry GS_Main            </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum18" style="color: #606060">  18:</span>                 <span style="color: #cc6633">#pragma</span> fragment FS_Main</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum19" style="color: #606060">  19:</span>                 #include <span style="color: #006080">&quot;UnityCG.cginc&quot;</span>                                </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum20" style="color: #606060">  20:</span>                 </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum21" style="color: #606060">  21:</span>                 uniform fixed4 _LightColor0;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum22" style="color: #606060">  22:</span>                 <span style="color: #cc6633">#define</span> TAM 36</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum23" style="color: #606060">  23:</span>&#160; </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum24" style="color: #606060">  24:</span>                 <span style="color: #0000ff">float</span> MinDepthMM = 500.0;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum25" style="color: #606060">  25:</span>                 <span style="color: #0000ff">float</span> MaxDepthMM = 8000.0;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum26" style="color: #606060">  26:</span>&#160; </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum27" style="color: #606060">  27:</span>                 <span style="color: #0000ff">float</span> _DepthImageWidth;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum28" style="color: #606060">  28:</span>                 <span style="color: #0000ff">float</span> _DepthImageHeight;                </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum29" style="color: #606060">  29:</span>                 </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum30" style="color: #606060">  30:</span>                 float4    _MainTex_ST;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum31" style="color: #606060">  31:</span>                 sampler2D _MainTex;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum32" style="color: #606060">  32:</span>&#160; </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum33" style="color: #606060">  33:</span>                 StructuredBuffer&lt;<span style="color: #0000ff">float</span>&gt; _BodyIndexBuffer;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum34" style="color: #606060">  34:</span>                 StructuredBuffer&lt;<span style="color: #0000ff">float</span>&gt; _DepthBuffer;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum35" style="color: #606060">  35:</span>                         </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum36" style="color: #606060">  36:</span>                 <span style="color: #008000">// Structs for passing information from item to item</span></pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum37" style="color: #606060">  37:</span>                 <span style="color: #0000ff">struct</span> EMPTY_INPUT</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum38" style="color: #606060">  38:</span>                 {</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum39" style="color: #606060">  39:</span>                 };</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum40" style="color: #606060">  40:</span>&#160; </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum41" style="color: #606060">  41:</span>                 <span style="color: #0000ff">struct</span> POSCOLOR_INPUT</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum42" style="color: #606060">  42:</span>                 {</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum43" style="color: #606060">  43:</span>                     float4    pos            : POSITION;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum44" style="color: #606060">  44:</span>                     float4  color        : COLOR;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum45" style="color: #606060">  45:</span>                     float2    uv_MainTex    : TEXCOORD0;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum46" style="color: #606060">  46:</span>                     float3    normal    : NORMAL;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum47" style="color: #606060">  47:</span>                 };</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum48" style="color: #606060">  48:</span>                                 </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum49" style="color: #606060">  49:</span>                 <span style="color: #008000">// Depth Helper function </span></pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum50" style="color: #606060">  50:</span>                 <span style="color: #0000ff">float</span> DepthFromPacked4444(float4 packedDepth)</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum51" style="color: #606060">  51:</span>                 {</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum52" style="color: #606060">  52:</span>                     <span style="color: #008000">// convert from [0,1] to [0,15]</span></pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum53" style="color: #606060">  53:</span>                     packedDepth *= 15.01f;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum54" style="color: #606060">  54:</span>     </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum55" style="color: #606060">  55:</span>                     <span style="color: #008000">// truncate to an int</span></pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum56" style="color: #606060">  56:</span>                     int4 rounded = (int4)packedDepth;                </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum57" style="color: #606060">  57:</span>     </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum58" style="color: #606060">  58:</span>                     <span style="color: #0000ff">return</span> rounded.w * 4096 + rounded.x * 256 + rounded.y * 16 + rounded.z;                </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum59" style="color: #606060">  59:</span>                 }</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum60" style="color: #606060">  60:</span>&#160; </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum61" style="color: #606060">  61:</span>                 </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum62" style="color: #606060">  62:</span>                 EMPTY_INPUT VS_Main() </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum63" style="color: #606060">  63:</span>                 {</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum64" style="color: #606060">  64:</span>                     <span style="color: #0000ff">return</span> (EMPTY_INPUT)0;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum65" style="color: #606060">  65:</span>                 }</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum66" style="color: #606060">  66:</span>&#160; </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum67" style="color: #606060">  67:</span>                  </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum68" style="color: #606060">  68:</span>                 [maxvertexcount(TAM)]</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum69" style="color: #606060">  69:</span>                 <span style="color: #0000ff">void</span> GS_Main(point EMPTY_INPUT p[1], <span style="color: #0000ff">uint</span> primID : SV_PrimitiveID, inout TriangleStream&lt;POSCOLOR_INPUT&gt; triStream)</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum70" style="color: #606060">  70:</span>                 {                                                    </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum71" style="color: #606060">  71:</span>                     float4 currentCoordinates = float4(primID % 100, (primID / 100), 0, 1.0);    </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum72" style="color: #606060">  72:</span>                     </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum73" style="color: #606060">  73:</span>                     float4 offset = float4(0,0,0,0);</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum74" style="color: #606060">  74:</span>                     float4 scale = float4(1,1,1,0);</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum75" style="color: #606060">  75:</span>                     float4 curcolor = float4(1,1,1,1);    </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum76" style="color: #606060">  76:</span>&#160; </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum77" style="color: #606060">  77:</span>                     <span style="color: #0000ff">float</span> depth = 0;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum78" style="color: #606060">  78:</span>                                         </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum79" style="color: #606060">  79:</span>                     <span style="color: #008000">//TODO - Figure out best way to handle this // I suspect a compute shader would work                                                        </span></pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum80" style="color: #606060">  80:</span>                     float4 textureCoordinates = float4(currentCoordinates.x/100 * 512/4,currentCoordinates.y/50 * 424,0,0);</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum81" style="color: #606060">  81:</span>&#160; </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum82" style="color: #606060">  82:</span>                     <span style="color: #0000ff">int</span> index = (<span style="color: #0000ff">int</span>)(textureCoordinates.x) + ((<span style="color: #0000ff">int</span>)textureCoordinates.y * 512/4);</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum83" style="color: #606060">  83:</span>                     <span style="color: #0000ff">int</span> depthindex = (<span style="color: #0000ff">int</span>)(textureCoordinates.x) + ((<span style="color: #0000ff">int</span>)textureCoordinates.y * 512);</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum84" style="color: #606060">  84:</span>                     <span style="color: #0000ff">float</span> player = _BodyIndexBuffer[index];</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum85" style="color: #606060">  85:</span>                     <span style="color: #0000ff">uint</span> depthinfo = (<span style="color: #0000ff">uint</span>)_DepthBuffer[depthindex] &gt;&gt; 3;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum86" style="color: #606060">  86:</span>                     </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum87" style="color: #606060">  87:</span>                     <span style="color: #008000">// Get more depth information</span></pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum88" style="color: #606060">  88:</span>                     <span style="color: #0000ff">if</span>(player &gt; 0 &amp;&amp; player &lt; 1) </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum89" style="color: #606060">  89:</span>                     {                                                </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum90" style="color: #606060">  90:</span>                         depth = -3;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum91" style="color: #606060">  91:</span>                         depth -= depthinfo * 3;                        </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum92" style="color: #606060">  92:</span>                     }                            </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum93" style="color: #606060">  93:</span>                                                             </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum94" style="color: #606060">  94:</span>                      </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum95" style="color: #606060">  95:</span>                     <span style="color: #0000ff">float</span> f = 1.0;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum96" style="color: #606060">  96:</span>                     <span style="color: #008000">//Construct a cube</span></pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum97" style="color: #606060">  97:</span>&#160; </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum98" style="color: #606060">  98:</span>                     <span style="color: #0000ff">const</span> float4 vc[TAM] = { </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum99" style="color: #606060">  99:</span>                         float4( -f,  f,  f, 1.0f), float4(  f,  f,  f, 1.0f), float4(  f,  f, -f, 1.0f),   <span style="color: #008000">//Top                                </span></pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum100" style="color: #606060"> 100:</span>                         float4(  f,  f, -f, 1.0f), float4( -f,  f, -f, 1.0f), float4( -f,  f,  f, 1.0f),   <span style="color: #008000">//Top</span></pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum101" style="color: #606060"> 101:</span>  </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum102" style="color: #606060"> 102:</span>                         float4(  f,  f, -f, 1.0f), float4(  f,  f,  f, 1.0f), float4(  f, -f,  f, 1.0f),   <span style="color: #008000">//Right</span></pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum103" style="color: #606060"> 103:</span>                         float4(  f, -f,  f, 1.0f), float4(  f, -f, -f, 1.0f), float4(  f,  f, -f, 1.0f),   <span style="color: #008000">//Right</span></pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum104" style="color: #606060"> 104:</span>  </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum105" style="color: #606060"> 105:</span>                         float4( -f,  f, -f, 1.0f), float4(  f,  f, -f, 1.0f), float4(  f, -f, -f, 1.0f),   <span style="color: #008000">//Front</span></pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum106" style="color: #606060"> 106:</span>                         float4(  f, -f, -f, 1.0f), float4( -f, -f, -f, 1.0f), float4( -f,  f, -f, 1.0f),   <span style="color: #008000">//Front</span></pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum107" style="color: #606060"> 107:</span>  </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum108" style="color: #606060"> 108:</span>                         float4( -f, -f, -f, 1.0f), float4(  f, -f, -f, 1.0f), float4(  f, -f,  f, 1.0f),   <span style="color: #008000">//Bottom                                         </span></pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum109" style="color: #606060"> 109:</span>                         float4(  f, -f,  f, 1.0f), float4( -f, -f,  f, 1.0f), float4( -f, -f, -f, 1.0f),   <span style="color: #008000">//Bottom</span></pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum110" style="color: #606060"> 110:</span>  </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum111" style="color: #606060"> 111:</span>                         float4( -f,  f,  f, 1.0f), float4( -f,  f, -f, 1.0f), float4( -f, -f, -f, 1.0f),   <span style="color: #008000">//Left</span></pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum112" style="color: #606060"> 112:</span>                         float4( -f,  -f, -f, 1.0f), float4( -f, -f, f, 1.0f), float4( -f,  f,  f, 1.0f),   <span style="color: #008000">//Left</span></pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum113" style="color: #606060"> 113:</span>  </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum114" style="color: #606060"> 114:</span>                         float4(  -f,  f,  f, 1.0f), float4( -f, f,  f, 1.0f), float4(  -f, -f,  f, 1.0f),   <span style="color: #008000">//Back</span></pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum115" style="color: #606060"> 115:</span>                         float4(  f, -f,  f, 1.0f), float4(  -f, -f,  f, 1.0f), float4( -f,  f,  f, 1.0f)    <span style="color: #008000">//Back</span></pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum116" style="color: #606060"> 116:</span>                     };</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum117" style="color: #606060"> 117:</span>  </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum118" style="color: #606060"> 118:</span>  </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum119" style="color: #606060"> 119:</span>                     <span style="color: #0000ff">const</span> float2 UV1[TAM] = { </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum120" style="color: #606060"> 120:</span>                         float2( 0.0f,    1.0f ), float2( 1.0f,   1.0f ), float2( 1.0f,   0.0f ),         </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum121" style="color: #606060"> 121:</span>                         float2( 1.0f,    0.0f ), float2( 0.0f,   0.0f ), float2( 0.0f,   1.0f ),         </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum122" style="color: #606060"> 122:</span>  </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum123" style="color: #606060"> 123:</span>                         float2( 0.0f,    1.0f ), float2( 1.0f,   1.0f ), float2( 1.0f,   0.0f ),         </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum124" style="color: #606060"> 124:</span>                         float2( 1.0f,    0.0f ), float2( 0.0f,   0.0f ), float2( 0.0f,   1.0f ), </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum125" style="color: #606060"> 125:</span>&#160; </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum126" style="color: #606060"> 126:</span>                         float2( 0.0f,    1.0f ), float2( 1.0f,   1.0f ), float2( 1.0f,   0.0f ),         </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum127" style="color: #606060"> 127:</span>                         float2( 1.0f,    0.0f ), float2( 0.0f,   0.0f ), float2( 0.0f,   1.0f ), </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum128" style="color: #606060"> 128:</span>&#160; </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum129" style="color: #606060"> 129:</span>                         float2( 0.0f,    1.0f ), float2( 1.0f,   1.0f ), float2( 1.0f,   0.0f ),         </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum130" style="color: #606060"> 130:</span>                         float2( 1.0f,    0.0f ), float2( 0.0f,   0.0f ), float2( 0.0f,   1.0f ), </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum131" style="color: #606060"> 131:</span>&#160; </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum132" style="color: #606060"> 132:</span>                         float2( 0.0f,    1.0f ), float2( 1.0f,   1.0f ), float2( 1.0f,   0.0f ),         </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum133" style="color: #606060"> 133:</span>                         float2( 1.0f,    0.0f ), float2( 0.0f,   0.0f ), float2( 0.0f,   1.0f ), </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum134" style="color: #606060"> 134:</span>                         </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum135" style="color: #606060"> 135:</span>                         float2( 0.0f,    1.0f ), float2( 1.0f,   1.0f ), float2( 1.0f,   0.0f ),         </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum136" style="color: #606060"> 136:</span>                         float2( 1.0f,    0.0f ), float2( 0.0f,   0.0f ), float2( 0.0f,   1.0f )                        </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum137" style="color: #606060"> 137:</span>                         </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum138" style="color: #606060"> 138:</span>                     };                        </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum139" style="color: #606060"> 139:</span>&#160; </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum140" style="color: #606060"> 140:</span>                     <span style="color: #0000ff">const</span> <span style="color: #0000ff">int</span> TRI_STRIP[TAM]  = {  0, 1, 2,  3, 4, 5,</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum141" style="color: #606060"> 141:</span>                         6, 7, 8,  9,10,11,</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum142" style="color: #606060"> 142:</span>                         12,13,14, 15,16,17,</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum143" style="color: #606060"> 143:</span>                         18,19,20, 21,22,23,</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum144" style="color: #606060"> 144:</span>                         24,25,26, 27,28,29,</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum145" style="color: #606060"> 145:</span>                         30,31,32, 33,34,35  </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum146" style="color: #606060"> 146:</span>                     }; </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum147" style="color: #606060"> 147:</span>&#160; </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum148" style="color: #606060"> 148:</span>&#160; </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum149" style="color: #606060"> 149:</span>                     POSCOLOR_INPUT v[TAM];</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum150" style="color: #606060"> 150:</span>                     <span style="color: #0000ff">int</span> i = 0;    </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum151" style="color: #606060"> 151:</span>  </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum152" style="color: #606060"> 152:</span>                     currentCoordinates.z = depth;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum153" style="color: #606060"> 153:</span>&#160; </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum154" style="color: #606060"> 154:</span>                     float3 lightdirection = normalize(_WorldSpaceLightPos0.xyz);</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum155" style="color: #606060"> 155:</span>                     float3 lightcolor = _LightColor0;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum156" style="color: #606060"> 156:</span>                     <span style="color: #008000">// Assign new vertices positions </span></pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum157" style="color: #606060"> 157:</span>                     <span style="color: #0000ff">for</span> (i=0;i&lt;TAM;i++) {         </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum158" style="color: #606060"> 158:</span>                         float4 npos = float4(currentCoordinates.x, 50 - currentCoordinates.y,depth,1.0) * scale + offset;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum159" style="color: #606060"> 159:</span>                         v[i].pos = npos + vc[i]; </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum160" style="color: #606060"> 160:</span>                         v[i].color = curcolor;   </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum161" style="color: #606060"> 161:</span>                         v[i].uv_MainTex = TRANSFORM_TEX(UV1[i],_MainTex);                        </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum162" style="color: #606060"> 162:</span>                         v[i].normal = float3(0,0,0);</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum163" style="color: #606060"> 163:</span>                         v[i].pos = mul(UNITY_MATRIX_MVP, v[i].pos);</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum164" style="color: #606060"> 164:</span>                     }                                    </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum165" style="color: #606060"> 165:</span>                         </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum166" style="color: #606060"> 166:</span>                     <span style="color: #008000">// Build the cube tile by submitting triangle strip vertices</span></pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum167" style="color: #606060"> 167:</span>                     <span style="color: #0000ff">for</span> (i=0;i&lt;TAM/3;i++)                    </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum168" style="color: #606060"> 168:</span>                     {                     </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum169" style="color: #606060"> 169:</span>                         <span style="color: #008000">//Calculate the normal of the triangle</span></pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum170" style="color: #606060"> 170:</span>                         float4 U = v[TRI_STRIP[i*3+1]].pos - v[TRI_STRIP[i*3+0]].pos;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum171" style="color: #606060"> 171:</span>                         float4 V = v[TRI_STRIP[i*3+2]].pos - v[TRI_STRIP[i*3+0]].pos;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum172" style="color: #606060"> 172:</span>                         float3 normal = normalize(cross(U,V));</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum173" style="color: #606060"> 173:</span>                         float3 normaldirection = normalize( mul(float4(normal,1.0), _World2Object).xyz);</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum174" style="color: #606060"> 174:</span>                         float4 ncolor = float4(_LightColor0.xyz * v[TRI_STRIP[i*3+0]].color.rgb * max(0.0, dot(normaldirection, lightdirection)),1.0);</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum175" style="color: #606060"> 175:</span>&#160; </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum176" style="color: #606060"> 176:</span>                         <span style="color: #008000">//Set the normal and the color based on the color</span></pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum177" style="color: #606060"> 177:</span>                         v[TRI_STRIP[i*3+0]].normal = normal;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum178" style="color: #606060"> 178:</span>                         v[TRI_STRIP[i*3+0]].color = ncolor;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum179" style="color: #606060"> 179:</span>                         v[TRI_STRIP[i*3+1]].normal = normal;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum180" style="color: #606060"> 180:</span>                         v[TRI_STRIP[i*3+1]].color = ncolor;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum181" style="color: #606060"> 181:</span>                         v[TRI_STRIP[i*3+2]].normal = normal;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum182" style="color: #606060"> 182:</span>                         v[TRI_STRIP[i*3+2]].color = ncolor;</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum183" style="color: #606060"> 183:</span>                         </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum184" style="color: #606060"> 184:</span>                         triStream.Append(v[TRI_STRIP[i*3+0]]);</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum185" style="color: #606060"> 185:</span>                         triStream.Append(v[TRI_STRIP[i*3+1]]);</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum186" style="color: #606060"> 186:</span>                         triStream.Append(v[TRI_STRIP[i*3+2]]);</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum187" style="color: #606060"> 187:</span>&#160; </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum188" style="color: #606060"> 188:</span>                         triStream.RestartStrip();</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum189" style="color: #606060"> 189:</span>                     }                                        </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum190" style="color: #606060"> 190:</span>                 }</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum191" style="color: #606060"> 191:</span>&#160; </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum192" style="color: #606060"> 192:</span>                 <span style="color: #008000">//Fragment Shader - with Lighting</span></pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum193" style="color: #606060"> 193:</span>                 float4 FS_Main(POSCOLOR_INPUT input) : COLOR</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum194" style="color: #606060"> 194:</span>                 {                    </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum195" style="color: #606060"> 195:</span>                     half4 texcol = tex2D (_MainTex, input.uv_MainTex);</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum196" style="color: #606060"> 196:</span>&#160; </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum197" style="color: #606060"> 197:</span>                     <span style="color: #0000ff">return</span> texcol * input.color;                    </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum198" style="color: #606060"> 198:</span>                 }                </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum199" style="color: #606060"> 199:</span>&#160; </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum200" style="color: #606060"> 200:</span>             ENDCG</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum201" style="color: #606060"> 201:</span>         }</pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum202" style="color: #606060"> 202:</span>     } </pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: white"><span id="lnum203" style="color: #606060"> 203:</span>     FallBack <span style="color: #006080">&quot;Diffuse&quot;</span></pre>
<!--CRLF-->

    <pre style="border-top-style: none; overflow: visible; font-size: 8pt; font-family: &#39;Courier New&#39;, courier, monospace; width: 100%; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; border-left-style: none; line-height: 12pt; padding-right: 0px; background-color: #f4f4f4"><span id="lnum204" style="color: #606060"> 204:</span> }</pre>
<!--CRLF--></div>
</div>

<p>With that all done you can now run your scene with the Kinect v2 Running and you should see the wall pushing out when you walk in front of it. </p>

<div id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:f3c58a38-3fe2-4bd4-9676-b164b9f7be6f" class="wlWriterEditableSmartContent" style="float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px"><div><a href="https://www.youtube.com/watch?v=cFsPluBZn1s&amp;feature=youtube_gdata_player" target="_new"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/41/metablogapi/5618.video748f4f905b0b_713F581A.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-41-metablogapi/5618.video748f4f905b0b_5F00_713F581A.jpg" style="border-style: none" galleryimg="no" alt=""></a></div></div>

<p align="left">Video Link - <a title="https://www.youtube.com/watch?v=cFsPluBZn1s" href="https://www.youtube.com/watch?v=cFsPluBZn1s">https://www.youtube.com/watch?v=cFsPluBZn1s</a></p>

<p align="left">
  <br />Conclusion</p>

<p>Using Kinect v2 with Unity3D is extremely easy and the API’s are pretty much identical to the .Net API. Probably the biggest lesson is the benefit of using Shaders to handle the large volume of information between the various image streams you are receiving from the device. </p>

<p>Edit: I have uploaded the zip file of the complete project to codeplex. </p>

<h5>Source Code</h5>

<p>&#160;<a title="https://sharpflipwall.codeplex.com" href="https://sharpflipwall.codeplex.com">https://sharpflipwall.codeplex.com</a></p>

<h5>References</h5>

<p><a title="http://wiki.unity3d.com/index.php/Getting_Started_with_Shaders" href="http://wiki.unity3d.com/index.php/Getting_Started_with_Shaders">http://wiki.unity3d.com/index.php/Getting_Started_with_Shaders</a></p>

<p><a title="http://www.bricksntiles.com/textures/" href="http://www.bricksntiles.com/textures/">http://www.bricksntiles.com/textures/</a></p>

<p><a title="http://answers.unity3d.com/questions/744622/" href="http://answers.unity3d.com/questions/744622/">http://answers.unity3d.com/questions/744622/</a></p>

<p><a title="http://johannes.gotlen.se/blog/2013/02/realtime-marching-cubes/" href="http://johannes.gotlen.se/blog/2013/02/realtime-marching-cubes/">http://johannes.gotlen.se/blog/2013/02/realtime-marching-cubes/</a></p>

<p><a title="http://en.wikibooks.org/wiki/Cg_Programming/Unity" href="http://en.wikibooks.org/wiki/Cg_Programming/Unity">http://en.wikibooks.org/wiki/Cg_Programming/Unity</a></p>

<p><a title="https://www.youtube.com/watch?v=bqKULvitmpU" href="https://www.youtube.com/watch?v=bqKULvitmpU">https://www.youtube.com/watch?v=bqKULvitmpU</a></p>]]></content:encoded>
    </item>
    <item>
      <title>The digital traveller</title>
      <link>https://docs.microsoft.com/archive/blogs/hemipteran/the-digital-traveller</link>
      <pubDate>Thu, 26 Jun 2014 12:06:00 GMT</pubDate>
      <dc:creator><![CDATA[Dave Russell (Technical Evangelist)]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/hemipteran/2014/06/26/the-digital-traveller/</guid>
      <description><![CDATA[Last week was London, today Johannesburg, this weekend Pretoria, two weeks time Seattle, the world...]]></description>
      <content:encoded><![CDATA[<p>Last week was London, today Johannesburg, this weekend Pretoria, two weeks time Seattle, the world is my home. Airplanes, subways, busses, and rental cars are my modes of transport. Hotels are my bedrooms and random restaurants are my kitchen, which strangely enough no one will let me do the cooking in. My office is everywhere, my couch at home, a coffee shop in Seattle, Libraries in London, the park in New York and once on the beach while surfing. Well not the surfing one but with where technology is going I wouldn’t be surprised to see people using Google Glass like technology to attend a conference call while waiting for the perfect wave. </p>  <p>When all the travelling began it was exciting and actually very much what was to be expected but the trick to working anywhere was connectivity. Skype, Google Talk, What’sApp, Telegram, QQ, Mxit, Lync, Facebook, Twitter, WeChat, Email, Yammer, VPN, DirectAccess and in tough times when connectivity is hard to find, plain text messaging all enable me to stay connected. Depending on the country WIFI coverage varies but you can always rely on good old fashioned Mobile networks, its easy to pickup a new SIM card and its definitely cheaper than roaming. Airports have a mobile store where you can get setup before stepping foot onto foreign soil and this should be your first port of call.&#160; </p>  <p>Your gear bag is a trusty sidekick that holds everything you could possibly need while not at home or in the office. It would be difficult to say which are the most important items as I think this would differ from person to person. Currently in my bag:</p>  <ul>   <li>Laptop – Used for work, entertainment, and possibly a traditional weapon </li>    <li>Camera – Used to record everything, I take photos like a damn tourist even at home </li>    <li>USB Battery Pack x2 – Ensuring I always have power where ever I go </li>    <li>Smart phone – this is probably the single most important item with GPS, email, etc </li>    <li>Universal adapter – power power everywhere and damn I dislike the South African plug standard </li>    <li>Tablet – this is great for watching movies, or just taking notes </li>    <li>Note book – used for doodling, writing and killing hours during layovers when the Tablet, Laptop and everything else is dead </li>    <li>Water bottle – always good to stay hydrated </li> </ul>  <p>The contents of the bags are important but the bag itself is also key, mine is light and comfortable for both carrying and sleeping on. For those moments your find yourself wanting to lay under a tree and work on your laptop it makes a great head rest. </p>  <p>Working from anywhere is an amazing experience, adding another dimension to your day. No more staring at a concrete wall or cubicles, how about looking out into a street in Paris, watching a waves crash while sitting on the patio, or in the Alps while it snows. If I see you out there say hello, even if I have my headphones on and look engrossed in work, part of the benefits is meeting new people.</p>  <p>Thanks to Elance and the Common Room for the Blogathon event. </p>  <p><a href="http://www.the-common-room.co.za">www.the-common-room.co.za</a></p>  <p><a href="http://www.elance.com">www.elance.com</a></p>]]></content:encoded>
    </item>
  </channel>
</rss>