<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Beginning Game Development: Part VI - Lights, Materials and Terrain</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/09/1044115.aspx</link><description>This is Part 6 of an introductory series on game programming using the Microsoft .NET Framework and managed DirectX 9.0. This article covers Lights and Materials and gives a very basic introduction to terrain. Derek Pierson 3Leaf Development Difficulty:</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Beginning Game Development: Part VI - Lights, Materials and Terrain</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/09/1044115.aspx#1313094</link><pubDate>Mon, 18 Dec 2006 02:33:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1313094</guid><dc:creator>Eric Dzikowski</dc:creator><description>&lt;p&gt;Just a note to let you know that I think this series is excellent. &amp;nbsp;It shocks me that you have no comments on any of these articles. &amp;nbsp;You've done a great job and I hope you continue with this series.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part VI - Lights, Materials and Terrain</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/09/1044115.aspx#1485780</link><pubDate>Thu, 18 Jan 2007 03:00:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1485780</guid><dc:creator>Hamed</dc:creator><description>&lt;p&gt;im mulimedia &amp;amp; Graphic Programmer And&lt;/p&gt;
&lt;p&gt;I Want professional sample From Directx By C#&lt;/p&gt;</description></item><item><title>TERRAIN IS NOT BEING RENDERED</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/09/1044115.aspx#1754947</link><pubDate>Sun, 25 Feb 2007 03:43:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1754947</guid><dc:creator>Shadow</dc:creator><description>&lt;p&gt;I have been testing in my pc this guide, and everything seems to be ok, except that the terrain is not being rendered in the screen.&lt;/p&gt;
&lt;p&gt;I dont know why, there is no error.&lt;/p&gt;
&lt;p&gt;I'm using &lt;/p&gt;
&lt;p&gt;WinXP SP2&lt;/p&gt;
&lt;p&gt;.Net framework 2 and 3 installed &lt;/p&gt;
&lt;p&gt;VS.NET 2005 Standar Edition&lt;/p&gt;
&lt;p&gt;December 2006 DirectX SDK&lt;/p&gt;
&lt;p&gt;It just dont render the triangles.&lt;/p&gt;
&lt;p&gt;I was wondering i anyone else has have this problem. or its just me. &lt;/p&gt;
&lt;p&gt;Any hekp will be appreciated.&lt;/p&gt;
&lt;p&gt;Thank you very much&lt;/p&gt;
&lt;p&gt;faranda@runagames.com&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part VI - Lights, Materials and Terrain</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/09/1044115.aspx#2167172</link><pubDate>Wed, 18 Apr 2007 03:30:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2167172</guid><dc:creator>Abi George Ullattil</dc:creator><description>&lt;p&gt;I think there's a typo in the LoadVertexBuffer() section... the VB corresponds to the LoadIndexBuffer()... and also for some reason i'm getting an error when trying the LoadIndexBuffer function.... i'm doing this in C++.&lt;/p&gt;
&lt;p&gt;cheers!!!&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part VI - Lights, Materials and Terrain</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/09/1044115.aspx#3031088</link><pubDate>Sat, 02 Jun 2007 01:38:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3031088</guid><dc:creator>Jeromy Walsh</dc:creator><description>&lt;p&gt;I just wanted to thank you for referencing my article about normal computations for heightfield lighting on GameDev.net. &amp;nbsp;It's good to know that it is still providing further use to people.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part VI - Lights, Materials and Terrain</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/09/1044115.aspx#4174003</link><pubDate>Wed, 01 Aug 2007 20:41:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4174003</guid><dc:creator>Goose</dc:creator><description>&lt;p&gt;@Shadow:&lt;/p&gt;
&lt;p&gt;I'm getting the same thing. However, when you rotate the camera around a bit, sometimes you see lots of triangles being drawn all over each other - and this scene changes every frame whether you move or not.&lt;/p&gt;
&lt;p&gt;Not sure where the problem is - any help would be GREATLY appreciated.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part VI - Lights, Materials and Terrain</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/09/1044115.aspx#4824305</link><pubDate>Sat, 08 Sep 2007 09:32:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4824305</guid><dc:creator>Bermil Rossiter</dc:creator><description>&lt;p&gt;bmr12@sbcglobal.net&lt;/p&gt;
&lt;p&gt;Windows Vista Home Premium&lt;/p&gt;
&lt;p&gt;Microsoft DirectX SDK (August 2007)&lt;/p&gt;
&lt;p&gt;Microsoft Visual C# 2005 Express Edition - ENU &lt;/p&gt;
&lt;p&gt;Microsoft SDKs\Windows\v6.0&lt;/p&gt;
&lt;p&gt;In Parts VI, VII, and VIII I get a run time error from the folloeing code&lt;/p&gt;
&lt;p&gt;The last line of &amp;nbsp; Render() in class Terrain &lt;/p&gt;
&lt;p&gt;_device.DrawIndexedPrimitives(PrimitiveType.TriangleStrip, 0, 0, _totalNumberOfVertices, 0, _indices.Length - 2);&lt;/p&gt;
&lt;p&gt;Help!!!!&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part VI - Lights, Materials and Terrain</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/09/1044115.aspx#7374513</link><pubDate>Fri, 01 Feb 2008 16:41:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7374513</guid><dc:creator>TankCreator</dc:creator><description>&lt;p&gt;I got stuck on this one for a few days now, but I managed to get it working. Everytime I tried using the IndexBuffer, my GPU crashed on me. &lt;/p&gt;
&lt;p&gt;After trying to simplify the code for a day or two, I started browsing the internet and found out that the indexbuffer can only be filled with SHORT, not INT. &lt;/p&gt;
&lt;p&gt;changed the code to:&lt;/p&gt;
&lt;p&gt;_ib = new IndexBuffer(typeof(short), _indices.Length, _device, Usage.WriteOnly, Pool.Managed);&lt;/p&gt;
&lt;p&gt;and:&lt;/p&gt;
&lt;p&gt;_indices[index++] = (short)(x + (z * _numberOfVerticesX));&lt;/p&gt;
&lt;p&gt;and:&lt;/p&gt;
&lt;p&gt;_indices = new short[numIndices];&lt;/p&gt;
&lt;p&gt;// Array for the indexes of the vertices&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;private short[] _indices;&lt;/p&gt;
&lt;p&gt;All in the terrain class. Working fine now. Guess I will move on to the next part now.. hope there will be more chapters some time soon.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part VI - Lights, Materials and Terrain</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/09/1044115.aspx#7702027</link><pubDate>Fri, 15 Feb 2008 01:32:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7702027</guid><dc:creator>L4ngford</dc:creator><description>&lt;p&gt;Hi, nice tip TankCreator :)&lt;/p&gt;
&lt;p&gt;Once again, great tutorial. I've created a Light class, so I &amp;nbsp;can quickly create many different lights, varying in types, easier, and stored them all in a list, with names, so I can toggle them at will :D&lt;/p&gt;
&lt;p&gt;I am having a problem with the terrain, however: The heightmap loads, but either the light doesn't shine down on the terrain ( and I've tried fixing that :P ), or the lights arent' getting enabled, which is what I'm thinking, or there's something I'm doing wrong with the material on the terrain itself.&lt;/p&gt;
&lt;p&gt;Anyone else having this problem? or know how to fix objects rendering all black?&lt;/p&gt;
&lt;p&gt;I noticed in your example here that when the lights are off, the car is black, and with lights on, it's textured.&lt;/p&gt;
&lt;p&gt;I'm just trying to see my terrain textured, I can see it as a point list. Also, while viewing it as a trianglestrip, in wireframe, or point mode, The graphics aren't clearing from the screen before the next frame renders. I'm not sure why this happens either :/&lt;/p&gt;
&lt;p&gt;Anyway, I'll continue to fiddle, I know this tutorial is old now but you've still got my compliments :)&lt;/p&gt;</description></item><item><title>Beginning Game Development with MS .NET | Newbie Game Programmers</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/09/1044115.aspx#7715688</link><pubDate>Fri, 15 Feb 2008 16:34:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7715688</guid><dc:creator>Beginning Game Development with MS .NET | Newbie Game Programmers</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.savware.net/beginning-game-development-with-ms-net/"&gt;http://www.savware.net/beginning-game-development-with-ms-net/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Beginning Game Development: Part VI - Lights, Materials and Terrain</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/09/1044115.aspx#8386428</link><pubDate>Sun, 13 Apr 2008 12:59:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8386428</guid><dc:creator>icetea</dc:creator><description>&lt;p&gt;I had also a problem with the lights. I have done it like the source code in the tutorial but it doesn't shine on the obstacles and tanks. I also created a point light but it doesn't shine too.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part VI - Lights, Materials and Terrain</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/09/1044115.aspx#8841147</link><pubDate>Thu, 07 Aug 2008 17:41:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8841147</guid><dc:creator>kaplan</dc:creator><description>&lt;p&gt;best tutorial about &amp;quot;direct3d and c#&amp;quot; i have read until now. i have experience as c# web developer but still some issues at fully understanding the code but so far i have learnt many great things. thanks a lot...&lt;/p&gt;</description></item><item><title>Beginning Game Development: Part II - Introduction to DirectX</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/09/1044115.aspx#8945415</link><pubDate>Thu, 11 Sep 2008 23:36:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8945415</guid><dc:creator>Coding4Fun</dc:creator><description>&lt;p&gt;This is Part 2 of an introductory series on game programming using the Microsoft .NET Framework and managed&lt;/p&gt;
</description></item><item><title>Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/09/1044115.aspx#8945436</link><pubDate>Thu, 11 Sep 2008 23:41:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8945436</guid><dc:creator>Coding4Fun</dc:creator><description>&lt;p&gt;This is Part 4 of an introductory series on game programming using the Microsoft .NET Framework and managed&lt;/p&gt;
</description></item><item><title>Coding4Fun : Beginning Game Development: Part VI - Lights, Materials and Terrain</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/09/1044115.aspx#8945455</link><pubDate>Thu, 11 Sep 2008 23:47:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8945455</guid><dc:creator>Coding4Fun : Beginning Game Development: Part VI - Lights, Materials and Terrain</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/coding4fun/archive/2006/11/09/1044115.aspx"&gt;http://blogs.msdn.com/coding4fun/archive/2006/11/09/1044115.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Coding4Fun : Beginning Game Development: Part VIII - DirectSound</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/09/1044115.aspx#8945485</link><pubDate>Thu, 11 Sep 2008 23:58:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8945485</guid><dc:creator>Coding4Fun : Beginning Game Development: Part VIII - DirectSound</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/coding4fun/archive/2006/11/06/999786.aspx"&gt;http://blogs.msdn.com/coding4fun/archive/2006/11/06/999786.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Beginning Game Development: Part VI - Lights, Materials and Terrain</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/09/1044115.aspx#9651865</link><pubDate>Fri, 29 May 2009 08:40:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9651865</guid><dc:creator>Austin</dc:creator><description>&lt;p&gt;Is there any reason the following should not work? I want to note that I am not trying to build or anything else, I simply just want to be able to create a DirectX font.&lt;/p&gt;
&lt;p&gt;Imports Microsoft.DirectX&lt;/p&gt;
&lt;p&gt;Imports Microsoft.DirectX.Direct3d&lt;/p&gt;
&lt;p&gt;Public Class Form1&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Private font as Microsoft.DirectX.Direct3D.Font&lt;/p&gt;
&lt;p&gt;End Class&lt;/p&gt;
&lt;p&gt;I keep getting an error message stating, 'Type &amp;quot;Microsoft.DirectX.Direct3D.Font&amp;quot; is not defined.' I cannot figure out for the life of me why this is not working. &amp;nbsp;Thanks in advance.&lt;/p&gt;</description></item></channel></rss>