-
Notifications
You must be signed in to change notification settings - Fork 201
Description
Environment
Please provide the following information about your environment:
- Development OS: Mac
- Device OS & Version: iOS any useable version
- Version: ViroReact version 2.21.1, RN Version 0.64.2
- Device(s): physical iPhone
Description
The chroma key filtering is useless, the range of colors it filters is far far too wide. Yes I've tried green, blue AND red screens. I've dug through the code of ViroCore to find the issue and it's in line 902 of VROShaderFactory.cpp.
chroma_threshold_sensitivity is set to a hardcoded value of 0.4 and ideally this is variable from the JS API but at the minimum this should be set to a more reasonable default.
This issue is compounded by the fact the documentation on how to build the whole library is minimal and out of date. I'm sure this project would get an influx of community support if there were some simple dev build instructions!
Update: I've built the library from scratch and confirmed that changing the aforementioned line to a lower value (0.1) does the trick. Issue still stands.
Reproducible Demo
Insert a green/blue/red screen video into AR using ViroReact and observe that too many colors are filtered out.