Can you point me to the aws link, so I can try it from my browser and see if I see errors?
Answer to your other questions: no it cannot track hand movements (the model is not trained to recognize a hand.) You can check distance between eyes (in pixels) to get an idea of how close or far the face is from the camera.
This algorithm is pretty GPU compute-intensive, so phones may not have enough of a GPU to have it work well (though I have tried on an iPhone XR and it works ok, but I mainly am using this on PC notebook and desktop for the game I am making.)
Hmm, I thought I removed all the cases, regardless, here's the outline effect to get you going:
construct.net/en/make-games/addons/265/outline
Do you have any console logs, so we can see the error? Is this when you build an apk? Does it work if you try remote preview?
Download the example again, I removed the need for the outline effect.
Good stuff - it would be great if you kept updating this on your road to high-level SDK/JS master.
You can create one from a photo with a depth map (recent iPhones with portrait mode include a depth map. You can create one by hand, here's an example: youtube.com/watch
Thanks! Do you mean off-screen? I think if it's not rendered, the glsl front sampler does not have access to it.
An updated version added 1.2.1.0, works in preview, see the example for changes required (weights now included in project files.)
C3 changed one of the APIs to load project files, I think this may be why it's not working. I will update the plugin for this.
This is great! Can you add a 'make visible' action (make it visible or not (transparent or not.))
Thanks for the comments. The model in this example does not run at real time speed on most systems, it takes a lot of compute. I am testing a new version which may run faster. You can save the points captured and compare past points vs current points to do a comparison.
Great JS examples, looking forward to more, the Scripting API details and community JS examples. Thank you for all the new features that have been coming out!
Great proposal to take advantage of the possibilities of the new C3 JS feature. There is a good educational coding aspect of adding more JS availability to C3, which is very welcome. In addition, Scirra, please also look to the more advanced JS users who this feature also targets, empower them to use the JS feature for very creative gamedev use (keeping with the understandable boundaries of the documented SDK.) For example, the Scriptable Object, Editor Properties Integeration and exposing the Draw replacement function would be very welcome. The changes such as adding a connection between JS/editor props may also make it easier for people to share their JS work with others who are still learning, but could handle dealing with the properties in editor instead of adapting and changing JS code directly. This is similar to how we handle GLSL effects now. We supply parameters / uniforms that game devs can use to modify GLSL shader parameters without having to know the GLSL shading language!
Can you try this test face api server and see if it works for you? Click 'Get Webcam' and then 'Face Detect' and wait a moment for it to initialize. Works for me w/ Chrome browser (with webgl support and decent GPU.)
kindeyegames.com/fra
Ok, that's a new error, let me see if I can track it down. Thanks for the report.
Member since 22 Apr, 2016