Hey there,
Ive been learning c# for about a year now in a software design and development course, so im fairly new to programming, and ive just started the series "Real time shaders in XNA". So far i understand whats going on, however i have been completing this series on Visual C# 2010 and XNA game studio 4.0 (i didnt think this would make a DRASTIC difference). Anyway cutting to the point I found that by the time when this code was being implemented my game would get an "ArgumentNullReferenceException was unhandled" error:
So when the instructors game loads mine doesn't pretty much. Ive followed word for word (i'm fairly certain), and ive compared our code which is exactly the same. If i had a guess where the problem was i would think it was not picking up where my SkinnedModel.fx file is or its having difficulty finding the words "View" or "Projection" etc. Like i said fairly new to programming so go easy on me :P but any help is extremely appreciatedCode:// TODO: Add your drawing code here foreach (ModelMesh mesh in gcv.Meshes) { foreach (Effect effect in mesh.Effects) { effect.Parameters["Bones"].SetValue(bones); effect.Parameters["View"].SetValue(view); ERROR WAS HAPPENING HERE effect.Parameters["Projection"].SetValue(projection); and here as well if above was commented out and so on } mesh.Draw(); }.
P.S i am not using my own model that was shown how to make in the maya lessons beforehand.


.
Reply With Quote


