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
WASM demos on Mac OS X #33
Comments
What OS and browser? On Ubuntu 18.04 LTS, Chrome 78.0.3904.97, it works. |
MacBook Pro 2019, Firefox. Can’t get the exact version right now. |
Does the example run if I you use an HTTPS link? I added SSL to the host a while back, and have slacked on adding it to all of the links in the book (and whenever I point people at the tutorial). https://bfnightly.bracketproductions.com/rustbook/wasm/chapter-61-townportal/ |
Tried both http and https in latest Firefox, Chrome and Safari on MacBook Pro, Catalina v10.15.1 2,3 GHz Dual-Core Intel Core i5 All I get is this black screen. It's probably not related to the "connection not secure" warning then so feel free to change the title. I checked on a different, older MacBook and couldn't get it to work there either. Has anyone with a macOS machine gotten it working? |
I'll see if I can borrow my wife's Macbook this evening to give it a look. Hopefully, I didn't pick a GL mode that isn't happy on OS X! |
I managed to get to use a Mac last night, and can confirm that this is an RLTK-level issue: the canvas opens, the WASM executes and logs keystrokes, but nothing gets rendered - just a black box. I'll open an RLTK issue and link it to this one, and see about getting a library-level fix in ASAP. |
I believe the issue is fixed in RLTK, pulling and rebuilding the tutorial now. |
The RLTK changes ended up being very substantial; there's basically a whole new WebGL pipeline now. It's single-pass (or one pass per console layer), the post-process is integrated into the main loop, and it works by sampling dynamic textures rather than a giant vertex buffer - so it's really rather fast. If anyone could confirm that they are working on a real Mac, I'd appreciate it! |
Just confirmed it’s working, thanks so much for the quick turnaround! 👏 Latest Firefox and Chrome both work. Safari does not, which I assume is because their WASM support remains incomplete. |
I'll go ahead and close this out, then. Thanks! (I'm told that Safari support is a pipe-dream, due to lack of WebGL 2 support - so I won't stress that one.) |
I'm getting this when I'm trying to run the demo:
The text was updated successfully, but these errors were encountered: