Skip to content

feat: Pixi pour stage for Cosmonaut’s Bar - #39

Open
CosmonautJones wants to merge 26 commits into
mainfrom
cursor/cocktail-mixer-pixi-pour-5c83
Open

CosmonautJones wants to merge 26 commits into
mainfrom
cursor/cocktail-mixer-pixi-pour-5c83

Conversation

@CosmonautJones

@CosmonautJones CosmonautJones commented Sep 5, 2026 •

Copy link
Copy Markdown
Owner

The pour stage is now seated on the painted glass instead of leftover SVG numbers.

What changed

  • Liquid fill follows the live bowl width and stops above the stem (no more juice in the margarita stem).
  • Stream is one neck-to-surface curve from the bottle on the right, with a fade in/out and a meniscus dip at contact.
  • Ice sits on the bowl floor (rocks) or stacked up the highball, clipped inside the mask.
  • Garnishes perch on the right rim with per-plate anchors instead of floating in the drink.
  • Foam stays inside the bowl. Displacement map is no longer drawn as a smear.
  • Removed the free-floating rim-highlight.png sprite (the gray S-curve hanging in empty air to the left of the glass). Front glass plates already bake the key light. Condensation is clipped to the measured bowl and masked. Hidden MeshRopes collapse onto the bottle neck so leftover ribbons cannot hang.

Preview: once Netlify rebuilds, /work/cocktail-mixer on this PR.

Mixer tests included. Full suite: 924 passing. Build passed.

Open in Web Open in Cursor 

cursoragent and others added 22 commits September 5, 2026 22:25
Replace the GSAP-on-SVG pour picture with a painted 2D Pixi stage.
GSAP stays the clock. Recipes, unlock, and XP stay. No 3D.

Co-authored-by: Travis Jones <travisj_jones@hotmail.com>
Fix compositing sandwich, pouredCount contract, v8 init/load,
missing textures, story-clock vs ticker, and POUR_FINISH so the
Cosmonaut extra finishes before allDone.

Co-authored-by: Travis Jones <travisj_jones@hotmail.com>
Two MeshRopes, horizontal stream texture, swirl vs vortex draw,
PourDirector after async init, applyFinished still, Paloma foam.

Co-authored-by: Travis Jones <travisj_jones@hotmail.com>
TDD clock and bounds first, then plates, rig, GSAP director,
and delete the SVG stage.

Co-authored-by: Travis Jones <travisj_jones@hotmail.com>
Co-authored-by: Travis Jones <travisj_jones@hotmail.com>
Co-authored-by: Travis Jones <travisj_jones@hotmail.com>
Co-authored-by: Travis Jones <travisj_jones@hotmail.com>
Co-authored-by: Travis Jones <travisj_jones@hotmail.com>
Co-authored-by: Travis Jones <travisj_jones@hotmail.com>
Co-authored-by: Travis Jones <travisj_jones@hotmail.com>
Co-authored-by: Travis Jones <travisj_jones@hotmail.com>
Co-authored-by: Travis Jones <travisj_jones@hotmail.com>
Co-authored-by: Travis Jones <travisj_jones@hotmail.com>
Co-authored-by: Travis Jones <travisj_jones@hotmail.com>
Co-authored-by: Travis Jones <travisj_jones@hotmail.com>
Co-authored-by: Travis Jones <travisj_jones@hotmail.com>
Co-authored-by: Travis Jones <travisj_jones@hotmail.com>
Co-authored-by: Travis Jones <travisj_jones@hotmail.com>
Co-authored-by: Travis Jones <travisj_jones@hotmail.com>
Disable Pixi ImageBitmap workers so the mixer can load plates under the
site CSP (no worker-src/blob) instead of falling back to the CSS still.

Co-authored-by: Travis Jones <travisj_jones@hotmail.com>
Adapt Pixi's CSP-safe particle polyfill so ParticleBuffer Records render
splash, foam, and motes without widening script-src.

Co-authored-by: Travis Jones <travisj_jones@hotmail.com>
Co-authored-by: Travis Jones <travisj_jones@hotmail.com>
@cursor cursor Bot changed the title docs: Pixi pour spec for Cosmonaut’s Bar feat: Pixi pour stage for Cosmonaut’s Bar Sep 8, 2026
@CosmonautJones
CosmonautJones marked this pull request as ready for review September 8, 2026 11:41
cursoragent and others added 4 commits September 8, 2026 21:16
Remeasure mask interiors so liquid stays out of stems, the stream is one
neck-to-surface curve from the bottle, ice rests on the bowl floor, and
garnishes perch on the right rim instead of floating in the drink.

Co-authored-by: Travis Jones <travisj_jones@hotmail.com>
Ice now fills the tall glass instead of clumping on the floor. The
displacement map is not drawn as a smear, and the left rim stroke is
quieter so it does not read as a leftover pour.

Co-authored-by: Travis Jones <travisj_jones@hotmail.com>
The left-side squiggle was rim-highlight.png, an unmasked S-curve sitting in empty air. Front glass already bakes the key light. Condensation now clips to the measured bowl and lives under the interior mask. Hidden MeshRopes collapse onto the neck so leftover ribbons cannot hang, matching Pixi's live-point rope pattern.

Co-authored-by: Travis Jones <travisj_jones@hotmail.com>
The S-curve plate hanging in empty air was a free sprite, not a pour. Keep it off the scene graph.

Co-authored-by: Travis Jones <travisj_jones@hotmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants