|
35 | 35 | * Each node has a type |
36 | 36 | * Fixture definition: tell where each pixture is in a 1D/2D/3D physical coordinate space (based on StarLight) |
37 | 37 | * Fixture mapping: change the fixture to a 1D/2D/3D virtual coordinate space |
| 38 | + * A fixture mapping is for a specific fixture dimension and effect dimension |
38 | 39 | * e.g. if the fixture is a globe, you can map that to 2D using mercator projection mapping |
39 | 40 | * if the fixture is 200x200 you can map it to 50x50 |
| 41 | + * if the fixture is 2D, a 1D effect can be shown as a circle or a bar (as WLED expand1D) |
40 | 42 | * Effect: run an effect in (part of) the virtual coordinate space |
41 | 43 | * or in the physical space if you want to run at highest performance, e.g. a random effect doesn't need to go through mappings ✅ |
42 | 44 | * Modifier: Mirror, rotate, etc, multiple projections allowed (projection in StarLight) |
|
45 | 47 | * Replace the nodes table (1) by a graphical view (2) |
46 | 48 | * Mapping model (3) |
47 | 49 | * Take the StarLight PhysMap as a start |
48 | | - * 2-bytes to 3-bytes to allow for > 16384 leds |
49 | | - * Mapping table is logical pixels |
50 | | - * ledsP is physical pixels (as in FASTLED) |
51 | | - * 1:0, 1:1, 1:many : each logical pixel can be mapped to no, 1 or many physical pixels) |
| 50 | + * Array of arrays. Outer array is virtual pixels, inner array is physical pixels |
| 51 | + * e.g. [[],[0],[1,2],[3,4,5],[6,7,8,9]] |
| 52 | + * first virtual pixel is not mapped to a physical pixel |
| 53 | + * second virtual pixel is mapped to physical pixel 0 |
| 54 | + * third virtual pixel is mapped to physical pixels 1 and 2 |
| 55 | + * and so on |
| 56 | + * CRGB leds[NUM_LEDS] are physical pixels (as in FASTLED) |
| 57 | + * Virtual pixels can be 1D, 2D or 3D. Physical pixels also, in any combination |
| 58 | + * Using x + y * sizeX + z * sizeX * sizeY |
52 | 59 | * Nodes manipulate the mapping model and/or interfere in the effects loop |
53 | 60 | * Presets/playlist: change (part of) the nodes model |
54 | 61 |
|
|
0 commit comments