Development Environment: vc7.0 + DirectX 9.0c
1. Compile a custom format model export plug-in based on 3DS max7 SDK.
2. Create a model in 3DS max7 and use the export plug-in developed in step 1 to export the scenario to a custom format *. C3d (the file organization mode is similar to 3DS ).
3. Refer to the mpq file format to package the exported scenario model into a model. mpq: Package the scene model texture into texture. mpq aims to reduce the disk file opening time during scenario loading (read a large file package to the memory and find the corresponding file block according to the index, it saves a lot of loading time than reading thousands of small files separately ).
4. Use VC ++ to develop a simple 3D graphics engine based on DirectX 9.0c (Khan himself is a pioneer and cannot calculate the engine, but the entire architecture imitates ogre and Nebula)
5. Load scene models and textures in your own 3D engine and draw them. You can use the keyboard to control the scene camera movement and browse in the scene.
BTW: no special effect, just a simple 3-dimensional simulation. It implements loading and display of sky boxes, scenes, Custom cameras, video range cutting, multiple textures, Alpha transparency of textures, and static lightmap.