patrikhuber / eos

A lightweight 3D Morphable Face Model library in modern C++
Apache License 2.0
1.89k stars 596 forks source link

New `extract_texture(...)` is missing alpha-channel weighting #308

Open patrikhuber opened 4 years ago

patrikhuber commented 4 years ago

In the devel branch, in 08cba284b544ea02557dd3ff1d31316bff7503f8, I replaced the old extract_texture(...) with the newer v2::extract_texture(...), and made the new one the default by removing the v2:: from the namespace. See the commit messages of 08cba284b544ea02557dd3ff1d31316bff7503f8 and 8fd1735e2dad0f676b78c08b5a884fe818fc433a for more information.

The thing to note here is that the new function does not (yet) support computing and outputting the view-angle based weighting, which was previously output in the alpha channel. This has to be re-added. To be consistent with the old implementation, the visibility in the 4th channel was 0=invis, 255=visible.