6 ms·
Show HN: Fun with cell phone webcam and WebGL shaders
- jgeduldig 6y agohttps://acidicworks.github.io/AcidFilters/ https://acidicworks.github.io/AcidFilters/ I wanted to see if I could write shaders that do real-time filtering of a webcam for iOS and Android. Should work on any mobile device or computer. Just avoid Internet Explorer and Chrome on iPhones. I'd love to know what you think!
- anakaine 6y agoWell, it rashes my galaxy so, whose default browser is chrome. Also crashes the phone if using Brave. When I say crash, I mean I agree that the page can access the phone camera, then the page freezes, then next thing I know the screen is black folllwed by the phone booting up. The phone is on Android 10, fully patched, and very stable otherwise.
- jgeduldig 6y agoSorry about that. If I have time I'll look at Brave. As long as you have Chrome on Android, though, you should be fine.
- funkaster 6y agoare these supposed to be real time? they stop working after capturing a few frames
- Arctic_ 6y agoSame here, Safari on iPhone
- josteink 6y agoAnd with Firefox on iOS it’s not even managing to obtain camera access.
- matthewmacleod 6y agoI don’t know what causing that, but they work if you toggle video capture off and back on using the icon on the Safari menu bar.
- jgeduldig 6y agoYeah, I'd love to know why this happens. But, that is correct, simply reload the webpage or toggle to a different camera and you should be back in business.
- graiz 6y agoAmazing seeing what a big performance difference there is between Chrome and Safari on a Mac. It's clear that Chrome on a Mac isn't as hardware accelerated as I previously thought.
- asou 6y agoGreat work. If you can get these working as Unity post processing shaders I'd pay for it .
- jgeduldig 6y agoHmmm... I'm just getting started with Unity, so... maybe!
- FraKtus 6y agoThere are many more examples on the shader toy web site. https://www.shadertoy.com/results?query=webcam https://www.shadertoy.com/results?query=webcam It's running fine on my MacBook Pro with Chrome.