[vtkusers] Cylinder Anti-Aliasing

Thiago Macedo tmacedo29 at gmail.com
Tue May 31 10:06:30 EDT 2011


Hi Jon,

thank you again for your answer. I tried to use SetMultiSamples as you
advised, however with no success.
This is my setup:

  renderWin->PointSmoothingOn();
  renderWin->LineSmoothingOn();
  renderWin->PolygonSmoothingOn();
  renderWin->AlphaBitPlanesOn();
  renderWin->SetMultiSamples(0);

And still have that problem with cylinders.
Regards

On Tue, May 31, 2011 at 5:36 AM, Jon Payne <jpayne at hgl-dynamics.com> wrote:
> Hi Jon,
>
> I'v tried to use OpenGL function directly with no sucess.
> Do you or someone know how to make this anti-aliasing over
> vtkCylinderSource?
>
> Regards
>
> On Tue, May 24, 2011 at 11:24 AM, Thiago Macedo <tmacedo29 at gmail.com> wrote:
>
> Hi Jon,
>
> firstly, thank you for your prompt answer.
> Actually, I'm already using all the *SmoothingOn() funcions. The
> attached image, in my last e-mail, already has the 3 Smoothing algo.
> as ON.
> Anyway, I'll try the OpenGL command too.
>
> Regards,
>
> On Tue, May 24, 2011 at 11:13 AM, Jon Payne <jpayne at hgl-dynamics.com> wrote:
>
> On 24/05/2011 14:12, Thiago Macedo wrote:
>
> HI All,
>
> I've tried to find a way to make a cylinder as smooth as lines when
> LineSmoothingOn(), but it seems nothing is really working.
> Attached I'm sending a screenshot.
> Could someone help me?
>
> Regards
>
> Hi Thiago ,
>
> I think you'll need the following for a cylinder if not a wire-frame:
> PolygonSmoothingOn();
>
> I generally do:
>
>    renderWindow->LineSmoothingOn();
>    renderWindow->PointSmoothingOn();
>    renderWindow->PolygonSmoothingOn();
>    glHint(GL_POINT_SMOOTH_HINT, GL_NICEST);
>
> Cheers,
> Jon
>
> _______________________________________________
> 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
>
>
>
> --
> Thiago B. Macedo
>
> Hi Thiago,
>
> The proper solution I suppose is to enable anti-aliasing but that relies on
> Open GL extensions... I did try to enable it some time ago but was
> unsuccessful. Haven't got around to looking it to what was preventing it
> from working I'm afraid.
>
> Ah, also, bare in mind that you need to do:
>
>     renderWindow->SetMultiSamples(0);
>     renderWindow->AlphaBitPlanesOn( );  // not sure if this is needed
>
>
> Cheers,
> Jo
>



-- 
Thiago B. Macedo



More information about the vtkusers mailing list