Currently ply files can not be loaded in MITK. This should change. Additionally it should be possible to apply a corresponding jpg texture to the loaded surface.
Description
Related Objects
- Mentioned In
- T27033: Clean up stale remote branches
Event Timeline
Loading of Ply and Obj files works.
Loading of textures and texture coordinates doesn't work. As far as I understand it, the texture coordinates are loaded correctly, but the rendering is somehow screwed.
A minimal VTK example is working fine the same texture coordinates. The data can also be opened by Meshlab.
Passing this to Capsar hoping that he might actually integrate it during bugsquashing some day in the future ;). Feel free to just close this.
Test data can be found in:
.../E130-Projekte/ToF/Thomas/ItSeezMeshes/Pitt/model_texture.jpg
.../E130-Projekte/ToF/Thomas/ItSeezMeshes/Pitt/model_mesh.ply
or also for OBJ:
.../E130-Projekte/ToF/Thomas/ItSeezMeshes/Pitt/model_mesh.obj
.../E130-Projekte/ToF/Thomas/ItSeezMeshes/Pitt/model_mesh.obj.mtl
When you load this data into meshlab, blender or the pure VTK example, it works. When you load this into MITK (using my branch) it does not work. If you flip the texture image, however, it works. So somewhere into our pipeline is a flip compared to other toolkits. I have no idea if there is any standard for this and also couldn't find any. I still think MITK should work like VTK in this case, since we use VTK for rendering.
I will push a branch with my current attempt to make this work.