Skip to content

feat(anari): add interactive ray tracing budget - #3004

Merged
ibgreen-openai merged 3 commits into
masterfrom
codex/anari-interactive-ray-tracing
Aug 7, 2026
Merged

feat(anari): add interactive ray tracing budget#3004
ibgreen-openai merged 3 commits into
masterfrom
codex/anari-interactive-ray-tracing

Conversation

@ibgreen-openai

Copy link
Copy Markdown
Collaborator

Goals

  • Make ANARI ray tracing interactive by default on CORE WebGPU.
  • Preserve animated scenes, HDR presentation, and application-owned GPU command submission.

Changes

  • Add half-resolution defaults, adaptive 30 FPS budgeting, quantized scale changes, and 1/2/4 interleaved pixel coverage.
  • Split GPU acceleration and trace graphs so camera-only and lighting-only frames reuse retained BVH buffers.
  • Add cached triangle extraction, stable instance identities, previous transforms, temporal reprojection, depth/normal rejection, neighborhood clamping, and per-pixel sample counts.
  • Add bounded rotating shadow-light sampling with shadowSamplesPerFrame: 0 as the all-lights opt-out.
  • Expose ray-tracing quality controls and diagnostics through ANARI types, strict schemas, both examples, and docs.

Verification

  • node_modules/.bin/tsc --build modules/*/tsconfig.json --pretty false
  • Focused ANARI + experimental node suite: 19 files / 116 tests passed.
  • ANARI showcase production build: 1,653 modules transformed.
  • Targeted Biome checks and git diff --check.
  • Real CORE WebGPU browser run: 312 instances, one draw, adaptive 75% → 50% internal resolution, settled around 23 ms/frame, no app-side WebGPU validation errors.

Limits

  • Object/instance BVH traversal is source-ordered; triangles inside surviving meshes remain linear.
  • No hardware ray tracing, Morton ordering, per-mesh BVHs, indirect bounces, denoising, or volume tracing yet.

@ibgreen-openai
ibgreen-openai force-pushed the codex/anari-interactive-ray-tracing branch from 7c542d4 to 25582a9 Compare August 6, 2026 20:56
@ibgreen-openai
ibgreen-openai marked this pull request as ready for review August 6, 2026 20:58

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 25582a9e2e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread modules/experimental/src/engine/ray-tracing-scene-renderer.ts
Comment thread modules/experimental/src/engine/ray-tracing-scene-renderer.ts
Comment thread modules/experimental/src/engine/ray-tracing-scene-renderer.ts Outdated
@ibgreen-openai
ibgreen-openai force-pushed the codex/anari-interactive-ray-tracing branch from 2d18920 to c236cf1 Compare August 7, 2026 00:21
@ibgreen-openai
ibgreen-openai merged commit b9abf46 into master Aug 7, 2026
6 checks passed
@ibgreen-openai
ibgreen-openai deleted the codex/anari-interactive-ray-tracing branch August 7, 2026 00:31
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