As I'm sure you know by reading this post's name, I have a few different questions about 3D, and I figured it would be better to put them all into one post instead of make 2-3 posts all at once.
So here are my questions :
Is their a way to get the Z position of the mouse? I know the mouse doesn't actualy go "into" the screen, but I have your typical RTS game view, and I want to use the mouse to select units on-screen. The problom is, I can't find out how "deep" into the screen the mouse is, so if you click the mouse and it has an x value of 60 and y of 60, then all units with those values would end up being selected, even if some of them were off-screen. I have seen a few things about a PICK OBJECT command, but I have no idea how this command works, or if it is included in dbc(which is what I am using)
Next question :
I have a model, made and painted with calagari truespace 3.2. When the model is loaded and the screen resolution is set at 640 by 480, the model keeps its paint information from calagari, but it doesn't on higher resolutions

. The model is saved as .x. I would really like to have resolutions above 640x480, but not if I have to make textures for all the models in my game.
Please keep in mind that I am fairly new to using 3D commands, and that I am using DBC.
All help is appreciated, thanks.