XNA Essentials

Game Programming for Xbox 360, PC + Windows Phone


Chapter 6 Loading 3D Models


Working my way through your book and really enjoying it.

In Chapter 6 loading and texturing 3d models, when you move along the Z axis everything is really slow. X and Y are fine.

I have change the Z increments/decrements to massive values and though moving a small bit faster, the aesteroids are not exactly hurtly away or towards me.

How would this be done and would there be anything else i need to change?

Regards and thanks for a great book. 

Blackriders - Saturday, May 1, 2010 @ 1:20 PM

Re: Chapter 6 Loading 3D Models

I'm glad you are enjoying the book.  The world in Chapter 6 is pretty large.  The asteroid is a very large model.  To increase your speed you can change the value of moveRate in the Camera.cs class under XELibrary.  This will increase it in every direction.  You could load the asteriod multiple times at multiple scales and positions to see how fast you want your camera to move.

Hopes this helps,


Chad Carter - Monday, May 3, 2010 @ 10:30 AM

Re: Chapter 6 Loading 3D Models


Suprised I missed that. Works fine now.


Blackriders - Monday, May 3, 2010 @ 5:58 PM