Skip to content

@v12-engine/client/lite-views ​

Classes ​

NameWhat
CameraMaths betaThe matrices of one camera at one size of its view, and what is asked of them: update works them out, the rest read them
FogField betaThe fog of war as a field of brightness a cell, softened at its edges and eased in time, written into the renderer's fogOfWar a square at a time: the CPU half of the client's FogRenderer
FoliageView betaA layer's grass and bushes as drawn: what a game's code reaches through the layer's part. See the file's comment
FxView betaThe effects of a world on the renderer: the game's by name, played, followed and ended. Made by FxView.create, or by createWorldFx for a world's
GroundView betaThe ground of a terrain on this renderer, redrawn as the terrain changes: the client's TerrainView member for member, its cliffs, rocks, water and waterfalls
LineStream betaLines in the world a few pixels wide whatever their distance, said again every frame: clear, line…, flush
LiteAnimator betaPlays the animations of one unit: a loop for what it keeps doing, like standing or walking, and on top of that what it does once, like a swing, after which it goes back to the loop.
LiteCellLayers betaThe game's layers of cells on this renderer, the client's CellLayerViews with its rules: each layer's parts made, told of what changed and of every frame, and disposed (what fills LiteWorldView's LayersSlot)
LiteFloatWorld betaThe plates and the texture of layers of the floats drawn in the world of one scene (the client's FloatWorld): made as they are first needed, a layer kept for the next float, gone with dispose
LiteScreenPass betaThe screen's frame on this renderer, the client's ScreenPass member for member: the cinematic's state, the client's fade and frame, the look, written each frame into the renderer's ScreenStages
LiteTransitionPass betaThe transitions between a cinematic's shots on this renderer, the client's TransitionPass as the cinematics use it: played on the renderer's ScreenStages over the kept frame or a live view from the old shot
LiteWorldView betaThe world as it is drawn on this renderer, without a game: the client's WorldView with its surface, its parts made in its order from a map and a game's view (see the top of this file)
ModelPreviews betaSmall pictures of models, for choosing between them, like the kinds of tree in the editor: each stood alone in a side view of the renderer, drawn once and read back, one at a time, and kept
PortraitStage betaThe stage the live portraits are drawn on: its boxes, each a side view on a canvas of its own (see the top of this file)
PoseRows betaThe poses of the units drawn with a skeleton of their own: a row a unit of a texture of floats, sent once a frame
RtsCamera betaTop-down camera that looks at a point on the ground. Scrolls with the screen edges, the arrow keys and middle mouse drag, zooms with the wheel, and looks around with Q and E for as long as they are held. The keys and the button are actions (camera.left, camera.turnLeft, camera.drag…), so the player's own where there are some.
SceneryView betaThe scenery of a map on this renderer, the client's DoodadView for scenery that stands still: each doodad a copy or merged by chunk, at a level of detail by its distance (see the top of this file)
Skeleton betaOne unit's skeleton: its pose, and the players of its clips
UnitModels betaThe units' models on the renderer: each loaded once for its key, its batches drawn for every unit of it
UnitsView betaThe units and buildings of a game on the renderer: one record each, placed every frame between the last two snapshots and drawn with its parts or its model
ViewTimers betaTimers and tweens of a view, stepped by seconds as the frame runs: after and every call back, a tween drives a value over time with an Ease

Interfaces ​

NameWhat
DrawKit betaThe drawing a game's own looks of parts ask for: sets of a solid's copies, with no renderer's types in it
DrawnCopy betaA copy of a shape set: put somewhere, given its colour, taken away
KitDraw betaWhat a game's own renderers draw with on this renderer: shapes at their own sizes, each in a colour of its copy's (LiteRenderKit.draw)
LineStreamOptions betaHow a stream of lines is made
ModelInfo betaWhat there is in a model file (ModelPreviews.info): the client's ModelInfo
ModelPoint betaA place on a model: the joint that carries it (-1: none, it stands on the model), and where it is bound to it
PickHit betaWhat a ray hit by its triangles
PickRay betaA ray as a pick by box takes it (DoodadView.boxHit, EntityRenderer.staticBoxHit): where it starts and which way it goes, of length 1 (a distance along it is in the world's units). A Babylon Ray is one
Rig betaA file's nodes that move a skin, parents first: their pose at rest and each joint's inverse bind
ShapeSet betaEvery copy of a solid drawn one way (DrawKit.shape): one batch
SkeletonClip betaThe tracks of an animation of a file, shared by every unit of the rig
Track betaThe keys of a clip for one node's place, turn or size
UnitModel betaA unit's model on the card: its rig, its clips, its pieces and their batches
ViewCamera betaA camera as any pass draws with it and as the maths here reads it
WorldFx betaThe effects, the sky and the weather of a world, made by createWorldFx: each part, and what the world is given of them (parts, slot)

Functions ​

NameWhat
backdropOf betaThe colour behind everything a map's look asks for at first (no hour's): the renderer's clearColour
boxEdges betaThe twelve edges of a box given by its least and greatest corners, as segments' ends: 24 points, three numbers each. With matrix (the engine's layout, sixteen floats) the corners are turned and placed by it first
clipsOnto betaThe animations of a file laid on a model's rig by its nodes' names (a rig's file of clips, asset.extras.clips, ModelDef.clipsFile): a track on a node the rig has not got is passed by
composeInto betaA node's matrix from its size, its turn and its place, into out at at
createDrawKit betaA draw kit on the renderer
createKitDraw betaA kit of shapes on a renderer: what LiteRenderKit.draw is
createLiteWorldView betaShows a map on a renderer: the world as a game's client draws it (LiteWorldView), for the caller to draw its own over
createWorldFx betaMakes a world's effects, sky, clouds, weather, map effects and decals, before the world: bound to it when it fills its slot (WorldFx.slot)
fitAboutHit betaA clip timed about its blow (ModelDef.hitAt of its length): the part before the blow fitted to the windup (hit seconds), the part after to after seconds (the recovery, or the rest of the attack's period), each as fast as that takes within FIT_LIMITS. Gives the speed of each part, the seconds to the blow and to the end as played, and whether a part had to be held within the limits
fxLength betaHow long an effect lasts by itself, in seconds: its length, or its parts' that end; Infinity when one never does
groundPaint betaPaints a layer of cells into the ground, as a part of its look (GameView.ground.cellLayers): drawn with the ground, lit and fogged as it is, under everything that stands on it. The undead's blight, a burnt patch, a magic circle. A ready-made part, which a game takes or leaves: { blight: groundPaint({ texture, color }) }
hitAtOf betaWhere the blow lands in a clip, as a share of it: its hit mark (ClipDef.marks), else two fifths in
maskOf betaA mask as a player takes it: 1 for each node of the rig whose name is kept
modelBounds betaThe box of a model's rest under its unit's matrix (16 floats): its file's box, each corner placed
modelPicture betaA picture of a model as the editor's Content keeps them (ModelPictures.draw): 160 pixels, see-through round it, from the front and above, the model turned as it says; a WebP unless asked. Nothing where it cannot be drawn
notYet betaSays once that something is not on the renderer's path yet
notYetPart betaA part of the client that is not there yet, under its name: what known has is itself; anything else read of it is a function that does nothing and gives nothing, said once by its name the first time it is read. It is no promise (then is not there), so what awaits it goes on
partLife betaSeconds a part of an effect lasts, what its ParticleDef.over goes over
partStart betaSeconds into an effect a part starts: its at, after the mark it waits for where marks has it
pickLevel betaThe last level that applies at a distance, with the hold: scale multiplies every from (the quality's, the map's)
pointInto betaWhere a place is in the world: by its joint's matrix in a row of poses (row: sixteen floats a joint from at), then the model's own matrix in the world (model, a point a row before it). Into out
pointOn betaA place of a model by its name: a point its look declares, else a node of its file. Nothing where it is neither. further: so much more from there in the node's own units, along its own axes as the model turns it (a streak's offset toward a blade's tip: the client's offset through the node's world matrix)
posedWorlds betaEvery node's matrix in the model's space for a pose, into the shared worlds (16 floats a node): valid until the next call
refusedScreenProcess betaWhat a game's screen pass of its own is told on this renderer: it was Babylon's post-process, and is not drawn
shadowLevel betaThe level a thing's shadow is drawn at, drawn at level: as the level says, else as many coarser as the bias, never nothing nor a picture by the bias. -1 for none. A picture casts its own card's
solid betaA solid, a unit across: made once
unitFigures betaFigures of units for a portrait stage: a model with its skeleton and clips, or a type's parts
visualsOf betaWhat an entity looks like, by the look of the type it is drawn as (the client's typeDrawnAs: the type a buff it carries draws it as, polymorphs, the one it looks like, its likeness, or its own): itself, or, for a look of several models, a look of the one model the entity is drawn with (made once a model), standing as vary says
writeLine betaWrites a segment's record at its place among the records: from a to b, width pixels wide, of a colour (0 to 1 each) and how opaque

Values ​

NameWhat
CLIP_FPS betaFrames a second a file's keys are counted in (Babylon's loader's)
CLOUD_LAYER betaThe cloud layer's defaults: how high, how big a cloud, how much is cloud, how much it shows, how soft a patch's edge
CLOUD_VOLUME betaThe volume's defaults: how tall the clouds are, in cells
CUBIC betaKeys on a cubic spline of the file's, a way in and a way out at each (Track.mode)
DEBUG_VIEWS betaEvery debug view on this renderer, as the debug panel lists them: the most used first
LINE_FLOATS betaFloats a segment's record takes: an end and the width, the other end, the colour and how opaque
LINEAR betaKeys gone between straight (Track.mode): turns by slerp
MADE_HERE betaA lighter level made in the page is drawn from a file of this name: its model's, this, and the part it keeps (the client's MADE_HERE)
MODEL_BINDINGS betaWhat a material of UNIT_MODEL binds: its block of uniforms (look), the poses' texture, its picture and the picture's sampler
PART_BINDINGS betaWhat a material of UNIT_PARTS binds of its own: nothing, a copy carrying its colour
PART_SHADOWS betaThe small parts' shadows as the client leaves them: no larger than 2 across, none past 70 from the eye, over the last 10
POSE_FLOATS betaFloats of a node's pose: its place (3), its turn (4: x, y, z, w), its size (3)
ROTATION betaA track of a node's turn (Track.path)
STEP betaEach key held until the next (Track.mode)
SUN_AROUND betaWhere the sun is when the map does not say: degrees around from north
SUN_UP betaWhere the sun is when the map does not say: degrees up from the horizon
TRANSLATION betaA track of a node's place (Track.path)
UNIT_MODEL betaA model moved by a skeleton. Streams: normal, uv, joints (four joints a vertex, a byte each) and weights (a byte each, the four summing to 255: quantizedSkin): 8 bytes a vertex for the two, where floats were 32. Flags: baked, cutout, dither, reveal, team, shine (an emissive picture: one binding more, shinePicture), normal (a normal map: normalPicture, binding 5, its way from the picture's frame across the surface), blend (a material less than opaque: blended over what is behind it, how opaque its surface's third times how much of the copy is there, not dithered; out of the velocity)
UNIT_PARTS betaA part of a unit: a solid in a colour of its copy's. Stream: normal. Flags: dither, reveal, unlit. A copy that is not all there casts its whole shadow (the client's see-through leaves the shadows be)

Types ​

NameWhat
DebugViewKind betaA debug view on this renderer (LiteDebugViews.show)
LiteLayerFactories betaWhat a layer is drawn with, as a game's view gives it: one part or several
UnitVisual betaA unit's or a building's look as the renderer's units draw it: the look itself (UnitLook)

Namespaces ​

NameWhat
mat4