<div>Thank you for your invaluable advice.</div>
<div>I really appreciate it.</div>
<div> </div>
<div>Here is my depth sorting code just like vtk example.</div>
<div> </div>
<div>vtkSmartPointer<vtkCamera> camera = vtkCamera::New();<br> renderer_->SetActiveCamera (camera);</div>
<div> contourFilter->SetInput(input);</div>
<div><br> vtkSmartPointer<vtkDepthSortPolyData> depthSort = vtkDepthSortPolyData::New();<br> depthSort->SetInputConnection(contourFilter->GetOutputPort());<br> depthSort->SetDirectionToBackToFront();<br>
depthSort->SetVector(1, 1, 1);<br> depthSort->SetCamera(camera);<br> depthSort->SortScalarsOn();<br> depthSort->Update();</div>
<div><br> ugridMapper->SetInput(depthSort->GetOutput());</div>
<div><br><br> </div>
<div class="gmail_quote">2010³â 12¿ù 17ÀÏ ¿ÀÈÄ 10:28, Sebastien Jourdain <span dir="ltr"><<a href="mailto:sebastien.jourdain@kitware.com">sebastien.jourdain@kitware.com</a>></span>´ÔÀÇ ¸»:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">I don't know if it is a VTK problem, but ParaView is using vtk 5.6 (at least).<br>On the other hand I don't know the underneath setting inside ParaView<br>
for the opacity.<br>Maybe you can ask what are those setting so you can reproduce them<br>inside your vtk application on the ParaView mailing list.<br><br>Seb<br><br>PS: How did you set the depth peeling/sorting inside your code ?<br>
<div>
<div></div>
<div class="h5"><br>2010/12/17 ÀÌÇöö <<a href="mailto:basalt76@gmail.com">basalt76@gmail.com</a>>:<br>> Yes it looks normal in ParaView.<br>><br>> But In my application, after applying depth sorting,<br>> the iso-surface looks like attached file.<br>
><br>> Is it vtk version problem ? My vtk is 5.2.1<br>><br>> 2010³â 12¿ù 17ÀÏ ¿ÀÈÄ 9:59, Sebastien Jourdain <<a href="mailto:sebastien.jourdain@kitware.com">sebastien.jourdain@kitware.com</a>>´ÔÀÇ<br>> ¸»:<br>
>><br>>> Ok,<br>>><br>>> but this is normal because the ContourFilter will generate a triangulated<br>>> mesh.<br>>><br>>> Seb<br>>><br>>> 2010/12/17 ÀÌÇöö <<a href="mailto:basalt76@gmail.com">basalt76@gmail.com</a>>:<br>
>> > I sent you two images, input file and iso-contour image.<br>>> > I had no problem to look at input file and iso-contour.<br>>> ><br>>> > Problem is<br>>> > when I set Representation option with "Surface with edges".<br>
>> ><br>>> > Input file image looks normal but iso-contour image gone through<br>>> > vtkMarchingContourFilter has triangles.<br>>> > Thank you very much.<br>>> ><br>>> > 2010³â 12¿ù 17ÀÏ ¿ÀÈÄ 5:35, Sebastien Jourdain<br>
>> > <<a href="mailto:sebastien.jourdain@kitware.com">sebastien.jourdain@kitware.com</a>>´ÔÀÇ<br>>> > ¸»:<br>>> >><br>>> >> The reason is because you ask to look at the input file and not the<br>
>> >> iso-contour. The little eye on the left is disable in front of the<br>>> >> contour.<br>>> >><br>>> >> Seb<br>>> >><br>>> >> PS: Once you change something on a filter, don't forget to click on<br>
>> >> Apply<br>>> >><br>>> >> 2010/12/17 ÀÌÇöö <<a href="mailto:basalt76@gmail.com">basalt76@gmail.com</a>>:<br>>> >> > I'm very sorry for bothering you.<br>>> >> ><br>
>> >> > I got something interesting.<br>>> >> ><br>>> >> > In the ParaView, when I set Representation with "Surface with edges".<br>>> >> ><br>>> >> > The isosurface image went through vtkMarchingContourFilter has the<br>
>> >> > triangles.<br>>> >> > But the original image looks normal.<br>>> >> ><br>>> >> > I have used vtkCleanPolyData and vtkPolyDataNormals.<br>>> >> ><br>
>> >> > I attached two iamges.<br>>> >> ><br>>> >> > Thank you ver much.<br>>> >> ><br>>> >> > Lee.<br>>> >> ><br>>> >> > 2010³â 12¿ù 17ÀÏ ¿ÀÈÄ 12:55, ÀÌÇöö <<a href="mailto:basalt76@gmail.com">basalt76@gmail.com</a>>´ÔÀÇ ¸»:<br>
>> >> >><br>>> >> >> Thank you for your advice<br>>> >> >><br>>> >> >> I loaded my isosurface into ParaView and set opacity under 1.0.<br>>> >> >> It looks normal ~<br>
>> >> >><br>>> >> >> Is this means that the ParaView do something special to solve<br>>> >> >> transparency<br>>> >> >> problem ?<br>>> >> >><br>
>> >> >> I attached the result.<br>>> >> >><br>>> >> >> 2010³â 12¿ù 15ÀÏ ¿ÀÈÄ 11:21, Sebastien Jourdain<br>>> >> >> <<a href="mailto:sebastien.jourdain@kitware.com">sebastien.jourdain@kitware.com</a>>´ÔÀÇ ¸»:<br>
>> >> >>><br>>> >> >>> How did you defined your unstructured grid ? It seems that some<br>>> >> >>> inner<br>>> >> >>> surface are detected...<br>
>> >> >>> This could happen if you duplicate the points so each cell has its<br>>> >> >>> own<br>>> >> >>> points ?<br>>> >> >>><br>>> >> >>> Try to load your data into ParaView and see if you can reproduce<br>
>> >> >>> the<br>>> >> >>> problem.<br>>> >> >>><br>>> >> >>> Seb<br>>> >> >>><br>>> >> >>> 2010/12/15 ÀÌÇöö <<a href="mailto:basalt76@gmail.com">basalt76@gmail.com</a>>:<br>
>> >> >>> > Sorry to interrupt you again.<br>>> >> >>> ><br>>> >> >>> > I attach two images.<br>>> >> >>> ><br>>> >> >>> > Before and after adding depth sorting.<br>
>> >> >>> > There are some differences.<br>>> >> >>> ><br>>> >> >>> > My graphics card seems not to support depth peeling.<br>>> >> >>> ><br>
>> >> >>> > Thank you very mush.<br>>> >> >>> ><br>>> >> >>> > Lee.<br>>> >> >>> ><br>>> >> >>> > 2010/12/15 Sebastien Jourdain <<a href="mailto:sebastien.jourdain@kitware.com">sebastien.jourdain@kitware.com</a>><br>
>> >> >>> >><br>>> >> >>> >> You should enable depth peeling on the renderer to fix most of<br>>> >> >>> >> the<br>>> >> >>> >> artefact. But the rendering will be slower.<br>
>> >> >>> >><br>>> >> >>> >> Seb<br>>> >> >>> >><br>>> >> >>> >> On Tue, Dec 14, 2010 at 10:01 AM, ÀÌÇöö <<a href="mailto:basalt76@gmail.com">basalt76@gmail.com</a>><br>
>> >> >>> >> wrote:<br>>> >> >>> >> > Dears<br>>> >> >>> >> ><br>>> >> >>> >> > I visualized isosurface using vtkMarchingContourFilter from<br>
>> >> >>> >> > vtkUnstructuredGrid.<br>>> >> >>> >> ><br>>> >> >>> >> > When the opacity is 1.0 , created picture looks normal.<br>
>> >> >>> >> ><br>>> >> >>> >> > But when i adjust opacity to below 1.0, the picture has<br>>> >> >>> >> > speckles<br>>> >> >>> >> > depends<br>
>> >> >>> >> > on the position.<br>>> >> >>> >> ><br>>> >> >>> >> > Do you have any solution ?<br>>> >> >>> >> ><br>
>> >> >>> >> > I'll really appreciate it.<br>>> >> >>> >> ><br>>> >> >>> >> > Attached images<br>>> >> >>> >> ><br>
>> >> >>> >> > _______________________________________________<br>>> >> >>> >> > Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
>> >> >>> >> ><br>>> >> >>> >> > Visit other Kitware open-source projects at<br>>> >> >>> >> > <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>> >> >>> >> ><br>>> >> >>> >> > Please keep messages on-topic and check the VTK FAQ at:<br>>> >> >>> >> > <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
>> >> >>> >> ><br>>> >> >>> >> > Follow this link to subscribe/unsubscribe:<br>>> >> >>> >> > <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
>> >> >>> >> ><br>>> >> >>> >> ><br>>> >> >>> ><br>>> >> >>> ><br>>> >> >><br>>> >> ><br>
>> >> ><br>>> ><br>>> ><br>><br>><br></div></div></blockquote></div><br>