Skip to content

geo.map.debug

2 functions / 1 types

Index

FunctionDescription
get_debug_viewsReturn the map’s debug views.
set_debug_viewsChange the map’s debug views and return all of them. Each field left out keeps its value. The settings outlive the map and apply to the next map spawned. Terrain shadows are set with geo.viewport.set_rendering.
TypeDescription
MapDebugStateThe map’s debug views. Outlines draw only in builds with map telemetry.

get_debug_views

def get_debug_views(
    *,
    _transaction_id: str | None = None
) -> types.geo.map.debug.MapDebugState

Return the map’s debug views.

Returns MapDebugState.

_transaction_id optional : str | None

Transaction to join. Omit to submit without an explicit transaction. Defaults to None.

set_debug_views

def set_debug_views(
    *,
    freeze: bool | None = None,
    tile_gizmos: bool | None = None,
    tile_bounds: bool | None = None,
    layer_bounds: bool | None = None,
    lattice_nets: bool | None = None,
    drawn_wireframes: bool | None = None,
    level_limits: bool | None = None,
    level_colors: bool | None = None,
    shader_mode: str | None = None,
    _transaction_id: str | None = None
) -> types.geo.map.debug.MapDebugState

Change the map’s debug views and return all of them. Each field left out keeps its value. The settings outlive the map and apply to the next map spawned. Terrain shadows are set with geo.viewport.set_rendering.

Returns MapDebugState.

freeze optional : bool | None

Hold tile selection at the current view. Defaults to None.

tile_gizmos optional : bool | None

Outline each selected tile by its loading state. Defaults to None.

tile_bounds optional : bool | None

Outline each tile as the volume its terrain fills. Defaults to None.

layer_bounds optional : bool | None

Outline each layer’s declared coverage. Defaults to None.

lattice_nets optional : bool | None

Draw the control net each tile’s surface is built from. Defaults to None.

drawn_wireframes optional : bool | None

Draw the triangles handed to the renderer as a wireframe. Defaults to None.

level_limits optional : bool | None

Show the deepest level each layer can serve. Defaults to None.

level_colors optional : bool | None

Color the ground by the level of the tile drawn there. Turning it off draws the imagery. Defaults to None.

shader_mode optional : str | None

What the map shader draws, by name. Applied after level_colors. Defaults to None.

_transaction_id optional : str | None

Transaction to join. Omit to submit without an explicit transaction. Defaults to None.

MapDebugState

MapDebugState(
    *,
    freeze: bool,
    tile_gizmos: bool,
    tile_bounds: bool,
    layer_bounds: bool,
    lattice_nets: bool,
    drawn_wireframes: bool,
    level_limits: bool,
    level_colors: bool,
    shader_mode: str,
    shader_modes: tuple[str, ...] = ()
)

The map’s debug views. Outlines draw only in builds with map telemetry.

freeze : bool

Whether tile selection holds at the view it was last made for, so the camera can fly out and look at what was selected.

tile_gizmos : bool

Whether each selected tile is outlined, colored by whether it is loaded, loading, queued or missing.

tile_bounds : bool

Whether each tile is outlined as the volume its terrain fills.

layer_bounds : bool

Whether each layer’s declared coverage is outlined.

lattice_nets : bool

Whether the control net each tile’s surface is built from is drawn.

drawn_wireframes : bool

Whether the triangles handed to the renderer are drawn as a wireframe.

level_limits : bool

Whether the deepest level each layer can serve is shown.

level_colors : bool

Whether the ground is colored by the level of the tile drawn there.

shader_mode : str

What the map shader draws in place of the imagery, as one of the names in shader_modes. normal draws the imagery.

shader_modes optional : tuple[str, ...]

Every name shader_mode accepts. Defaults to ().