anti-aliasing

Mohamed Amine Mzoughi <[email protected]>
Newsgroups gmane.comp.lib.vtk.user
Message-ID <[email protected]>
Hello,

I want to enable Anti-alisaing in my VTK app, so I took some parameters 
from ParaView and it still doesn't work :

     m_view->GetRenderer()->UseFXAAOn(); // enable AA

     vtkFXAAOptions* const aaOpts = m_view->GetRenderer()->GetFXAAOptions();
     aaOpts->SetRelativeContrastThreshold(0.125);
     aaOpts->SetHardContrastThreshold(0.045);
     aaOpts->SetSubpixelBlendLimit(0.75);
     aaOpts->SetSubpixelContrastThreshold(0.25);
     aaOpts->SetUseHighQualityEndpoints(true);
     aaOpts->SetEndpointSearchIterations(12);

what am I missing ?

Also, m_view->GetRenderWindow()->GetMultiSamples() => returns 8.

and I called also :

m_view->GetRenderWindow()->LineSmoothingOn();
m_view->GetRenderWindow()->PolygonSmoothingOn(); 
m_view->GetRenderWindow()->PointSmoothingOn();

Thanks.

_______________________________________________
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

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtkusers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.