recipePaperSwatches.scene
- .build.state16 B
- .metadata132 B
- README.md3.4 KB
- build.luau3.7 KB
- entrypoint.luau140 B
- scene.json519 KB
This package holds more than this page lists. See all of its files in its world.
README.md
Paper Swatches (Style Cookbook recipe scene)
Every paperBlocks paper under ONE stack: a watercolor wash with an ink pen line, each paper's swatch stand beside the reference picture of that paper, with a label saying what the paper does. A fairly low sun from the left front rakes across the stands, so the tooth, weave, fibres, ruling and chalk catch the light, and a strong sky fill keeps the toned and dark papers lit enough to show their put-on lights.
The stack (25 entries, earthy pigments, 8 drawings a second):
- The look:
wash(wcWash),bleed(wcBleed),shadow(wcShadowPool, density 0.35),grain(wcGranulation),dry(wcDryBrush, coverage 0.25),edge(wcEdgeDarken),line(inkPenLine, width 1.6) andboil(inkBoil). - The papers, one entry each:
p_hotPress(paperHotPress) first and unmasked, covering the floor and everything around the stands; thenp_coldPress,p_rough,p_board,p_vellum,p_rice,p_newsprint,p_notebook,p_sketchbook,p_parchment,p_canvas,p_kraft,p_tonedGrey,p_tonedTan,p_black,p_blackboardandp_greenChalkboard, each masked to a world sphere around its own stand (radius 2 m, soft 0.1). This is styleKit's layered grounds: the first Ground block covers everything, every later paperBlocks paper lays its sheet over it, and the washes and the line feel each region's own paper.
One change each:
- Another sheet on one stand:
StyleKit.swap("p_kraft", "paperTonedTan")(any paperBlocks paper swaps for any other). - Another base sheet for the whole floor:
StyleKit.swap("p_hotPress", "paperColdPress"). - Another line:
StyleKit.swap("line", "inkBrushLine"), or styleKit's pencil,StyleKit.swap("line", "sketchLine"). - Other pigments:
StyleKit.setPigments("coolMorning"). - One paper alone over the whole picture:
StyleKit.setMask("p_kraft", nil)(it then lies over every paper before it in the list).
The reference boards (design/references/paperstage/boards/<paper>Board) and the labels are left out of the stack by name (exclude = { "GalleryLabels", "ReferenceBoards" }), so each reference shows as drawn and every label reads clean, on a white card of its own. The stands, labels and stack entries are built by paperBlocks' own gallery builder (paperBlocks.PaperGallery), the same one the package's Gallery scene uses. Players get the normal setup (spawning in front of the swatches) and the StyleStack is synced, so every player sees the same papers. The RecipeView camera stands raised and far back on a 28 degree lens with every stand, board and label in the frame; give it the viewport with camera.setEditorOverride(entity.find("RecipeView").id). Load the scene with zero scene load scenes.recipePaperSwatches.
Cost: seventeen papers make 70 passes; a masked paper does no work outside its own sphere, so the swatch book measures about 14.7 ms of GPU time on high at 2097 x 1409, like the package's Gallery. It is a swatch book, not a stack for a game; a game picks one or two papers.
Known limits
- The look runs after antialiasing, so offscreen captures do not show it; read the presented frame (#17427).
- A two-client editor sometimes refuses to load two different scenes at once (#24666, #24667).
- A world boot can wait about 30 s on a network handshake before any content starts (#24669).
- The web build was not checked from here (#20946).