The Driver Syndicate/Level Editor/Heightfields: Difference between revisions

From Equilibrium Engine Wiki
Jump to navigation Jump to search
No edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Heightfield tool creates level terrain structure using heightmaps and quickly apply materials to surfaces.
Heightfield tool creates level terrain structure using heightmaps and quickly apply materials to surfaces.
[[File:Heightf.jpg|thumb|763x763px|Heightfield Tool Active]]


== Controls for viewport ==
== Controls for viewport ==
 
Camera control remains the same as described in [[The Driver Syndicate/Level Editor#Viewport controls|Level Editor Viewport controls]]
# Space: rotate texture tile
# Space: rotate texture tile (some textures are locked and cannot be rotated)
# Control + Mouse wheel: Changes radius of tool
# Control + Mouse wheel: Changes radius of tool
# Left mouse: sets tile texture and properties (see "What to set" and "Tile flags")
# Left mouse: sets tile texture and properties (see "What to set" and "Tile flags")
# Right mouse: deletes tile texture
# Right mouse: deletes tile texture
# Middle mouse drag: draws a line and performs same as left mouse for each tile in line
# Middle mouse drag: draws a line and performs same as left mouse for each tile in line
# alt + left click on a tile in the viewport adopts its settings


== Paint modes ==
== Left panel ==
 
=== Paint modes ===
You can edit heightfields in various modes
You can edit heightfields in various modes


Line 16: Line 20:
# Height Add - Adds to the set power/ height. Useful for making smooth hills or mountain ranges quickly.
# Height Add - Adds to the set power/ height. Useful for making smooth hills or mountain ranges quickly.
# Height Set - Sets the height.
# Height Set - Sets the height.
# Height Smooth = Smooths the heightmap, good for beaches, hills, bumps, etc.
# Height Smooth = Smooths the heightmap, good for beaches, hills, bumps, etc. (press and drag the mouse wheel to create ramps between tiles of different heights)


Pressing 1-5 on keyboard will also change paint mode
Pressing 1-5 on keyboard will also change paint mode


== Brush settings ==
=== Brush settings ===
 
# Layer: current layer of heightfield to paint on
# Layer: current layer of heightfield to paint on
# Power/Height: Sets the height of your heightmap.
# Power/Height: Sets the height of your heightmap.
Line 32: Line 35:
Please note that AI Roads are forced to be at LAYER 1 for the time being.  
Please note that AI Roads are forced to be at LAYER 1 for the time being.  


== Tile flags ==
=== What to set ===
 
# material: when active the texture will be paintet
# rotation: when active the rotation of the texture will be applied
# flags: when active the tile flags will be applied
 
=== Tile flags ===
Tile flags define how geometry of heightfield is generated:
Tile flags define how geometry of heightfield is generated:


Line 43: Line 52:
Pressing Q-T on keyboard will also toggle the flags
Pressing Q-T on keyboard will also toggle the flags


TIP: Use "'''View Heightfield Tile-Helpers'''" in the '''View''' tab to show you what kind of tiles are painted on region. Each color represents a specific flag
TIP: Use "'''View Heightfield Tile-Helpers'''" in the '''View''' tab to show you what kind of tiles are painted on region. Each color represents a specific flag.
 
== Right panel ==
 
=== Search and filter ===
Enter a name or tag to search specific texture to show them in selection bar (texture list)
 
=== Display ===
Preview size for the textures 64, 128 or 256
[[File:Heightmap materials window.png|thumb|Heightmap materials window]]
 
=== Heightmap Materials ===
 
# click on a tile in the viewport that contains a material
# now all materials in active region will be shown in the Heightmap material window
# Click on "Delete" to remove all tiles in active region that contains selectet material
# Click on "Replace with selected" to replace the texture selected in the window with the one selected in the selection bar in active region

Latest revision as of 20:45, 24 January 2025

Heightfield tool creates level terrain structure using heightmaps and quickly apply materials to surfaces.

Heightfield Tool Active

Controls for viewport

Camera control remains the same as described in Level Editor Viewport controls

  1. Space: rotate texture tile (some textures are locked and cannot be rotated)
  2. Control + Mouse wheel: Changes radius of tool
  3. Left mouse: sets tile texture and properties (see "What to set" and "Tile flags")
  4. Right mouse: deletes tile texture
  5. Middle mouse drag: draws a line and performs same as left mouse for each tile in line
  6. alt + left click on a tile in the viewport adopts its settings

Left panel

Paint modes

You can edit heightfields in various modes

  1. Set Tile - Set or paint your heightmap tiles. Be mindful of power/height settings.
  2. Texture Transition - Lets you transition between textures. (You must have a transition tile .mat set up)
  3. Height Add - Adds to the set power/ height. Useful for making smooth hills or mountain ranges quickly.
  4. Height Set - Sets the height.
  5. Height Smooth = Smooths the heightmap, good for beaches, hills, bumps, etc. (press and drag the mouse wheel to create ramps between tiles of different heights)

Pressing 1-5 on keyboard will also change paint mode

Brush settings

  1. Layer: current layer of heightfield to paint on
  2. Power/Height: Sets the height of your heightmap.
  3. Radius: Set the radius.

You can change radius by holding Ctrl and scrolling the mouse wheel.

There is 4 different layers of heightfields that lets you separate geometry and create something like bridges, beaches with sand running under water etc.

Please note that AI Roads are forced to be at LAYER 1 for the time being.

What to set

  1. material: when active the texture will be paintet
  2. rotation: when active the rotation of the texture will be applied
  3. flags: when active the tile flags will be applied

Tile flags

Tile flags define how geometry of heightfield is generated:

  1. Detached - tiles will not be sloped to surrounding tiles of non-detached
  2. Add wall - adds a wall to the detached tiles important for sidewalks
  3. Wall collision - adds wall collision to set tile. (Not needed for sidewalks)
  4. No collide - this tiles has no collision at all.
  5. Flip UVs - Flip the texture uv.

Pressing Q-T on keyboard will also toggle the flags

TIP: Use "View Heightfield Tile-Helpers" in the View tab to show you what kind of tiles are painted on region. Each color represents a specific flag.

Right panel

Search and filter

Enter a name or tag to search specific texture to show them in selection bar (texture list)

Display

Preview size for the textures 64, 128 or 256

Heightmap materials window

Heightmap Materials

  1. click on a tile in the viewport that contains a material
  2. now all materials in active region will be shown in the Heightmap material window
  3. Click on "Delete" to remove all tiles in active region that contains selectet material
  4. Click on "Replace with selected" to replace the texture selected in the window with the one selected in the selection bar in active region