[vtkusers] Anti-Aliasing

David E DeMarle dave.demarle at kitware.com
Tue Mar 27 04:27:41 EDT 2012


> renwin->SetMultiSamples(0); //? 0 means turn OFF hardware antialiasing.

Also be careful to set these up before the first call to
renwin->Render(), or the glContext won't be setup correctly.

If you do that, but your openGL still doesn't support it, try
renwin->SetAAFrames(5) which will do the antialiasing in a much
slower, but more widely available way.

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909



On Tue, Mar 27, 2012 at 3:36 AM, zlf <jxdw_zlf at yahoo.com.cn> wrote:
> Hi all,
>
> I called those in my program. But the result still contains aliasing.
>
> renwin->LineSmoothingOn();
> renwin->PolygonSmoothingOn();
> renwin->PointSmoothingOn();
> renwin->SetMultiSamples(0);
>
> http://vtk.1045678.n5.nabble.com/file/n5597149/Aliasing.jpg
>
> Regards,
>
> superZZ
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/Anti-Aliasing-tp5597149p5597149.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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



More information about the vtkusers mailing list