Recently I am busy writing the terrain editor... So the update is slow.

Source: Internet
Author: User

I started the project only when I changed my new company as a client, and the engine was using ogre. It was so happy that I could study ogre at work.

 

The first step is to make the terrain editor.

Using Qt as the interface, MFC completely abandons it ~~~

For the time being, I only focus on ogre.Code, The QT interface is thrown to the team members and then combined.

 

Because it is a fixed-angle 2D/2.5D game

If you do not consider the level of detail (not the page), you only care about the number of textures on the surface. A terrain can contain hundreds of pixmaps for puzzles.

The idea is that the terrain is partially self-rewritten without mesh and manualobject. Ogre provides the factory mode to generate various objects.

Implement the terrain tile to inherit the movableobject, and set the rendering queue to determine the Rendering sequence. And provide various functions for the terrain,

For example, terrain detection and box trimming

 

Similar to tianlong, to achieve multi-textures, grid is used to store grid data, and terraindata is used to store the data of the entire terrain.

It also provides serialization functions to save and read binary files.

 

Tile can be divided into tileeditable and tileoptimzied. They inherit Tile

 

The tile that can be edited is mainly used for the editor, while the optimized tile is used for the client.

 

~~~ The terrain section has basically been completed, and other objects in the scenario have not yet been done. The prototype of terrain editing can be completed years ago ~~~

 

 

 

 

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.