Hello MITK users,

I have a custom mapper Image2DVtkMapper3D for rendering 2D image as a plane
in a 3D scene with the vtkCamera placed precisely to mimic the real-life
camera that actually took the shot. This is working well, but now I would
like to take the viewport that I am rendering and mirror it horizontally. I
was able to get this to work with:

   vtkSmartPointer<vtkTransform> mirrorTransform =
vtkSmartPointer<vtkTransform>::New();
   mirrorTransform->RotateWXYZ(180, 0, 1, 0);
   camera->SetUserTransform(mirrorTransform);

But that breaks layering of objects in front of my 2D image plane object -
they are now occluded by the 2D image plane. I was able work around this by
disabling updates to the depth buffer in vtkOpenGLImageSliceMapper::Render
with:

  glDisable(GL_DEPTH_TEST);

But I know this is not the proper solution. So my question is what is the
proper MITK-ish solution here?

Thanks for any suggestions,
Taylor
------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to