<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>body { line-height: 1.5; }body { font-size: 10.5pt; font-family: 'Microsoft YaHei UI'; color: rgb(0, 0, 0); line-height: 1.5; }body { font-size: 10.5pt; font-family: 'Microsoft YaHei UI'; color: rgb(0, 0, 0); line-height: 1.5; }</style>
</head>
<body>
<div><span></span>I tried to use OSMesa to do offscreen rendering, refer to the osdemo and the <span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">tutorial here: </span><span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;"></span><a href="http://www.alecjacobson.com/weblog/?p=2827" microsoftyaheiui??;font-size:14px;font-weight:normal;font-style:normal;?="" style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">http://www.alecjacobson.com/weblog/?p=2827</a><span microsoftyaheiui??;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255);font-weight:normal;font-style:normal;text-decoration:none;?="" style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;"> </span></div>
<div><span style="font-family: "" microsoftyaheiui??;font-size:14px;color:rgb(0,0,0);background-color:rgba(0,font-weight:normal;font-style:normal;text-decoration:none;?="">There are obvious serrations on the edge of the model. </span></div>
<div><span style="font-family: "" microsoftyaheiui??;font-size:14px;color:rgb(0,0,0);background-color:rgba(0,font-weight:normal;font-style:normal;text-decoration:none;?=""> I have tried these solution but all failed, can any one gieve me some suggestions? the
 solution I have tried:</span></div>
<div><span style="font-family: "" microsoftyaheiui??;font-size:14px;color:rgb(0,0,0);background-color:rgba(0,font-weight:normal;font-style:normal;text-decoration:none;?=""><span style="font-family: "" microsoftyaheiui??;font-size:14px;color:rgb(0,0,0);background-color:rgba(0,font-weight:normal;font-style:normal;text-decoration:none;?="">1.
 Using post processing -- </span></span><span style="font-family: 'Lucida Grande', Geneva, Arial, Verdana, sans-serif; orphans: 2; widows: 2; font-size: 10.5pt; line-height: 1.5; background-color: window;">pp_jimenezmlaa</span></div>
<div><span style="font-family: "" microsoftyaheiui??;font-size:14px;color:rgb(0,0,0);background-color:rgba(0,font-weight:normal;font-style:normal;text-decoration:none;?=""><span style="font-family: "" microsoftyaheiui??;font-size:14px;color:rgb(0,0,0);background-color:rgba(0,font-weight:normal;font-style:normal;text-decoration:none;?=""><span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;"> 
   </span>the result is not good enough.</span></span></div>
<div><span style="font-family: "" microsoftyaheiui??;font-size:14px;color:rgb(0,0,0);background-color:rgba(0,font-weight:normal;font-style:normal;text-decoration:none;?=""><span style="font-family: "" microsoftyaheiui??;font-size:14px;color:rgb(0,0,0);background-color:rgba(0,font-weight:normal;font-style:normal;text-decoration:none;?=""><br>
</span></span></div>
<div><span style="font-family: "" microsoftyaheiui??;font-size:14px;color:rgb(0,0,0);background-color:rgba(0,font-weight:normal;font-style:normal;text-decoration:none;?=""><span style="font-family: "" microsoftyaheiui??;font-size:14px;color:rgb(0,0,0);background-color:rgba(0,font-weight:normal;font-style:normal;text-decoration:none;?="">2.
 Try to using MSAA by FBO, but the multisamled fbo can't be created correctly.</span></span></div>
<div><span style="font-family: "" microsoftyaheiui??;font-size:14px;color:rgb(0,0,0);background-color:rgba(0,font-weight:normal;font-style:normal;text-decoration:none;?=""><span style="font-family: "" microsoftyaheiui??;font-size:14px;color:rgb(0,0,0);background-color:rgba(0,font-weight:normal;font-style:normal;text-decoration:none;?=""><span style="font-family: "" microsoftyaheiui??;font-size:14px;color:rgb(0,0,0);background-color:rgba(0,font-weight:normal;font-style:normal;text-decoration:none;?=""> 
   Detail desctription here: </span></span></span><span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;"></span><a href="http://stackoverflow.com/questions/43532454/osmesa-gl-framebuffer-incomplete-attachment-error-when-create-a-multisampling-fb" microsoftyaheiui??;font-size:14px;font-weight:normal;font-style:normal;?="" style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">http://stackoverflow.com/questions/43532454/osmesa-gl-framebuffer-incomplete-attachment-error-when-create-a-multisampling-fb</a><span microsoftyaheiui??;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255);font-weight:normal;font-style:normal;text-decoration:none;?="" style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;"> </span></div>
<div><span microsoftyaheiui??;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255);font-weight:normal;font-style:normal;text-decoration:none;?="" style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;"><br>
</span></div>
<div><span microsoftyaheiui??;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255);font-weight:normal;font-style:normal;text-decoration:none;?="" style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">3. Try to
 modify the sampling function in mesa, according the thread: </span><span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;"></span><a href="https://sourceforge.net/p/mesa3d/mailman/message/24438334/" microsoftyaheiui??;font-size:14px;font-weight:normal;font-style:normal;?="" style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">https://sourceforge.net/p/mesa3d/mailman/message/24438334/</a><span microsoftyaheiui??;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255);font-weight:normal;font-style:normal;text-decoration:none;?="" style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;"> ,
  set the stop = 16 and add exit(__LINE__) in the function.</span></div>
<div><span microsoftyaheiui??;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255);font-weight:normal;font-style:normal;text-decoration:none;?="" style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">but it seems
 the function is not used anymore.</span></div>
<div><span microsoftyaheiui??;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255);font-weight:normal;font-style:normal;text-decoration:none;?="" style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">
<pre style="box-sizing: inherit; margin-top: 0px; margin-bottom: 0px; padding: 15px; border-width: 0px 0px 0px 1px; border-left-style: solid; border-left-color: rgb(229, 229, 229); outline: 0px; font-size: 13px; vertical-align: baseline; font-family: monospace, sans-serif; white-space: pre-wrap; word-wrap: break-word; overflow: auto; color: rgb(85, 85, 85); orphans: 2; widows: 2; background-position: initial initial; background-repeat: initial initial;">The mesa swrast AA triangle code is in src/mesa/swrast/s_aatriangle.c 
and s_aatritemp.h
The compute_coverage() functions (different versions for RGB vs. CI 
mode) basically count how many sub-pixel samples lie inside the 
triangle for each pixel.  A jittered 4x4 sample pattern is used.  You 
could probably increase the number of samples to improve AA quality a 
little.
-Brian</pre>
</span></div>
<div>Thanks!</div>
<hr style="WIDTH: 210px; HEIGHT: 1px" color="#b5c4df" size="1" align="left">
<div><span>
<div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt">
<div>wegatron@hotmail.com</div>
</div>
</span></div>
</body>
</html>