Hi, I don't understand how to define units in my model and world space. I have loaded a mesh, and if I don't scale it down it is very large. When I modeled it in a 3d modeler i modeled it to be about 50cm X 50cm X 70cm. When I load in the mesh it is very big. I want to define it so that 1 unit = 50 cm. And the screen is about 10x10 units. How can I do this I you don't understand my question, please tell me and I will try to explain my problem in greater detail.

Unit size
Jim Stanley
Sohail Ch.
Sure though you won't see any particular unit in those applictions either in general. 5x5x5 is just that - an arbitrary number. Some games have meshes sized in the 5x5x5 some sized in the 0.5x.5x.5 - it really doesn't matter as long as all the objects sizes are correct in relation to each other.
If you open up your .x file in Maya you can certainly shrink the coordinates down.
CHWu
There are no 'units' in D3D. It depends on where the camera is. The only thing that is contant is the realtive size of things so something 10 wide will be 5 times thinner than something 50 wide.
Remember that doing a scale on every frame is trivial for the 3d card - its already applying all the matrices anyway so its not the overhead you think it is. You will have to turn on normalizenormals in the redner state for lighting to work though.
But to answer your question you can walk through the vertex buffer of the mesh and mutlipl each point by the scale matrix right after loading which will do what you want.
technoxicated
To clearify a little... What I think I wan't to do is to scale down my mesh just after loading it, instead of scaling it on every frame render. How come dirext3d choose my mesh to be 10 units wide when it in reality is 50cm wide 1unit=5cm then. Can I tell it to use 1unit=50cm instead If I wanted it to be 1 unit wide how wide will I have to make it in a 3d modeler program to accomplish that