http://www.riemers.net/eng/Tutorials/XNA/Csharp/Series2/Ambient_and_diffuse.php http://www.riemers.net/eng/Tutorials/XNA/Csharp/Series2/Quaternions.php http://www.riemers.net/eng/Tutorials/XNA/Csharp/Series2/Flight_kinematics.php http://www.riemers.net/eng/Tutorials/XNA/Csharp/Series2/Collision_detection.php None of these tutorials required any changes! Next step Adding targets.
http://www.riemers.net/eng/Tutorials/XNA/Csharp/Series2/Loading_a_Model.php Only a couple of changes to get this tutorial up and running in XNA 4.0 In the LoadModel() function we need to change the line: meshPart.Effect = effect.Clone(device); and remove the device parameter since this is no longer necessary: meshPart.Effect = effect.Clone(); And change the technique to the new one that we wrote in […]
http://www.riemers.net/eng/Tutorials/XNA/Csharp/Series2/Creating_the_3D_city.php In this tutorial we are just going to carry over some of the changes from the last one, since the only method we need to change is copied from it and extended. So we change this line in the SetUpVertices() method: cityVertexBuffer = new VertexBuffer(device, verticesList.Count * VertexPositionNormalTexture.SizeInBytes, BufferUsage.WriteOnly); cityVertexBuffer.SetData (verticesList.ToArray()); to this: cityVertexBuffer […]
http://www.riemers.net/eng/Tutorials/XNA/Csharp/Series2/Loading_the_floorplan.php We start this tutorial with something that should be very familiar by now the VertexDeclaration so we can remove this: VertexDeclaration texturedVertexDeclaration; In XNA Game Studio 4.0 the VertexBuffer syntax changed slightly now we don’t need to tell the graphics card the size of memory to allocate, XNA does that under the hood once […]
http://www.riemers.net/eng/Tutorials/XNA/Csharp/Series2/Textures.php This tutorial should be quite simple if you have been following the earlier ones as we are covering familiar ground with changes only to the VertexDeclaration and the effects API. When we declare the variables at the top of the class Remove this line: VertexDeclaration texturedVertexDeclaration; and in the SetUpVertices() method we can get […]
http://www.riemers.net/eng/Tutorials/XNA/Csharp/Series2/Starting_point.php So I’m back to business now, after working through this series and making sure I have everything done properly I’m ready to share how to get the flight sim up and running under XNA 4 over the next few days. There weren’t any changes to the starting code apart from formatting for the new […]
http://www.riemers.net/eng/Tutorials/XNA/Csharp/Series1/VertexBuffer_and_IndexBuffer.php This is the last tutorial for this series on terrain and what better to finish up on than some optimizations, and we don’t have much to change in this one. In XNA Game Studio 4.0 the VertexBuffer syntax changed slightly now we don’t need to tell the graphics card the size of memory to […]