The current implementation of scalismo.faces.parameters.ParametricRenderer does wrong back-face culling when the parameters describe a camera with the eye position not in the origin. The problematic lines are here.
While the mesh is transformed into camera coordinates, the eye position is passed in world coordinates. The solution is either to use here the origin as eye position in the camera coordinate system or to transform the mesh only to the world coordinate system by applying the parameter.pose transform instead of the parameter.modelViewTransform.
The current implementation of scalismo.faces.parameters.ParametricRenderer does wrong back-face culling when the parameters describe a camera with the eye position not in the origin. The problematic lines are here.
While the mesh is transformed into camera coordinates, the eye position is passed in world coordinates. The solution is either to use here the origin as eye position in the camera coordinate system or to transform the mesh only to the world coordinate system by applying the
parameter.pose
transform instead of theparameter.modelViewTransform
.