<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" media="screen" href="/App_Themes/default/rss.xslt"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:evnet="http://www.mscommunities.com/rssmodule/"><channel><title>Entries for Christopher Hawkins</title><atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/niners/cupiditas/rss/default.aspx" /><image><url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url><title>Entries for Christopher Hawkins</title><link>http://channel9.msdn.com/Niners/cupiditas/</link></image><description>Entries, comments and threads posted by Christopher Hawkins</description><link>http://channel9.msdn.com/Niners/cupiditas/</link><language>en-us</language><pubDate>Sat, 07 Mar 2009 03:14:52 GMT</pubDate><lastBuildDate>Sat, 07 Mar 2009 03:14:52 GMT</lastBuildDate><generator>EvNet (EvNet, Version=1.0.3608.3122, Culture=neutral, PublicKeyToken=null)</generator><item><title>Lock Old Threads [Lock Old Threads]</title><description>Threads should be locked after thirty days of inactivity or some similar interval. This would curb the inordinate amount of Necroposting on C9 (especially in the Tech Off).&lt;br /&gt;&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/Feedback/460099-Lock-Old-Threads/'&gt;Lock Old Threads&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/460099/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/Feedback/460099-Lock-Old-Threads/</comments><link>http://channel9.msdn.com/forums/Feedback/460099-Lock-Old-Threads/</link><pubDate>Sat, 07 Mar 2009 03:14:52 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/Feedback/460099-Lock-Old-Threads/</guid><evnet:views>819</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/460099/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Threads should be locked after thirty days of inactivity or some similar interval. This would curb the inordinate amount of Necroposting on C9 (especially in the Tech Off).in reply to Lock Old Threads</evnet:previewtext><dc:creator>Christopher Hawkins</dc:creator><slash:comments>1</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/Feedback/460099-Lock-Old-Threads/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/460099/Trackback.aspx</trackback:ping></item><item><title>Generating a Prism from a Polygon in XNA [Generating a Prism from a Polygon in XNA]</title><description>&lt;span class="Apple-style-span"&gt;Apologies. Double post. Channel9 gave a non-descript error message several times when I tried to post the original and edit this duplicate.&lt;/span&gt;&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/TechOff/443488-Generating-a-Prism-from-a-Polygon-in-XNA/'&gt;Generating a Prism from a Polygon in XNA&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/443488/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/443488-Generating-a-Prism-from-a-Polygon-in-XNA/</comments><link>http://channel9.msdn.com/forums/TechOff/443488-Generating-a-Prism-from-a-Polygon-in-XNA/</link><pubDate>Mon, 17 Nov 2008 09:33:08 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/443488-Generating-a-Prism-from-a-Polygon-in-XNA/</guid><evnet:views>1058</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/443488/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Apologies. Double post. Channel9 gave a non-descript error message several times when I tried to post the original and edit this duplicate.in reply to Generating a Prism from a Polygon in XNA</evnet:previewtext><dc:creator>Christopher Hawkins</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/443488-Generating-a-Prism-from-a-Polygon-in-XNA/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/443488/Trackback.aspx</trackback:ping></item><item><title>Generating a Prism from a Polygon in XNA [Generating a Prism from a Polygon in XNA]</title><description>&lt;p&gt;I'm working on a project for a client, and this has been really bugging me. I'm not quite mathematical enough to solve this problem by myself and I desperately need some insight. I'm vainly attempting to generate three-dimensional prisms in XNA for the display of cabinets. So far, I've got the following code but it does not draw properly at all. I know the actual draw code is correct as it works for other shapes, so it's the vertex and index buffers that are wrong.&lt;/p&gt;&lt;p&gt;If anyone can point to a sample or something I'd be incredibly grateful. So far, everything I've got I've derived from my limited knowledge of three dimensional mathematics.&lt;/p&gt;&lt;p&gt;My current, and non-functioning, solution is a constructor method (don't worry about the length, I'll refactor it later) taking an array of Vector2s as the outline of the polygon to extrude into a prism and a Vector3 that represents the centre of the prism (thus giving it depth and direction).&lt;/p&gt;
&lt;p&gt;Currently I:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Create a rotation matrix by concatenating three matrices constructed using the angle derived from the dot product of the &lt;code&gt;prismVector&lt;/code&gt; and the three cardinal axis&lt;/li&gt;
&lt;li&gt;Use this to transform the 2D vertices into 3D and subsequently create the bottom by subtracting &lt;code&gt;prismVector&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Here the problems start&lt;/strong&gt; (I know they're not above because I've simplified most of that out at the moment)&lt;/li&gt;
&lt;li&gt;Generate the caps of the prism: &lt;pre&gt;
            //CAPS:

            // prism vector will be 0 in the vertex array
            for (int i = 1; i &lt;/li&gt;
&lt;li&gt;Generate the sides:&lt;pre&gt;
            for (int i = 1; i &lt;/li&gt;
&lt;li&gt;Add all vertices&lt;pre&gt;
            Vector3 topNormal = Vector3.Normalize(prismVector);
            Vertices.Add(createVertex(prismVector, topNormal));

            for (int i = 0; i &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I'm in way over my head with this project. Of course I don't expect anyone to actually read all that and come up with a solution, but I'm sure this is something that people have had to do a million times before and I'm absolutely confused as to why I can't find anything with Google (maybe I'm searching for the wrong thing&amp;hellip;).&lt;/p&gt;
&lt;p&gt;If you know of any samples or have ever had to do anything like this before, please help.&lt;p&gt;
&lt;p&gt;Cheers,&lt;br /&gt;Chris&lt;/p&gt;&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/TechOff/443487-Generating-a-Prism-from-a-Polygon-in-XNA/'&gt;Generating a Prism from a Polygon in XNA&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/443487/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/443487-Generating-a-Prism-from-a-Polygon-in-XNA/</comments><link>http://channel9.msdn.com/forums/TechOff/443487-Generating-a-Prism-from-a-Polygon-in-XNA/</link><pubDate>Mon, 17 Nov 2008 09:32:38 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/443487-Generating-a-Prism-from-a-Polygon-in-XNA/</guid><evnet:views>1453</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/443487/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I'm working on a project for a client, and this has been really bugging me. I'm not quite mathematical enough to solve this problem by myself and I desperately need some insight. I'm vainly attempting to generate three-dimensional prisms in XNA for the display of cabinets. So far, I've got the&amp;#8230;</evnet:previewtext><dc:creator>Christopher Hawkins</dc:creator><slash:comments>11</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/443487-Generating-a-Prism-from-a-Polygon-in-XNA/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/443487/Trackback.aspx</trackback:ping></item></channel></rss>