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 version, you can find the code I started with at http://pastebin.ca/1963033
The effects.fx file needs updating, further to the one we used in the last series I had to create a new technique for the textured effect since we can no longer have optional parameters as described in the previous series when we dealt with the effects file, we will use one for position and texture and one for position, normal and texture. So we carry over those previous changes in addition what needs to be done is open up the effects.fx file in visual studio copy all the code in the section:
//——- Technique: Textured ——-
and replace each occurrence of Textured with NormalTextured in the pasted code
now the original code for the Textured technique we want to change from
What we did there was to remove the parameter float3 inNormal: NORMAL from the method signature and any code that made use of that parameter!
You can download the updated version of the effects.fx file here: