Monday, May 14, 2012

xna file updates in windows phone 7.1

getting models to load into the content
So i managed to get the model into the phone at least once, but from there on out when I update the fbx the model doesn't get updated. Having this issue is pretty annoying. Even more awkward, if I load in a different model, nothing is displayed at all, but the load function doesn't error. So what's going on? Is the model too big, too small, not enough documentation on how the fbx should be setup for me to figure out what's wrong with the model.
so

Debug.WriteLine("mesh info>> " + ball.Meshes.Count.ToString());

tells me that

mesh info>> 0

So even more annoying is that Visual Studio doesn't always like to re-process the model into it's xnb when the file is updated. I think it's deciding that the fbx's time stamp hasn't changed enough for it to bother. Annoying so i have to use an A and B to keep switching between the two so it'll pick a different file altogether to load to force it to load the model as a new model.

So it's running fine, I'm just finding that visual studio has a bad habbit of ignoring file updates when building the xnb files from the fbx files. annoying to say the least.

Interestingly enough though a primitive that's 1000 units across seems to be about the correct size to take up most of the center of the screen on the phone. 100 units is a small object on the screen. but my camera was 5000 units away, moving it to about 1000 units away from the origin made a big difference but the object is also a bit more distorted with perspective.

In anycase, if you're having issues with models updating then try changing the name of the file you're loading. seems like the file doesn't always update. when the fbx is changed.

No comments:

Post a Comment

rxokita's shared items