Closed MolianWH closed 2 years ago
I found the _resources.faceMeshTemplate.Vertices are all zero
Because it only contains index data. Vertices are given externally.
I'd recommend reading Visualizer.cs
and Visualizer.shader
in the FaceLandmarkBarracuda project.
Or use this branch. I'm not sure if it still runs (may be broken due to compatibility issues).
https://github.com/keijiro/FaceMeshBarracuda/tree/landmark-detector
Thanks. I will try it.
Thanks for your great work. I want to make a face texture for the face mesh. I set the
this.GetComponent<MeshFilter>().mesh = _resources.faceMeshTemplate;
in Visualizer.csOnPostRender()
function. but it not work. By the way, I found the_resources.faceMeshTemplate.Vertices
are all zero. So which mesh can set UVs and be shown? I am not very familiar with unity and CG. The above statement may be not very accurate. Could you please provide some ideas for that task? Thanks!example about what I want to implement