-
-
Notifications
You must be signed in to change notification settings - Fork 375
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
Glsl emscripten #92
Glsl emscripten #92
Conversation
axe312ger
commented
Aug 2, 2018
- add glm as dependency so users don't have to grab it on their own
- add some finding i had on another machien to the readme to help others
- fix makefile with our latest findings
src/projectM-emscripten/README
Outdated
### General | ||
|
||
Want to restart the process after pulling or changing config? | ||
* `rm src/projectM-emscripten/projectW*` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be a clean target
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any way to ensure this like a cleanup script?
src/projectM-emscripten/README
Outdated
# Easy way: | ||
# TLDR: | ||
* `./autogen.sh` | ||
* `emconfigure ./configure --enable-emscripten --enable-gles --enable-sdl` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i tried making it so all you need is --enable-emscripten
now and it infers the others
src/projectM-emscripten/README
Outdated
# TLDR: | ||
* `./autogen.sh` | ||
* `emconfigure ./configure --enable-emscripten --enable-gles --enable-sdl` | ||
* `emmake make -j4 -lvendor` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is -lvendor needed? that should be in CPPFLAGS or whatever.. -I
@deltaoscarmike chill? |
As is, it doesn't work:
You've got it working ? What is the status of this branch ? |
No, I never got it to fully run. But it's not a regression either; emscripten doesn't work in glsl now. It just gets a little closer to maybe working now |
Oops, i've made a mistake while trying to push a commit on this branch, please delete branch PR92. |
Thank you, I gonna have a look! |
Thats my Chrome console output. (It freezes, make sure to open the console first, then navigate to the server running emscripten I guess the shaders are still broken / using the wrong types. I tried to fix this 2 weeks ago but no, no luck. (Well fixing as of randomly changing values that seem to be related and 🤞 )
I wonder how to add presets to the wasm as well:
Thanks for your help 👋 |
WebGL is rather strict concerning implicit casts, this patch will fix blur shaders, re-enable WASM and print root content of the virtual filesystem. |
It works now!!! Thanks so much @deltaoscarmike |
87315d5
to
efca815
Compare
I fixed the merge conflicts :) |
Still need to read into the file system api for emscripten to get the presets running |
Re-enable shaders on modern platforms by transpiling HLSL to GLSL on the fly. Better GLES support. Running successfully on embedded systems with GLES and shaders. Compiles and almost runs with emscripten now (#92). Mega props 👏 => @deltaoscarmike <= 👏
Re-enable shaders on modern platforms by transpiling HLSL to GLSL on the fly. Better GLES support. Running successfully on embedded systems with GLES and shaders. Compiles and almost runs with emscripten now (#92). Mega props 👏 => @deltaoscarmike <= 👏
* add glm lib in vendor folder * fix makefile * add more help and context to emscripten readme * add correct output parameter to emcc * add how to restart the process to the readme * simplify emscripten compilation * apply patch * fix blur shaders to work with WebGL