Simple 3D City Simulation

Source: Internet
Author: User

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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.