Skip to content
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

Mesh gets updated twice on "Random face sample" button #9

Open
patrikhuber opened this issue Apr 1, 2018 · 1 comment
Open

Mesh gets updated twice on "Random face sample" button #9

patrikhuber opened this issue Apr 1, 2018 · 1 comment
Labels
Milestone

Comments

@patrikhuber
Copy link
Owner

This is best visible by loading the BFM2017, and then drawing random samples. The mesh updates twice. I think this is because it first draws it without the expression mean, and then in the next frame updates it with the expression mean (or the other way round).
This was introduced when #5 was added.
Also related: #7.

@patrikhuber patrikhuber added the bug label Apr 1, 2018
@patrikhuber patrikhuber added this to the v0.2.0 milestone Apr 1, 2018
patrikhuber added a commit that referenced this issue Apr 1, 2018
Working in principle but a few issues are left - see #5, #7, #9.
@patrikhuber
Copy link
Owner Author

Investigated this a bit today. In case of the BFM: When the "Draw Sample" button is pressed, the shape_coefficients vector is of size 199. Subsequently passing through the rest of the code (i.e. the drawing of the "Coefficients" sliders), reduces that vector to a length of 30, draws a new sample with those coefficients, and displays that.

I don't have an idea for a "quick fix" immediately, ImGui forces a bit of a "spagghetti-code".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant