[vtkusers] Mirroring the scene

Dirk Fortmeier fortmeier at imi.uni-luebeck.de
Fri May 13 05:56:33 EDT 2011


Now I disabled the default light creation and created a scene light. The
position of the scene light I set to the camera position * (-1,1,-1)
periodically which is working. But I don't really get why I have to do
this...

Thanks a lot for your help!

Dirk

On Thu, 2011-05-12 at 12:00 -0400, Aashish Chaudhary wrote:
> You could do that.. too I am wondering if it is not really a normal
> issue...but more like light transformation issue.
> 
> Are you using default renderer light?
> 
> Also can you make sure that lights you are using are scene lights? (if
> not then you can set the light type to scene light using
> void vtkLight::SetLightTypeToSceneLight	() )
> 
> Regards,
> Aashish
> 
> 
> 
> 
> On Thu, May 12, 2011 at 11:42 AM, Dirk Fortmeier
> <fortmeier at imi.uni-luebeck.de> wrote:
> > 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
> >
> > _______________________________________________
> > 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