Jobs

Enqueue a 16-tile Wang set made from seamless tiles (ML /generate/tileset): two terrains blending, or a line over a terrain. The result holds the 4x4 atlas (and its normal map when asked), a preview map and each cell's corner or edge bits. Dev only for now. One GENERATE_TILESET charge (Roles: user)

Changed on
post/jobs/generate-tileset

Request

  • Base URL
    https://api.ludo.ai/api
  • Auth
    API key in header Authorization

Request body

grid'square' | 'diamond' | 'diamond-true' required

The map's grid, as for a tile. Input tiles of any size are taken; one that does not repeat seamlessly is refused.

kind'terrain' | 'lines'

terrain: terrain A blending into terrain B (a corner set). lines: the line in tile_b (road, path, river, fence, wall) over terrain A, or over nothing, in every dead end, straight, turn, T and crossing (an edge set). A lines set needs tile_b.

terrain_astring

A short name of terrain A (lines: the ground), e.g. grass

terrain_bstring

A short name of terrain B (lines: the line in tile_b, e.g. cobble road)

transitionstring

What the boundary looks like, e.g. a stone curb. Lines: optional instructions for building the set from the line in tile_b (what its crossings, T junctions, corners or ends look like), or its edges when tile_b is a texture of its material.

shape'natural' | 'smooth' | 'jagged' | 'rounded' | 'sharp'

The outline: natural (organic), smooth (plain curves), jagged (fine wiggles), rounded (square corners rounded), sharp (straight runs along the grid)

irregularitynumber float

How far the outline wanders. Default 0.7 for natural and jagged, 0 for the others

transition_widthnumber float

Half-width of the transition, as a fraction of the tile width

line_widthnumber float

Lines: the line's width as a fraction of the tile width. Default 0.3

normal_mapsboolean

Also return the atlas's normal map (atlas.normals)

seedinteger
request_idstring

Response

Accepted

jobIdstring required
status'queued' | 'running' | 'succeeded' | 'failed' | 'canceled' required
queue_positioninteger

Changes