Terrain tutorial

From HEWIKI
(Difference between revisions)
Jump to: navigation, search
m (1 revision)
(Direction limiting)
 
(12 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[Image:TerrainPanel.png|right|300px|frame|Note: The Terrain Panel is frequently updated with new features as new versions of HeroEngine are released, so the version in your own release of HeroEngine may appear slightly different.]]{{tocright}}
+
[[Image:HeroBladeTerrainPanel.png|200px|right|frame|Note: The Terrain Panel is frequently updated with new features as new versions of HeroEngine are released, so the version in your own release of HeroEngine may appear slightly different.]]{{tocright}}
 
{{beginner}}
 
{{beginner}}
  
 
: ''This is a beginner-level tutorial to gain familiarity with the [[Terrain panel]] and learn how to modify [[Heightmap nodes]].''
 
: ''This is a beginner-level tutorial to gain familiarity with the [[Terrain panel]] and learn how to modify [[Heightmap nodes]].''
 
: ''Most of this tutorial can be done in any world, but some sections may require art assets that are only available in the [[Hero's Journey Reference World]].  So for easiest results, work through this tutorial in your own test area in Hero's Journey Reference.''
 
: ''Most of this tutorial can be done in any world, but some sections may require art assets that are only available in the [[Hero's Journey Reference World]].  So for easiest results, work through this tutorial in your own test area in Hero's Journey Reference.''
: ''For sample animations of adjusting a heightmap, see http://heroengine.com/world.asp''
 
  
  
Line 44: Line 43:
 
** Ensure that the <tt>Show Influence</tt> checkbox is checked.
 
** Ensure that the <tt>Show Influence</tt> checkbox is checked.
 
* Click on the [[Edit Height Brush]] {{edit height}} at the upper left of the Terrain Panel.
 
* Click on the [[Edit Height Brush]] {{edit height}} at the upper left of the Terrain Panel.
** Tip: Hovering the mouse over each icon will give its name. In an [[upcoming release]] of HeroEngine, these tips will also be displayed in the [[HeroBlade Status Bar]] at the bottom of the window.
+
[[Image:Polygons.png|right|frame|350px|The white polygons show which polygons will be affected by the terrain tool.  The blue thermometer at the center shows the intensity of effect.  The feathering along the outside of the range is controlled by the three [[Falloff]] buttons on the Terrain panel]]
[[Image:Polygons.png|center|frame|350px|The white polygons show which polygons will be affected by the terrain tool.  The blue thermometer at the center shows the intensity of effect.  The feathering along the outside of the range is controlled by the three [[Falloff]] buttons on the Terrain panel]]
+
 
* Move the mouse over the heightmap, and you should see a circle with a vertical bar "thermometer" in it.  Under the circle should be white polygons, indicating which part of the heightmap will be be modified.
 
* Move the mouse over the heightmap, and you should see a circle with a vertical bar "thermometer" in it.  Under the circle should be white polygons, indicating which part of the heightmap will be be modified.
 
** If you don't see a circle, ensure that the heightmap is selected. {{select}}
 
** If you don't see a circle, ensure that the heightmap is selected. {{select}}
Line 81: Line 79:
 
* Change the scale to .5, and notice the difference.  The smaller the scale, the softer the effect.
 
* Change the scale to .5, and notice the difference.  The smaller the scale, the softer the effect.
 
* Ctrl-Shift-wheel rotates the fractal, to vary the pattern (again, this may be a very subtle effect at this point, but later on in the tutorial you will see how this can cause more dramatic effects).
 
* Ctrl-Shift-wheel rotates the fractal, to vary the pattern (again, this may be a very subtle effect at this point, but later on in the tutorial you will see how this can cause more dramatic effects).
 
 
  
 
==Adjusting intensity==
 
==Adjusting intensity==
Line 193: Line 189:
 
[[Image:Arrows.png|right]]The Direction Limiter arrows can be toggled on and off, to restrict movement in that direction.To only raise (and not lower) terrain, toggle off the large down arrow to the right of the Slope Limiter box. To only lower (and not raise) terrain, toggle off the large up arrow.
 
[[Image:Arrows.png|right]]The Direction Limiter arrows can be toggled on and off, to restrict movement in that direction.To only raise (and not lower) terrain, toggle off the large down arrow to the right of the Slope Limiter box. To only lower (and not raise) terrain, toggle off the large up arrow.
  
* Click on the Up arrow to toggle it off. [[Image:DownLimitArrows.png|15px]]
+
* Click on the Upward Checkbox. [[Image:DownLimitArrows.png]]
 
* Select the Edit Height tool {{edit height}}
 
* Select the Edit Height tool {{edit height}}
 
* Try to raise and lower terrain, and you will only be able to lower terrain, not raise it.
 
* Try to raise and lower terrain, and you will only be able to lower terrain, not raise it.
Line 200: Line 196:
 
* Select the Soften tool {{soften}}
 
* Select the Soften tool {{soften}}
 
* In the Soften subpanel, select <tt>Unspike</tt>
 
* In the Soften subpanel, select <tt>Unspike</tt>
* Check that the Upwards Limiter Arrow is turned off.  [[Image:DownLimitArrows.png|15px]]
+
* Check that the Upwards Limiter Arrow is turned off.  [[Image:DownLimitArrows.png]]
 
* Create a large brush size, and drag it over the heightmap.  The high spikes should disappear, while the lower spikes remain.
 
* Create a large brush size, and drag it over the heightmap.  The high spikes should disappear, while the lower spikes remain.
 
* Reset the limiter arrows to default, by toggling them both on. [[Image:LimiterArrows.png|15px]]
 
* Reset the limiter arrows to default, by toggling them both on. [[Image:LimiterArrows.png|15px]]
 
  
 
===Altitude limiting===
 
===Altitude limiting===
Line 241: Line 236:
 
Using the mesas example, it's possible to select only certain polygon vertices to be affected.
 
Using the mesas example, it's possible to select only certain polygon vertices to be affected.
  
* Click the Selection tool. {{sel}}
+
* Click the Selection tool. [[Image:HeroBladeSelectVertices.png]]
 
* With the mouse wheel, make a very small brush
 
* With the mouse wheel, make a very small brush
 
* Click and drag over the surface of one of the mesas.  Wherever you drag, white dots will appear at the vertices.  Cover the entire surface of the mesa.
 
* Click and drag over the surface of one of the mesas.  Wherever you drag, white dots will appear at the vertices.  Cover the entire surface of the mesa.
Line 260: Line 255:
 
* Select the [[Texture tool]], and choose an available texture (perhaps a "dirt" dark brown color if available).
 
* Select the [[Texture tool]], and choose an available texture (perhaps a "dirt" dark brown color if available).
 
* Paint a swath across the heightmap
 
* Paint a swath across the heightmap
* Choose the Selection tool. {{sel}}
+
* Choose the Selection tool.[[Image:HeroBladeSelectVertices.png]]
 
* In the Vertex Selector subpanel, ensure that the <tt>Texture</tt> box is selected
 
* In the Vertex Selector subpanel, ensure that the <tt>Texture</tt> box is selected
 
* Move the Texture slider to the left, for a low tolerance.
 
* Move the Texture slider to the left, for a low tolerance.
Line 271: Line 266:
 
* Click "Yes".  This will work because even though it says "all heightmaps", you are still only applying the change to the Selected Vertices.
 
* Click "Yes".  This will work because even though it says "all heightmaps", you are still only applying the change to the Selected Vertices.
 
* The color should be applied only to the texture that you drew earlier.
 
* The color should be applied only to the texture that you drew earlier.
 
 
  
 
==Cut holes==
 
==Cut holes==

Latest revision as of 16:36, 8 November 2012

Note: The Terrain Panel is frequently updated with new features as new versions of HeroEngine are released, so the version in your own release of HeroEngine may appear slightly different.

Contents

He beginner.png

This is a beginner-level tutorial to gain familiarity with the Terrain panel and learn how to modify Heightmap nodes.
Most of this tutorial can be done in any world, but some sections may require art assets that are only available in the Hero's Journey Reference World. So for easiest results, work through this tutorial in your own test area in Hero's Journey Reference.


Tutorial overview

There are a myriad of options for modifying terrain in HeroEngine, so there are several sections of this tutorial. As a brief overview:


Creating a Heightmap

Only work through this section if you do not yet have a clean heightmap node to work with.

To create a fresh heightmap node:


Modifying a heightmap

BrushPattern.png
The white polygons show which polygons will be affected by the terrain tool. The blue thermometer at the center shows the intensity of effect. The feathering along the outside of the range is controlled by the three Falloff buttons on the Terrain panel
FallOffExamples.png


Creating more natural shapes

Note: The Perlin Brush Pattern may also be called the "Mosaic" pattern, or the "Fractal" pattern.

Adjusting intensity

There are several ways to change the intensity of the effect.

While observing the white to-be-affected polygons, hold down the CTRL key and move the mouse wheel. This increases or decreases the intensity of the brush. It also moves the vertical slider on the terrain panel.

The intensity can be seen in multiple ways:

  • The white marker on the blue thermometer
  • The intensity of the polygon lines
  • The display in the white square (brush indicator) on the Terrain Panel
  • The location of the vertical slider on the Terrain Panel


Softening terrain

Click in the Brush Pattern box until it is the solid pattern, Solid.png not Import or Perlin.


Softening options

There are many different options for the Soften Tool

For further practice:


Level tool

With the Level Tool Terrain level icon.png multiple things can be done:


Leveling an entire area


Leveling a single heightmap


Creating mesas


Limiting

There are multiple ways to limit which part of a heightmap is being modified. The most obvious one is that terrain will only be modified within the circle of the terrain brush. However, further limiting is possible, such as to:


Direction limiting

Arrows.png
The Direction Limiter arrows can be toggled on and off, to restrict movement in that direction.To only raise (and not lower) terrain, toggle off the large down arrow to the right of the Slope Limiter box. To only lower (and not raise) terrain, toggle off the large up arrow.

Altitude limiting

See also: Altitude limiting

From an above section of the tutorial, you should have an area with multiple mesas, all at the same height as each other. Now suppose you would like one of those mesas to be a bit lower than the others? There are various ways to do this which might or might not work well, such as:

A better way to handle things, would be to limit the terrain tool by altitude, as follows:

The high and low altitude limits can also be set very precisely with the numeric boxes on the Terrain Panel.


Slope limiting


Limiting by vertices

Using the mesas example, it's possible to select only certain polygon vertices to be affected.

The Selection tool also has its own subpanel on the Terrain panel, "Vertex Selector"


Selection exercise

Cut holes

The Scissors tool Terrain cut.png can cut holes in a heightmap. This might be useful for situations like where you want to put an entrance to a cave or dungeon, or some other purpose where you need to get a small part of the heightmap out of the way.

To repair the hole:

To repair all holes in the entire area:


Create ramps

To create another ramp with the same orientation as the first one, hover the mouse over the ramp and CTRL-click to sample it.


Using a limiter to prevent ramp overshoots

Another way to use the Altitude Limiter, is to prevent overshoots. For example:

With Limit Altitude off:


Check for walkable areas

To see what areas are walkable, use the Too Steep checkbox on the Terrain panel

Now that you have some terrain, check to see if it's usable by players.


Tutorial continuation

For the next part of the tutorial, please continue to Terrain tutorial - Part 2.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox