-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Text not rendering in VR mode #5260
Comments
Does this work? https://glitch.com/edit/#!/nifty-aquamarine-dugong?path=index.html%3A9%3A8 What about VR with no cardboard on headset like the Quest? FYI, Cardboard mode is now deprecated in 1.4.1 on devices / browsers without a WebXR implementation like Webkit / iOS |
I can't see the VR Button because |
It might be a clipping issue. nothing to do with the shader. I updated the example: https://glitch.com/edit/#!/nifty-aquamarine-dugong?path=index.html%3A23%3A38 What I was trying to also say is that there are no plans so further support cardboard mode. That's why it's disabled by default in 1.4.1 and will be removed in future. |
I've checked your example and I can only see the second text ( |
Cardboard when the webxr API is not available (iOS and some Android devices) is deprecated. I'm closing this but we should address if reproduces on a headset. |
I can reproduce this on a headset, with |
@coderofsalvation Could you provide a minimal reproduction (e.g. a Glitch: https://glitch.com/~aframe)? I wasn't able to reproduce it with a simple scene on either a Quest 2 or a Quest 3. The text was visible both in non-immersive mode and during the immersive session. So there might be something else going on in your case. <a-scene background="color: black" renderer="colorManagement: true; multiviewStereo: true">
<a-text position="0 2.0 -1.2" value="Hello World"></a-text>
</a-scene> If there is an issue with text + multiviewStereo, it's probably best to track it in a new issue as this one is specifically about Cardboard which doesn't support multiviewStereo and there have been many improvements/changes to the text component and shader since (see #5311, #5328, #5357, #5409) |
iirc it was when adding it to this codepen: https://codepen.io/coderofsalvation/pen/yLwedvX |
Thanks, the problem isn't with the text per se, but with the way your app renders a frame. With multiview you're not allowed to perform any texture operations once rendering has started. From the A-Frame docs:
The workaround implemented in A-Frame's fork of Three is to defer texture uploads to the end of the render method. This works for as long as a single frame is rendered with a single This drawback is a key reason why support for multiview hasn't landed in Three.js upstream (yet). You'll either have to ensure all texture operations take place before rendering or defer them till after you're done with the frame. The latter would require some changes in the |
Thank you for the deep analysis. |
Description:
I'm trying to make a VR application for the browser & cardboard. I'm trying to show up some text, but every time I go to the VR mode, I just can't see it. I see the text in 3D mode, but once I click on the cardboard mode, all the text just disappears. I've tried a previous version (0.9.2) of A-Frame and it seems to work just fine. You can just copy and paste the example code from the documentation and it would not work.
I've also tried different web browsers, but I get the same result. Any help?
<a-entity text="value: Hello World;" rotation="0 90 0" position="-8 5.6 -4" scale="13 13 13"></a-entity>
The text was updated successfully, but these errors were encountered: