Page MenuHomePhabricator

Enable loading of textures with ply surfaces
Closed, WontfixPublic

Description

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.

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.

VTK example to load a textured surface

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.

User kilgus has pushed new remote branch:

bug-18109-TmpWorking
kislinsk claimed this task.
kislinsk added a subscriber: kislinsk.
This task was automatically closed because it wasn't updated at least since July 2016 (over 2 years). Please re-open this task if you think that it is still relevant. This most probably means that you will resolve it.