Creating a simple terrain

From Mod Wiki
Revision as of 17:26, 21 November 2007 by Ducks (talk | contribs) (Batch update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
An Advanced Map
1. Introduction and goals of the tutorial
2. Necessary map declarations
3. Caulk hull
4. Creating a simple terrain
5. Adding an atmosphere
6. Adding player spawns
7. Adding base structures
8. Adding base vehicles
9. Creating a constructible Bridge
10. Adding an MCP escort objective
11. Adding a Shield Generator hack objective
12. Creating a destructible objective
13. Adding Objective spawns and vehicles
14. Info Objectives
15. Deployzones
16. Playzones
17. Masks
18. Barebones Map script
19. Creating a command map
20. Levelshot

Lets add a simple, flat terrain so we have something to drive and run around on. It is possible to export geometry from within editworld as a model format, making it editable in a 3d package if you wish.

Setting up the megatexture

For now we will use the area22 megatexture assets for the etqwmap. Copy the following file and rename it to etqwmap_*.

  • megatextures/area22_lit.mega

Adding a simple terrain mesh

  1. Duplicate the floor brush and adjust its size to a 32768 unit square.
  2. Convert the brush to a patch and by using the primitives inspector, change its subdivisions to 32 by 32.
  3. Using the texture editor, adjust the bounds so it matches the megatexture preview image 1 to 1. You may need to click the y-axis flip
  4. Using the surfaces inspector apply the material megatextures/etqwmap.
  5. Adjust the height of the patch in the side or front viewport so it sits at 0, then export the mesh to models/terrain/yourmapname.obj.
  6. Now that we have saved our model. Lets import it as an ETQW terrain. In the terrain inspector right click and add new tree. Pick your terrain model. You should see it appear at 0,0,0. The terrain can be hidden by using the fourth button in the terrain toolbar Toolbar terrain.jpg and the wireframe can be toggled with the first button.

Although this terrain doesn’t represent the final polycount or appearance of a regular terrain it is fine for now. Creating a regular terrain mesh is covered in this tutorial.