Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebXR: check for null render target (#15) #17

Merged
merged 1 commit into from
Jan 18, 2024
Merged

Conversation

idrisshah
Copy link

Related issue: #15

Description

Aframes does not render WebXR on Magic Leap browser. Magic Leap browser use WebXR layers but does not use OCULUS_multiview extension. As a result there is null check crash, when rendering an Aframes written WebXR content. Proposing a simple fix to resolve this issue.

This contribution is funded by Magic Leap

@idrisshah
Copy link
Author

@dmarcos Can you please review this pull request? This is a missing check in OCULUS_multiview extension usage patch. It breaks WebXR for Magic Leap browser.

@dmarcos
Copy link
Member

dmarcos commented Jan 18, 2024

@idrisshah Thanks so much. Has this been submitted to three repo? We might just need to rebase our fork?

@idrisshah
Copy link
Author

No, as i can see, the patch that causes WebXR to break was only merged to supermedium threejs. 2988e59. threejs repo does not have that patch.

@dmarcos
Copy link
Member

dmarcos commented Jan 18, 2024

Thanks so much!

@dmarcos dmarcos merged commit 0cc86c8 into supermedium:dev Jan 18, 2024
15 of 16 checks passed
Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Filesize dev Filesize PR Diff
664.5 kB (164.8 kB) 664.5 kB (164.8 kB) +0 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Filesize dev Filesize PR Diff
456.9 kB (110.7 kB) 456.9 kB (110.7 kB) +0 B

@idrisshah
Copy link
Author

@dmarcos Can you tell when this change will be in production? None of the webxr AFrame samples works without this change. Thanks

@dmarcos
Copy link
Member

dmarcos commented Jan 26, 2024

It will ship on next major version (1.6.0). I bumped super-three on A-Frame repo and you can now at least use master builds that include the fix. You can find the build URLs in the commit messages if you want to try:

https://github.com/aframevr/aframe/commits/master/

dmarcos pushed a commit that referenced this pull request Apr 1, 2024
dmarcos pushed a commit that referenced this pull request May 3, 2024
dmarcos pushed a commit that referenced this pull request Jun 3, 2024
dmarcos pushed a commit that referenced this pull request Sep 5, 2024
dmarcos pushed a commit that referenced this pull request Nov 8, 2024
dmarcos pushed a commit that referenced this pull request Nov 8, 2024
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