OthonReyes

Hi, i'm a bit newbie programming videogames with directx and here in my contry there is not enough information to start a career as a videogame programmer. Anyway, my question is "How do the proffesional videogame programers load a 3d model ", i mean sometimes i explores the files of the videogames taht i play in my pc and i can't find any .x file, i'm not surprised by this but i wish to know how they load a 3D model if there are no .x files in the finalv ersion of the video game.

Thanks for any help


Re: Game Technologies: DirectX 101 How do the proffesional videogame programers load a 3d model?

Ralf Kornmann

Well most of us have their own prosperity formats and custom exporters for the design tools (Maya, 3DMax, ¡­)we use. Most times another tool (called asset compiler) is used to generate big files that contains 3d models, textures, and other things the game need.






Re: Game Technologies: DirectX 101 How do the proffesional videogame programers load a 3d model?

OthonReyes

So, i understand the you don¡¯t use a common file.
Could you explain me how can i make such custom exporter program . Is there any documentation about it .

Do you know the name of any asset compiler that can be downloadable .

Thanks for you help





Re: Game Technologies: DirectX 101 How do the proffesional videogame programers load a 3d model?

ttgsgMAFE

Why not give ".FBX" a shot. The format can be exported from Maya, 3DS and Motion Builder. You can also export the file into ASCII and Bianary formats. I would recomend downloading XNA and looking over the content pipeline as well.

Have Fun.





Re: Game Technologies: DirectX 101 How do the proffesional videogame programers load a 3d model?

Lord_Dan

Or you could do something like that.......

Let's say that you have a file named MyModel.yourCustomExtension, that contains:

2
2
0
2
-2
0
-2
-2
0

If you open this file..... it doesn't make any sence. But........ actually it contains the coordinates of 3 vertices of a triangle.

2 -- x of vertex 1
2 -- y of vertex 1
0 -- z of vertex 1
2 -- x of vertex 2
-2 -- y of vertex 2
0 -- z of vertex 2
-2 .......and so on
-2
0

Use a filestream to read the file. After reading the first line, convert what the filestream got to a float.... after reading all file.. u should be able to create 3 Vector3 containing (2,2,0), (2,-2,0), (-2,-2,0).

If u want more details or a sample source code just say it .

And u can make your own extension (you file could contain all mesh data, textures, matrices and so on.....