Open mwestphal opened 2 years ago
I've reworded this issue @Meakk, I thanks it is an important one.
Some data to test with: untitled.zip
stl:
glb:
dae:
fbx:
So there seems to be an issue specific to fbx, and a more generic issue with importers in general
Do you have an idea for a fix @Meakk ? If not will move it back
I don't have a solution right now, it will need some research
Unless I'm mistaken, we "just" need to recovert the right bounding box for the data. I think the mapper could compute it and provide it, what do you think @Meakk ?
Yes, we need to override ComputeBounds()
in the F3D mapper and take into account the bone positions.
Do you think you could improve the description in order to make it clear how this could be implemented ?
The bones transformation is not taken into consideration when VTK is computing the clipping planes. If there is a large scaling transform, clipping artifacts are visible.
Implementation details: The bounding box is computed in
vtkOpenGLPolyDataMapper
. We need to override the functionComputeBounds
invtkF3DPolyDataMapper
to take into account the bones and compute on the CPU the skinned vertex positions.