Skip to content

fix(examples): use bundled Scenegraph flight snapshot - #10476

Merged
Pessimistress merged 3 commits into
masterfrom
codex/scenegraph-example-local-data
Aug 20, 2026
Merged

Pessimistress merged 3 commits into
masterfrom
codex/scenegraph-example-local-data

Conversation

@ibgreen-openai

@ibgreen-openai ibgreen-openai commented Jul 23, 2026 •

Copy link
Copy Markdown
Collaborator

Goal

opensky URLs now seem to fail due to CORS restructions.
Make the Scenegraph website example load reliably even when the OpenSky browser API is unavailable.

Changes

  • Start from the bundled all.json flight snapshot so the example renders immediately.
  • Try the live OpenSky endpoint once, then keep the bundled snapshot if the request is blocked by CORS or otherwise fails.
  • Normalize data without mutating the imported snapshot.
  • Remove the interval/update loop that could create repeated fetch failures.
  • Rename the demo from “Realtime Flight Tracker” to “Flight Tracker” and document the fallback behavior.

This PR intentionally contains only example/data-source behavior. The ScenegraphLayer WebGPU port is split into a separate stacked PR.

Validation

  • yarn lint (passes with existing repository warnings only)
  • yarn test-website

@coveralls

coveralls commented Jul 23, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 82.159% (-0.004%) from 82.163% — codex/scenegraph-example-local-data into master

@ibgreen-openai
ibgreen-openai marked this pull request as ready for review July 23, 2026 22:12
@ibgreen-openai
ibgreen-openai force-pushed the codex/scenegraph-example-local-data branch from ba6afdf to 44751f7 Compare July 27, 2026 20:22
@ibgreen
ibgreen force-pushed the codex/scenegraph-example-local-data branch from 80b959e to 5bac2f5 Compare August 1, 2026 18:04
@ibgreen ibgreen added this to the v9.4 milestone Aug 2, 2026
@Pessimistress

Copy link
Copy Markdown
Collaborator

Can you enable render tests in test/render/test-cases/scenegraph-layer.spec.ts and run test-webgpu.

WebGL:
scenegraph-layer-duck-flat
WebGPU:
scenegraph-layer-duck-flat-fail

WebGL:
scenegraph-layer-frame-1
WebGPU:
scenegraph-layer-frame-1-fail

@Pessimistress
Pessimistress force-pushed the codex/scenegraph-example-local-data branch from 5bac2f5 to 49a46ff Compare August 20, 2026 18:41
@greptile-apps

greptile-apps Bot commented Aug 20, 2026 •

Copy link
Copy Markdown

Greptile Summary

The PR makes the Scenegraph flight example render from a bundled snapshot before attempting one live OpenSky request, while also adding the ScenegraphLayer WebGPU rendering path.

  • Adds immutable normalization and failure fallback for the flight snapshot.
  • Adds WGSL shaders, WebGPU-compatible uniforms, material integration, picking, and render coverage.
  • Updates WebGPU support documentation and the website example metadata.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
examples/website/scenegraph/app.tsx Initializes the example from cloned bundled data, attempts one abortable live request, and retains the snapshot on failure.
modules/mesh-layers/src/scenegraph-layer/scenegraph-layer.ts Selects backend-specific shaders and materials, configures WebGPU pipeline parameters, and supplies numeric cross-backend uniforms.
modules/mesh-layers/src/scenegraph-layer/scenegraph-layer.wgsl.ts Implements the WebGPU vertex and fragment paths for transforms, materials, picking, and highlighting.
modules/mesh-layers/src/scenegraph-layer/scenegraph-pbr-material.ts Adapts the luma.gl PBR WGSL module to deck.gl projection inputs.
test/render/test-cases/scenegraph-layer.spec.ts Extends ScenegraphLayer rendering coverage for the newly supported WebGPU backend.
website/src/examples/scenegraph-layer.js Renames the example and updates its website-facing description to reflect snapshot fallback behavior.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Scenegraph example mounts] --> B[Normalize bundled flight snapshot]
  B --> C[Render snapshot immediately]
  C --> D[Attempt one OpenSky request]
  D -->|Success| E[Normalize and render live data]
  D -->|Failure or CORS rejection| F[Retain bundled snapshot]
  C --> G[ScenegraphLayer]
  E --> G
  F --> G
  G --> H{Graphics backend}
  H -->|WebGL| I[GLSL scenegraph shaders]
  H -->|WebGPU| J[WGSL scenegraph shaders]
Loading

Reviews (5): Last reviewed commit: "enable webgpu render tests" | Re-trigger Greptile

@ibgreen
ibgreen force-pushed the codex/scenegraph-example-local-data branch from 49a46ff to e88336e Compare August 20, 2026 19:00
@Pessimistress
Pessimistress force-pushed the codex/scenegraph-example-local-data branch from e88336e to ea01425 Compare August 20, 2026 21:37
@Pessimistress
Pessimistress changed the base branch from master to x/constant-attr-2 August 20, 2026 21:37
@Pessimistress
Pessimistress force-pushed the codex/scenegraph-example-local-data branch from ea01425 to 2b81a1a Compare August 20, 2026 21:44
Base automatically changed from x/constant-attr-2 to master August 20, 2026 22:13
@Pessimistress
Pessimistress force-pushed the codex/scenegraph-example-local-data branch from 2b81a1a to a429334 Compare August 20, 2026 22:16
@Pessimistress
Pessimistress merged commit 591748d into master Aug 20, 2026
7 checks passed
@Pessimistress
Pessimistress deleted the codex/scenegraph-example-local-data branch August 20, 2026 22:33
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.

4 participants