jeffmorris

Which measurement system does XNA Game Studio use - inches & feet or metric I was trying to create 3D boxes for a 3D game and the boxes look too small. I used the code from this link: ms-help://MS.VSExpressCC.v80/MS.VSIPCC.v80/MS.XNAFX.1033/XNA/Math_HowTo_FirstPersonCamera.htm

Re: XNA Game Studio Express Which measurement system?

dczraptor

I don't think XNA uses any measurement system. It's just plain "units". If you take a look at your model file, XNA will use those hardcoded numbers, no matter what measurement system they represent. Someone correct me if I'm wrong.




Re: XNA Game Studio Express Which measurement system?

jeffmorris

There is a loop in the program that places 100 boxes in the game world. I wish to create a city but one box uses two texture files and another box uses another texture file. Can the loop be modified for two boxes and three texture files



Re: XNA Game Studio Express Which measurement system?

Bill Reiss

As long as you're consistent with your units it shouldn't matter. I do think it's helpful to decide on your units up front and base them on what makes sense for your world. For example, in my air hockey game, 1 unit equals one inch, but in a tank fighter game 1 unit would probably be something bigger, like a meter, foot, or yard.

It's probably best to make all of your models to the same scale so that you don't have to scale everything to the proper size, but if you don't have control over the scale of your models you can always scale them in the game code.