[vtkusers] Mirroring the scene

Dirk Fortmeier fortmeier at imi.uni-luebeck.de
Thu May 12 11:42:00 EDT 2011


I tried that, but with the same results. No other ideas? I am actually
thinking about writing a fragment shader...

Regards,
Dirk

On Wed, 2011-05-11 at 08:12 -0400, Aashish Chaudhary wrote:
> Not looking into vtk code Projection transform would not affect the normals..
> 
> Can you try SetUserViewTransform	instead of SetUserTransform(..) and
> see if that works for you?
> 
> 
> On Wed, May 11, 2011 at 6:56 AM, Dirk Fortmeier
> <fortmeier at imi.uni-luebeck.de> wrote:
> > Hi all,
> >
> > for using VTK in a special Hardware setup, I need to mirror the
> > rendering output of VTK in y-direction. My first thought was to use
> > camera->SetUserTransform() together with a scaling transform (y-scaling
> > set to -1) to mirror the projection matrix. Without lighting this works
> > fine but using lighting things get messed up. To me it looks like the
> > normals are not affected by the projection or something like that.
> >
> > Is there an other way to do mirroring or does someone know how to fix
> > the issue?
> >
> > Regards,
> > Dirk
> >
> > --
> > Dirk Fortmeier <fortmeier at imi.uni-luebeck.de>, PhD Student
> >
> > Institute of Medical Informatics
> > Graduate School for Computing in Medicine and Life Sciences
> > University of Lübeck
> >
> > Building 64, 2F, Room 4
> > Ratzeburger Allee 160
> > 23538 Lübeck
> > Germany
> >
> > Tel.:+49 (451) 500-5635
> > Fax.:+49 (451) 500-5610
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
> 
> 
> 

-- 
Dirk Fortmeier <fortmeier at imi.uni-luebeck.de>, PhD Student

Institute of Medical Informatics
Graduate School for Computing in Medicine and Life Sciences
University of Lübeck

Building 64, 2F, Room 4
Ratzeburger Allee 160
23538 Lübeck
Germany

Tel.:+49 (451) 500-5635
Fax.:+49 (451) 500-5610




More information about the vtkusers mailing list