<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Drawing a Cube in WPF</title>
	<atom:link href="http://stuff.seans.com/2008/08/13/drawing-a-cube-in-wpf/feed/" rel="self" type="application/rss+xml" />
	<link>http://stuff.seans.com/2008/08/13/drawing-a-cube-in-wpf/</link>
	<description>Learning new software development technologies out loud</description>
	<lastBuildDate>Thu, 11 Mar 2010 20:08:38 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Hilton Perantunes</title>
		<link>http://stuff.seans.com/2008/08/13/drawing-a-cube-in-wpf/#comment-424</link>
		<dc:creator>Hilton Perantunes</dc:creator>
		<pubDate>Fri, 02 Oct 2009 03:01:05 +0000</pubDate>
		<guid isPermaLink="false">http://spsexton.wordpress.com/?p=148#comment-424</guid>
		<description>Double posting because the comments system doesn&#039;t like xml. :P

Do not share the indices among your triangles. Doing that way you &quot;deform&quot; the normals at the edges of the cube causing that odd lightning at each face. Try these positions and indices instead:

Positions=&quot; 1 2 1  1 1 1  2 2 1  2 1 1  2 2 0  1 1 0  1 2 1  1 1 1  2 2 0  1 2 0  2 2 1  1 2 1  2 2 1  2 1 1  2 2 0  2 1 0  2 1 1  1 1 1  2 1 0  1 1 0  2 2 0  2 1 0  1 2 0  1 1 0&quot; 

TriangleIndices=&quot;0 1 2  1 3 2  4 5 6  5 7 6  8 9 10  9 11 10  12 13 14  13 15 14  16 17 18  17 19 18  20 21 22  21 23 22&quot;

... and a lightning coming from a position like this: Direction=&quot;-3,-5,-7&quot;</description>
		<content:encoded><![CDATA[<p>Double posting because the comments system doesn&#8217;t like xml. :P</p>
<p>Do not share the indices among your triangles. Doing that way you &#8220;deform&#8221; the normals at the edges of the cube causing that odd lightning at each face. Try these positions and indices instead:</p>
<p>Positions=&#8221; 1 2 1  1 1 1  2 2 1  2 1 1  2 2 0  1 1 0  1 2 1  1 1 1  2 2 0  1 2 0  2 2 1  1 2 1  2 2 1  2 1 1  2 2 0  2 1 0  2 1 1  1 1 1  2 1 0  1 1 0  2 2 0  2 1 0  1 2 0  1 1 0&#8243; </p>
<p>TriangleIndices=&#8221;0 1 2  1 3 2  4 5 6  5 7 6  8 9 10  9 11 10  12 13 14  13 15 14  16 17 18  17 19 18  20 21 22  21 23 22&#8243;</p>
<p>&#8230; and a lightning coming from a position like this: Direction=&#8221;-3,-5,-7&#8243;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hilton Perantunes</title>
		<link>http://stuff.seans.com/2008/08/13/drawing-a-cube-in-wpf/#comment-423</link>
		<dc:creator>Hilton Perantunes</dc:creator>
		<pubDate>Fri, 02 Oct 2009 02:57:40 +0000</pubDate>
		<guid isPermaLink="false">http://spsexton.wordpress.com/?p=148#comment-423</guid>
		<description>Do not share the vertices among your triangles. Doing that way you &quot;deform&quot; the normals at the edges of the cube causing that odd lightning at each face. Try this positions and indices instead:

 

... and a lightning coming from a position like this:

 </description>
		<content:encoded><![CDATA[<p>Do not share the vertices among your triangles. Doing that way you &#8220;deform&#8221; the normals at the edges of the cube causing that odd lightning at each face. Try this positions and indices instead:</p>
<p>&#8230; and a lightning coming from a position like this:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan</title>
		<link>http://stuff.seans.com/2008/08/13/drawing-a-cube-in-wpf/#comment-152</link>
		<dc:creator>Alan</dc:creator>
		<pubDate>Thu, 16 Apr 2009 10:44:43 +0000</pubDate>
		<guid isPermaLink="false">http://spsexton.wordpress.com/?p=148#comment-152</guid>
		<description>Hi Sean,

Thanks for your post which helps me a lot in learning WPF 3D drawings.

One glitch is that the triangle pairs
6 2 0  2 0 4
in MeshGeometry3D.TriangleIndices should be 
6 2 0  6 0 4

Marvelous post for starter anyway!</description>
		<content:encoded><![CDATA[<p>Hi Sean,</p>
<p>Thanks for your post which helps me a lot in learning WPF 3D drawings.</p>
<p>One glitch is that the triangle pairs<br />
6 2 0  2 0 4<br />
in MeshGeometry3D.TriangleIndices should be<br />
6 2 0  6 0 4</p>
<p>Marvelous post for starter anyway!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
