-
Notifications
You must be signed in to change notification settings - Fork 33
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
Fix multiview #22
Fix multiview #22
Conversation
📦 Bundle sizeFull ESM build, minified and gzipped.
🌳 Bundle size after tree-shakingMinimal build including a renderer, camera, empty scene, and dependencies.
|
Yeah. multiview worked at some point. The code is a bit tricky to maintain. Question if it's worth keeping |
* Update WebXRManager.js * Update WebGLRenderer.js * Update WebGLRenderer.js deleted useless blank lines * Update WebXRManager.js - Deleted useless code and blank lines - refectored _getRenderTarget to getRenderTarget * Update WebGLRenderer.js Reflect the refactoring of getRenderTarget function Improve compatibility of Post-Processing with VR (mrdoob#23) * Update EffectComposer.js for better compatibility with VR * Update Pass.js for better compatibility with VR
needs rebase |
@dmarcos rebased
There is value in the feature, but given its many caveats it almost requires you to develop with it on from the start. But I expect most users only stumbling upon this feature later in development, trying it, noticing a regression in their app, and turning it off again. |
Yeah. If people use it happy to keep but hard to know. If Meta helped promote it and A-Frame with it could be also worth it. Not sure yet what to do. |
Your call, merge this PR or revert the two commits. Otherwise scenes are completely broken with stencil:true since r173 for me. |
c965ee5
to
aacca17
Compare
Thanks. I folded this into the multiview commit to keep things organized. The fix should be out in super-three r173.2 |
Thanks. Next time you can also squash 1aba49d into the multiview commit, that's a fix for the introduced multiview changes actually. |
done |
@dmarcos I'm not sure what you did, aframe master with 0.173.3 |
The build folder in super-three branch super-r173-2 and super-r173-3 are the same, so that's okay here. |
Something went wrong when publishing on npm. I might have published before generating the new builds by mistake. Sorry for that. I published r173.4 and A-Frame is also updated. Let me know if it works. |
Human mistake, bot wasn't implicated ;) All good now. |
Related issue: #21
Description
The multiview changes appear to be in a broken state (did it ever work in an A-Frame release?), causing two distinct problems:
multiviewStereo: true
had no effect as the flag was never passed along to theWebXRManager
stencilBuffer
with multiview stereo disabled, it would no longer setup the depth/stencil attachment.This PR fixes both issues. We should probably be more careful when rebasing these changes onto new Three.js releases, as I suspect that is how the second issue slipped in. A closer look might be warranted to ensure the code hasn't diverged in other places as well.