dgp
dgp copied to clipboard
[2% bonus] Parameterization inpector
note: If you plan to work on this bonus question please reply to this message, only the first correct submission will be accepted.
I would like to have a small application to show the distortion a parameterization (discussed when we talked about the first fundamental form) causes around a point. Starting from the OpenGP multi-window example, build an application to realize this kind of visualization:
On the left you'll show the texture map [0,1]x[0,1] of the model, on the right you'll show the 3D model. When the mouse is moved in the texture map window a red circle is displayed at the mouse location, and mapping of this circle to the 3D surface is displayed.
I remain available to answer any question you might have.
Tasks:
- [ ] Fix OpenGP so it can import texture atlases
- [ ] Display a texture atlas'd mesh in the 3D viewer
- [ ] Modify the multiwin viewer to manage events
- [ ] Modify the fragment shaders so that the circle overlay is drawn