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

Sliders have to change the mesh #5

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

Sliders have to change the mesh #5

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

Comments

@patrikhuber
Copy link
Owner

patrikhuber commented Apr 1, 2018

The displayed model cannot be changed yet by adjusting the individual sliders.

We should probably do that inside the coefficients sliders drawing code. There, we know that we've got valid coefficients, if that code path is executed.
We can map a shape or colour instance to igl like this:

Eigen::Map<Eigen::MatrixXf> shape_reshaped(shape.data(), 3, num_vertices);
// Take 3 at a piece, then transpose below. Works.
viewer.data.set_vertices(shape_reshaped.transpose().cast<double>());

Note: This code will actually fail for gray-level models.

Also, maybe this can be improved based on ocornut/imgui#1716.

@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.
@gogobush
Copy link

Hi patrikhuber,
Thanks your great code, and it is really cool.
I could build EOS viewer completely from branch, but the viewer only cloud open obj file from EOS without texture. No any face color there. Cloud you show me how to import model just like the readme page's picture? Thank you.

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

No branches or pull requests

2 participants