Difference between revisions of "TTP Map Tutorial: World & Editing Basics"

From Serious Sam Wiki
Jump to: navigation, search
(creation)
 
m (moved navbar)
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==World==
 
==World==
In Serious Editor, a map is called 'World'. Worlds are saved in .wld files and they contain all entities and all local resources that are used. Every world contains at least one entity called 'WorldInfo' which is sort of the ignition of any world. We'll get to the settings for that entity later.
+
In Serious Editor, a map is called 'world'. Worlds are saved in .wld files and they contain all entities and all local resources that are used. Every world contains at least one entity called 'World info' which is sort of the ignition of any world. We'll get to the settings for that entity later.
  
 
To create a new world you can
 
To create a new world you can
Line 10: Line 10:
  
 
==Editing Basics==
 
==Editing Basics==
Ok, before we start adding stuff to the world it's time to make yourself familiar with some editing basics:
+
Unfortunately, before we start adding stuff to the world it's crucial to get familiar with some editing basics because providing this information only when it's required during the course of the tutorial would divert attention too much from what we actually want to achieve at that point of the tutorial.
  
 
===Layout elements===
 
===Layout elements===
Some general remarks first about the elements of the layout that you need to manipulate the world and its entities:
+
These are the elements of the editor that we are going to work with in order to create the map:
*The center part with the 3D view is called 'Viewport'.
+
*The center part with the 3D view is called 'viewport'.
*The window on the left contains 'Panels' that belong to the 'Property group'.
+
*The window on the left contains 'panels' that belong to the 'Property group'.
 
*On the right is the 'Command bar group' that contains tabs with all sorts of tools for editing.
 
*On the right is the 'Command bar group' that contains tabs with all sorts of tools for editing.
 
You can find further information in [[Editor Layout]].
 
You can find further information in [[Editor Layout]].
Line 22: Line 22:
 
The viewport can be navigated in two ways:
 
The viewport can be navigated in two ways:
 
;Fly mode
 
;Fly mode
:If you press {{key|Esc}} you can navigate the viewport with {{key|W}}, {{key|A}}, {{key|S}}, {{key|D}}. The mouse wheel controls fly speed.
+
:If you press {{key|Esc}} you can navigate the viewport with {{key|W}}, {{key|A}}, {{key|S}}, {{key|D}}, {{key|Space}} (up), {{key|F}} (down). The mouse wheel controls fly speed.
 +
 
 
:{{Note|Fly mode deactivates all other controls of the editor. If you want to edit you need to deactivate fly mode with {{key|Esc}} again.}}
 
:{{Note|Fly mode deactivates all other controls of the editor. If you want to edit you need to deactivate fly mode with {{key|Esc}} again.}}
 +
 
;Seamless mode
 
;Seamless mode
 
:You can also navigate the viewport with several combinations of keys and mouse:
 
:You can also navigate the viewport with several combinations of keys and mouse:
 +
:*Focussing on selected point: {{key|Space}}+double{{key|lmb}}
 
:*Panning: {{key|Space|lmb}}
 
:*Panning: {{key|Space|lmb}}
 
:*Zooming/Panning: {{key|Space|rmb}}
 
:*Zooming/Panning: {{key|Space|rmb}}
Line 35: Line 38:
 
For further information on how seamless navigation mode works see [[Viewport Navigation]]. While creating maps only with fly mode is possible, it is recommended that you make yourself familiar with seamless navigation because it will significantly expedite your work in the viewport.
 
For further information on how seamless navigation mode works see [[Viewport Navigation]]. While creating maps only with fly mode is possible, it is recommended that you make yourself familiar with seamless navigation because it will significantly expedite your work in the viewport.
  
===World Content===
+
===Selection===
Apart from the WorldInfo, a world can contain
+
Selecting an item in the viewport is done by clicking {{key|lmb}} on it. By default, selected entities are displayed in a different color and with a grid line around them. If you want to select more than one item you can
*Entities
+
:*hold {{key|Shift}} and click {{key|lmb}} on each item; or
:Entities are all map elements that are displayed in the viewport. Entities are defined by their 'Properties'.
+
:*if the items are connected, press/hold {{key|lmb}} on the first item and move the mouse over each other item.
*Resources
+
You can also select a multitude of entities automatically by their common name, class, or resource:
:Resources are all map elements that cannot be displayed in the viewport. Generally speaking, resources can be required to define properties of of entities.
+
:*{{key|Ctrl|E}}: This is the keyboard shortcut for selecting 'Clones by name' in the 'Select' tab of the Command bar group.
 +
:*{{key|Ctrl|Shift|E}}: This is the keyboard shortcut for selecting 'Clones by class' in the 'Select' tab of the Command bar group.
 +
:*{{key|Shift|Alt|E}}: This is the keyboard shortcut for selecting 'Clones by resource' in the 'Select' tab of the Command bar group.
 +
 
 +
If you want to deselect a single item hold {{key|Shift}} and click {{key|lmb}} on it. You can deselect all entities with {{key|~}} (QWERTZ: {{key|^}}).
  
 
===Testing===
 
===Testing===
Whenever you want to check what you've build in the editor you can do so by simply pressing {{key|T}}. This will transport you directly into your map to test puzzle elements, the general look of the map, etc. The player model will be spawned at world spawn, i.e. coordinates (0, 0, 0). If you want the player model to spawn at the current position in the viewport, press {{key|Shift|T}}. Pressing {{key|Esc}} will return you to the editor.
+
Whenever you want to check what you've build in the editor you can do so by returning to the world editor and pressing {{key|T}}. This will start a 'Simulation' and transport you directly into your map to test puzzle elements, the general look of the map, etc. The player model will be spawned at world spawn, i.e. coordinates (0, 0, 0). If you want the player model to spawn at the current position in the viewport, press {{key|Shift|T}}. When in simulation, pressing {{key|Esc}} will return you to the editor.
 +
 
 +
{{Warning|Before starting a simulation make sure that you are in the world editor. Pressing {{key|shift|T}} in other editors, particularly in the mesh editor, has a different function! If you inadvertently tried to start a simulation in another editor make sure to undo any action through the Edit menu or by pressing {{key|Ctrl|Z}} (QWERTZ: {{key|Ctrl|Y}}).}}
  
{{Note|Testing at this stage is senseless because there's no floor to walk on yet.}}
+
Ok, that should be enough general stuff to start with editing.
  
Ok, that should be enough general stuff to understand the following steps. Let's start by adding our first entity to the map.
 
  
[[TTP Simple Map Tutorial: Terrain & Architecture]]
+
{{nav|TTP Map Tutorial||TTP Map Tutorial: Terrain Part 1{{!}}Terrain Part 1|1|8}}
  
 
[[Category: TTP Tutorials]]
 
[[Category: TTP Tutorials]]

Latest revision as of 12:24, 20 May 2016

World

In Serious Editor, a map is called 'world'. Worlds are saved in .wld files and they contain all entities and all local resources that are used. Every world contains at least one entity called 'World info' which is sort of the ignition of any world. We'll get to the settings for that entity later.

To create a new world you can

  • select 'New' → 'Document.World' in the file menu, or
  • press Ctrl+N and select 'Document.World' in the dialog that pops up.

The editor should look something like this now:

TTP Tutorial World Terrain 01.png

Editing Basics

Unfortunately, before we start adding stuff to the world it's crucial to get familiar with some editing basics because providing this information only when it's required during the course of the tutorial would divert attention too much from what we actually want to achieve at that point of the tutorial.

Layout elements

These are the elements of the editor that we are going to work with in order to create the map:

  • The center part with the 3D view is called 'viewport'.
  • The window on the left contains 'panels' that belong to the 'Property group'.
  • On the right is the 'Command bar group' that contains tabs with all sorts of tools for editing.

You can find further information in Editor Layout.

Viewport Navigation

The viewport can be navigated in two ways:

Fly mode
If you press Esc you can navigate the viewport with W, A, S, D, Space (up), F (down). The mouse wheel controls fly speed.
Info 16x16.png Note: Fly mode deactivates all other controls of the editor. If you want to edit you need to deactivate fly mode with Esc again.
Seamless mode
You can also navigate the viewport with several combinations of keys and mouse:
  • Focussing on selected point: Space+doubleLMB.png
  • Panning: Space+LMB.png
  • Zooming/Panning: Space+RMB.png
  • Rotating: Space+LMB.png+RMB.png
  • Center view on selected entity: ⇧ Shift+C
  • Align view with selected entity: ⇧ Shift+A
  • Zoom in: Ctrl+Space+LMB.png
  • Zoom out: Ctrl+Space+RMB.png

For further information on how seamless navigation mode works see Viewport Navigation. While creating maps only with fly mode is possible, it is recommended that you make yourself familiar with seamless navigation because it will significantly expedite your work in the viewport.

Selection

Selecting an item in the viewport is done by clicking LMB.png on it. By default, selected entities are displayed in a different color and with a grid line around them. If you want to select more than one item you can

  • hold ⇧ Shift and click LMB.png on each item; or
  • if the items are connected, press/hold LMB.png on the first item and move the mouse over each other item.

You can also select a multitude of entities automatically by their common name, class, or resource:

  • Ctrl+E: This is the keyboard shortcut for selecting 'Clones by name' in the 'Select' tab of the Command bar group.
  • Ctrl+⇧ Shift+E: This is the keyboard shortcut for selecting 'Clones by class' in the 'Select' tab of the Command bar group.
  • ⇧ Shift+Alt+E: This is the keyboard shortcut for selecting 'Clones by resource' in the 'Select' tab of the Command bar group.

If you want to deselect a single item hold ⇧ Shift and click LMB.png on it. You can deselect all entities with ~ (QWERTZ: ^).

Testing

Whenever you want to check what you've build in the editor you can do so by returning to the world editor and pressing T. This will start a 'Simulation' and transport you directly into your map to test puzzle elements, the general look of the map, etc. The player model will be spawned at world spawn, i.e. coordinates (0, 0, 0). If you want the player model to spawn at the current position in the viewport, press ⇧ Shift+T. When in simulation, pressing Esc will return you to the editor.

Warning 16x16.png Warning: Before starting a simulation make sure that you are in the world editor. Pressing ⇧ Shift+T in other editors, particularly in the mesh editor, has a different function! If you inadvertently tried to start a simulation in another editor make sure to undo any action through the Edit menu or by pressing Ctrl+Z (QWERTZ: Ctrl+Y).

Ok, that should be enough general stuff to start with editing.



x
Nav Green.png Nav Blue.png Nav Blue.png Nav Blue.png Nav Blue.png Nav Blue.png Nav Blue.png Nav Blue.png Nav Blue.png