-
Notifications
You must be signed in to change notification settings - Fork 535
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
Facefilters not working on N5001 #163
Comments
Thanx for your bug report. To do deep learning we need to be able to do render to texture with FLOAT (32 bits) or HALF_FLOAT (16 bits) precision. If WebGL2 is fully implemented, this is guaranteed. Unfortunately some WebGL2 implementation do not allow to do this. In many cases WebGL2 is still here in the web browser, but in fact it is not fully implemented. Sometimes the GPU is not able to do RTT with 16 or 32 bits precisions, sometimes it is because of the driver. In our lib, we do the test at init, if we can really do render to texture with 16 or 32 bits precision. If not, it returns a GL_INVALID or something like that error. Are you sure that getUserMedia API is working to get the webcam video stream ? However, even if there was no compatibility issue, the experience won't be very good. |
|
The library is minimized, hard to extract this piece of code for testing. But also in production it would be useful to have a small library or piece of code for testing if Facefilters would work at all, so we don't even need to load the library in case it's not supported. Could you extract the piece which tests for this? |
Lukas constructed the following logic for testing upfront if FaceFilters would run on a device. It works well for the N5001 and other devices we have here.
Could you please state if the logic is good or can we make the result more tight by using OR between the 16bit and 32bit version of functions, like here:
|
I have commited some changes, and fixed an undefined behavior, there is a little chance that it would fix the bug on the N5001. Can you try again? Thanx, |
Hi Xavier, sure. You want me to run this here again? |
Hi @oliverhausler Please open it in a private tab to be sure that the browser cache does not keep an outdated version. |
It's not working. The camera asks for permissions and I see the camera icon in the status bar, but then nothing else comes up. |
Thanx for the testing |
Yeah, no worries. Let me know if you want me to run anything else. |
Hi, |
Sure, if you tell me what to do :) Want me to run this on the N5001? https://jeeliz.com/demos/faceFilter/demos/threejs/cube/ |
Can you open https://jeeliz.com/demos/faceFilter/demos/threejs/cube/ in a private browser tab to avoid any cache problem. I have just updated it |
Doesn't seem to be working. Camera permission is requested and when I confirm I see the white background with some drawings and the GitHub banner, nothing else. Oh, and I see the camera icon in the task bar, which I think means the cam is active. |
Thank you for testing. I still don't see where the bug could come from :( |
Hi, I have changed many stuffs in the core. Thank you very much |
Same, feeling sorry. Camera permissions requested, and then nothing except the page background. |
Thank you very much for your test.
Thank you very much. |
Posting it here. Hope it helps!
You are not doing this for me, right? I don't need it to run on this phone. I only thought you may want to know. I have that phone only to check compatibility for our app, nothing more. |
Thank you very much for your feedback. I have added more tests (with different GL parameters). Can you test again (in a new private window in order to avoid any browser cache problem): https://jeeliz.com/demos/WebGLCoreLogger/index.html Thank you very much, |
@xavierjs Here you go:
|
Thank you. It really does not want to render to texture with float / half-float precision =( |
Well, who can blame them on that device :) |
@xavierjs Feel free to send further testing jobs if you have. You also have my email address in case. |
Okay, the N5001 is a junk phone, but I thought you may want to know Facefilters are not working despite WEBGL2 being reported as available on this phone!?
Sorry for the junk quality, but this is the original resolution from the phone, lol.
The text was updated successfully, but these errors were encountered: