[vtkusers] anti-aliasing
Mohamed Amine Mzoughi
aminemzoughi at febus-optics.com
Wed Dec 26 06:45:11 EST 2018
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.
More information about the vtkusers
mailing list