<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<blockquote
cite="mid:BANLkTi=c14YP=J2Q-N6xiuVQfSGD=jSt3w@mail.gmail.com"
type="cite">
<pre wrap="">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 <a class="moz-txt-link-rfc2396E" href="mailto:tmacedo29@gmail.com"><tmacedo29@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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 <a class="moz-txt-link-rfc2396E" href="mailto:jpayne@hgl-dynamics.com"><jpayne@hgl-dynamics.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On 24/05/2011 14:12, Thiago Macedo wrote:
</pre>
<blockquote type="cite">
<pre wrap="">
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
</pre>
</blockquote>
<pre wrap="">
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 <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at
<a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the VTK FAQ at:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>
</pre>
</blockquote>
<pre wrap="">
--
Thiago B. Macedo
</pre>
</blockquote>
</blockquote>
Hi Thiago,<br>
<br>
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.<br>
<br>
Ah, also, bare in mind that you need to do:<br>
<br>
renderWindow->SetMultiSamples(0);<br>
renderWindow->AlphaBitPlanesOn( ); // not sure if this is
needed<br>
<br>
<br>
Cheers,<br>
Jo
<div class="moz-signature">
<font size="-2"><br>
</font></div>
</body>
</html>