terms: "layer" - one of the eight graphics layers that can contribute to the color of a pixel. - background color - pivot (text / pixel) - sprites - 4 tilemaps - highcolor layer "tilemap" / "tilemap layer n" ="playfield" "clip plane" / "clip interval" / "clip window" - one of the four clipping intervals. each interval has a "left" and "right" value. i think we say a layer "subscribes to" a clip interval if that interval is enabled but we havent used this language lately. "sprite group" ="sprite priority group" - sprites are split into 4 groups based on the upper 2 bits of their palette (00,40,80,C0). these can have different blend settings "mosaic" - horizontal pixelization effect "background color [layer]" - color drawn behind everything else (used if nothing else is displayed there) "color" - ambiguous "color id" ="color index" - a color in the FDP - that is, a 13-bit number, which is later used as an index into color RAM. "palette id" - the upper bits of a color index (while the lower bits are supplied by the texture). abstractly, an object's palette selects which set of 16 (or 32, or 64) colors is used for it. note this is NOT the same as color id × 16, since palette and texture color overlap and are combined with OR, not +. (final color = texture color | palette id << 4, where texture color ranges from 0 to 63) "???" (texture color?") - the value of a pixel in a texture (4, 5, or 6 bits). abstractly, this is an index into the object's palette. "rgb color" - an actual color, seen and blended by the FDA and output to the screen. "color ram" / "palette ram" - the map of color numbers to rgb colors "priority" - blending priority (determines which 2 layers are chosen for blending etc) not to be confused with sprite priority, which only matters while rendering to the framebuffer, and is mapped to priority by lineram 7600 "blend mode" - which pixels a layer contributes to (left/right/both/neither) this is like "priority stack-up contribution" "alpha value" / "blend value" / "blend alpha value" - ranges from $7 (100%) to $F (0%). $B is 50%. represents an alpha value. there are 4 of these, 2 for the left half-pixel and 2 for the right half-pixel "alpha select" ="blend select"/"blend value select" - setting which determines which of the sets of alpha values will be used for a given layer "half-pixel" - one of two pixels that is sent to the FDA for each screen pixel "A and B" / "left and right" - what we call each of the half-pixels. note: think of it this way: priority and half-pixel are the 2 axes of the priority cell array "priority cell" - (this is only a theory, but so far it's been useful for explaining things) believe the way the fdp handles priority is that each layer's color gets placed into an array of 2×16 "cells", corresponding to the 16 priority levels and 2 half-pixels. each cell contains: 13-bit color index, transparency flag, alpha select bit, and maybe an "invalid" flag. for each screen pixel, the fdp picks the highest non-empty cell in each column and sends their color to the fda (along with the corresponding alpha value) "empty"/"transparent" vs "full"/"opaque" - (needs work) when talking about layer contributions transparent means when searching for the 2 half-pixels to send to the fda, we ignore those cells. i dont like transparent/opaque because they sound like an alpha thing like F=transparent 7=opaque. so i think "empty priority cell" is maybe correct egh.. i think i have settled for now on: "present/absent"/(adj: "presence") ="empty/non-empty" - when talking about layer contributions, a pixel is "present" if a layer contributes a non-transparent pixel. "sprite" - ambiguous? "sprite list" / "sprite ram" - the list in graphics ram which the sprites are rendered from "sprite [list] entry" - one item in the sprite list, consisting of 8 words todo: do we call these "words" or "fields"?. this can be a visible sprite and/or a command and/or setting the scroll position (but usually games only do one of these at a time) "sprite block" - a group of sprites positioned together using the block controls "block controls" / "tessellation controls" - controls the position of a sprite relative to the previous sprite and/or the y origin and x given position etc. "[y] block origin" - the origin of the current sprite block. technically this only has a y component, but abstractly it is easier to think of it as a point. "given position" / "regular position" / "current position" - this is just an abstraction, but basically during the sprite positioning pipeline, it's the current calculated position of the sprite. starting at the value specified in sprite ram, and then modified by the scrolls and block controls. todo: refine this. "tile" - the thing that a tilemap/pivot layer is composed of, represented by 32/16 bits in graphics ram "texture" ="character" - the bitmap that a sprite, tilemap tile, or text cell is rendered from. "pivot layer" - one of the graphics layers. 64x64 grid of 8x8px tiles, with textures defined in RAM. this layer has 2 modes: "text mode" and "pixel mode", which affect how textures are mapped to the tiles. in "text mode", a tile's texture is chosen based on its texture id, from a set of 256 textures. in "pixel mode", each tile in the first 32 rows (the bottom half of the layer reuses the same data) references a distinct texture, effectively creating a 512x256 bitmap image (though the pixels are in a strange order) note that the palette and flip attributes function the same in either mode. note: taito calls sprites "object"/"OBJ" and tilemaps "screen"/"SCR". i've elected not to use these names. "highcolor layer" ="mystery layer" - (todo: copy my definition i already wrote) "scroll" - the position of a tilemap. this is controlled by 2 components: the "global scroll" (set by the scroll registers) and a "local scroll" offset per-scanline (we have called the x component "rowscroll" and the y "colscroll", but i think these are misnomers). (also do you ever think about how we only use "scroll" to describe the position of tilemap, not sprites? welll i guess how i would think of it is, scroll controls the position of an entire group of things, as it does with sprites. while position means the position of the things within that group (so, the coordinates of a tile, or the position of an individual sprite)) "global scroll" "local scroll" ="scroll adjust" ="rowscroll"/"colscroll" (todo: which of these is better? i like scroll adjust because local sounds like it overrides global rather than adding to it. like with palette adjust / palette add. what if we call this "scroll add?" no because that sounds like what zoom is. zoom controls how much is added to the y scroll accumulator, and Adjust adjusts its position locally. hmm.. adjust also sounds like it has a persistent effect. hmm..) "palette adjust" ="palette add" - lineram feature where a value is added to the palette id "zoom" - resizing applied to a tilemap or sprite. be careful, because the units can vary (this is necessary for the math to work out; sometimes we keep a value as an inverse scale because it can go to "infinity" (0)) "scale" - only use this to refer to an intuitive mathematical scale factor. i.e. units of screen pixels per texture pixel. e.g. scale = 2 means an object appears twice as large on screen as its native size. "x"/"horizontal" - todo: decide when/if to use each of these "y"/"vertical" - same ALSO: how they behave grammatically; whether we write e.g. "x[-axis] zoom" (adjective) vs "zoom['s] x [component]" (component of) "data" - when we want to refer to e.g. "tilemap 0" vs "tilemap 0's data". or the location of the pivot layer's pixel data. "address"/"location" for some reason i have been saying location to mean address, not sure why. need to be consistent. pivot layer: pixel data address. say this 5 times fast. "index" - location /within/ a thing (e.g. "x index" - position along the x axis, "palette index" (if we used this) index within the palette.) "id"/"number" - location /of/ a thing within its list. e.g. "tilemap id" or "texture id" "offset" - do we use this? or is it always redundant. "scroll horizontal offset" is just "horizontal scroll" "nth bit" / "bit n" - the lsb is the 0th bit. e.g. "bit 4" is the same as the mask 0x10 "up/down" (and the like) - the y/vertical axis "left/right" (etc.) - the x/horizontal axis "front/back" "/behind" (etc.) - the z/priority/draw-order pseudo-axis TODO: - need terms to differentiate rendering sprites to the framebuffer vs rendering the framebuffer to the screen (e.g. "rendering" vs "displaying" or something) "flipscreen" - setting which applies a horizontal+vertical flip to /most/ aspects of rendering. (e.g. lineram is read in the opposite order) you still need to offset some things e.g. the range of visible scanlines changes, the sprite origin changes, etc. (theres a lot of things we have to re-test later with flipscreen enabled) AXES: - "x" / "horizontal" / "left/right" - "y" / "vertical" / "up/down" / "top/bottom" / "above/below" (note: we have to be careful, because "higher" in memory corresponds to "lower" on the screen) - "z" / "priority" / "draw order" / "in front/behind" / "forward/backward" (note that we are using stage directions for this axis. so e.g. the "back" is further away from the viewer, moving forwards is towards the viewer, etc.) this isnt a "real" axis, it's just an abstraction of draw order + draw priority. but useful to talk about. direction (left/right/up/down/back/front) relation (left of/right of/above/below/behind/in front of) extreme (left side/right side/top/bottom/back/front ugh whatever "scroll values" - for sprites, the 2 scroll offsets. called "global" and "subglobal". (there IS a hierarchy to them, so these names are maybe ok) todo: we need a better way to say like "position" when discussing sprite rendering. there are many "positions" (e.g. the raw 12-bit values read from sprite ram, vs after having scroll applied, v.s. the final rendered position.) which we have to distinguish between. maybe use my description with pos0-pos2 idk. or maybe some concept of a "cursor" which is where the sprite ends up rendered. different tesselation controls will reposition the cursor differently (possibly setting one of its components depending on whatever) units: "screen x pixels" "screen y pixels" = "scanlines" when it is not necessary to distinguish these, we may write "screen pixels" "texture x pixels" "texture y pixels" same as above, for "texture pixels" when we say "texture position" or "screen position", this is an affine quantity, assumed to be in texture pixels or screen pixels relative to the origin (TODO: what is the origin of the screen?) "scanline" as an affine quantity is the scanline (in screen y pixels, technically) relative to scanline 0 lets name the different registers: - line registers (set from line ram, per scanline) - sprite registers (set from sprite ram, per sprite) - NO - global registers / scroll registers ? (set via memory-mapped writes) "previous" (avoid "last") "current" "next"/"following" "first" "last"? when discussing storing a value in a register/variable we will say "write to " (NOT "set the destination to the value") this mirrors e.g. "add to "