Skip to content

fix(📷): support for external texture#359

Draft
wcandillon wants to merge 37 commits into
mainfrom
external-texture
Draft

fix(📷): support for external texture#359
wcandillon wants to merge 37 commits into
mainfrom
external-texture

Conversation

@wcandillon
Copy link
Copy Markdown
Owner

@wcandillon wcandillon commented May 19, 2026

  • document
  • add back to Skia

@wcandillon wcandillon changed the base branch from main to shared-memory-texture May 19, 2026 09:33
@wcandillon wcandillon changed the base branch from shared-memory-texture to main May 20, 2026 04:41
wcandillon and others added 19 commits May 20, 2026 06:58
# Conflicts:
#	apps/example/src/App.tsx
#	apps/example/src/Home.tsx
#	apps/example/src/Route.ts
#	apps/example/src/SharedTextureMemory/SharedTextureMemory.tsx
#	packages/webgpu/android/cpp/AndroidPlatformContext.h
#	packages/webgpu/apple/ApplePlatformContext.h
#	packages/webgpu/apple/ApplePlatformContext.mm
#	packages/webgpu/apple/AppleVideoPlayer.h
#	packages/webgpu/apple/AppleVideoPlayer.mm
#	packages/webgpu/cpp/rnwgpu/PlatformContext.h
#	packages/webgpu/cpp/rnwgpu/api/GPUDevice.h
#	packages/webgpu/cpp/rnwgpu/api/GPUSharedTextureMemory.cpp
#	packages/webgpu/cpp/rnwgpu/api/RNWebGPU.h
#	packages/webgpu/cpp/rnwgpu/api/VideoFrame.h
#	packages/webgpu/cpp/rnwgpu/api/VideoPlayer.h
#	packages/webgpu/src/Canvas.tsx
#	packages/webgpu/src/index.tsx
# Conflicts:
#	apps/example/ios/Podfile.lock
#	apps/example/package.json
#	apps/example/src/App.tsx
#	apps/example/src/Home.tsx
#	apps/example/src/Route.ts
#	yarn.lock
Replace the per-frame fromEquirectangularTexture blit with a real
THREE.CubeCamera that renders a layer-1-only sky sphere wearing the
worklet-updated camera feed. The reflection now picks up any scene
geometry placed on layer 1, not just the panorama itself.

https://claude.ai/code/session_01Sgh5mWoT9XBAYQotQFf94g
@mrousavy
Copy link
Copy Markdown
Contributor

fire!!!

claude and others added 2 commits May 27, 2026 13:42
The front camera is a narrow-FOV image, not a 360° environment, so wrapping
it equirectangularly produces an obviously fake "your face is the world"
look. Treat the frame as a virtual screen at the viewer's location instead:
a billboarded plane sized at the camera's natural 9:16 aspect that tracks
the orbit camera each frame. The CubeCamera at the helmet's center bakes
that plane into the cube faces, so surfaces facing the viewer pick up the
user's face the way a real chrome object would, while a soft hemisphere-
gradient backdrop fills the rest so grazing reflections don't fall to
black. Env texture changes from 1024×512 (stretched equirect) to 540×960
(matches the rotated frame's aspect — no more distortion).
@wcandillon
Copy link
Copy Markdown
Owner Author

@copilot resolve the merge conflicts in this pull request

Copy link
Copy Markdown

Copilot AI commented Jun 1, 2026

@copilot resolve the merge conflicts in this pull request

Resolved the merge conflicts and merged origin/main into this branch in commit f02bfe2.

@wcandillon wcandillon marked this pull request as draft June 1, 2026 16:24
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