Hi,<br><br>I have done some tests, and i can see image data behind transparent polydata, but i cannot see polydata behind transparent image data with depth peeling method !<br><br>It's very strange because without depthpeeling, it's workling well both sides.<br>
<br><br clear="all">Cordialement,<br><br>-- Mathieu PICCIN<br><br><br>
<br><br><div class="gmail_quote">On Thu, Mar 4, 2010 at 10:22 AM, Mathieu P <span dir="ltr"><<a href="mailto:mtp.vtk@gmail.com">mtp.vtk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Martin,<br><br>The solution of using depth peeling doesnt come from me, but from <span>Francois Bertel</span>, from KitWare.<br>I dont know how do make depth peeling working with transparent polygons...<br><br><br><br>Cordialement,<br>
<br>-- Mathieu PICCIN<div><div></div><div class="h5"><br><br><br>
<br><br><div class="gmail_quote">On Thu, Mar 4, 2010 at 9:31 AM, Martin Allerstorfer <span dir="ltr"><<a href="mailto:allerstorfer_martin@gmx.at" target="_blank">allerstorfer_martin@gmx.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
But the biggest problem I have at the moment is that I cannot see the imagedata behind transparent polygons? Sorry for writting so many questions but it is quite urgent for me.<br>
<br>
Thank you so much,<br>
Martin<br>
<div><div></div><div><br>
> I just found out that it works also with imagedata but only for certain<br>
> distances.<br>
> If I zoom into the imagedata suddenly polydata is shown behind imagedata,<br>
> but it should be the other way round.<br>
> Is there an additional parameter to define the distance where depth<br>
> peeling starts?<br>
><br>
> Thanks,<br>
> Martin<br>
><br>
> > Datum: Thu, 04 Mar 2010 08:45:38 +0100<br>
> > Von: "Martin Allerstorfer" <<a href="mailto:allerstorfer_martin@gmx.at" target="_blank">allerstorfer_martin@gmx.at</a>><br>
> > An: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
> > Betreff: [vtkusers] Cannot see imagedata behind transparent polydata<br>
><br>
> > Thanks for all the answers! Mathieu, your suggestion using depth pealing<br>
> > works for polydata, but if I want to use imagedata in the same renderer<br>
> > depth calculation does not work between polydata and imagedata? A<br>
> solution for<br>
> > this problem would be great!<br>
> ><br>
> > Thanks,<br>
> > Martin<br>
> ><br>
> > >Dealing with non opaque geometry requires sorting the polygon to be<br>
> > >rendered. It would be extremely slow if it was<br>
> > >activated by default.<br>
> > ><br>
> > >Try to use depth peeling. Follow these steps:<br>
> > ><br>
> > ><a href="http://www.vtk.org/Wiki/VTK/Depth_Peeling#VTK_calls" target="_blank">http://www.vtk.org/Wiki/VTK/Depth_Peeling#VTK_calls</a><br>
> > ><br>
> > >You need OpenGL>=2.0 for it to work.<br>
> > ><br>
> > >On Wed, Mar 3, 2010 at 12:35 PM, Mathieu P <mtp.vtk at <a href="http://gmail.com" target="_blank">gmail.com</a>><br>
> wrote:<br>
> > >> I have attached a small image illustrating my problem.<br>
> > >><br>
> > >> I cannot believe VTK cannot manage object opacity !<br>
> > >><br>
> > >> Thanks for help.<br>
> > >><br>
> > >><br>
> > >> Cordialement,<br>
> > >><br>
> > >> -- Mathieu PICCIN<br>
> > >><br>
> > >><br>
> > >><br>
> > >><br>
> > >> On Wed, Mar 3, 2010 at 4:50 PM, Mathieu P <mtp.vtk at <a href="http://gmail.com" target="_blank">gmail.com</a>><br>
> wrote:<br>
> > >>><br>
> > >>> Actually i am using vtkImageActor and i change their opacity with<br>
> > >>> setOpacity...<br>
> > >>><br>
> > >>><br>
> > >>> Cordialement,<br>
> > >>><br>
> > >>> -- Mathieu PICCIN<br>
> > >>><br>
> > >>><br>
> > >>><br>
> > >>><br>
> > >>> On Wed, Mar 3, 2010 at 3:57 PM, Mathieu P <mtp.vtk at <a href="http://gmail.com" target="_blank">gmail.com</a>><br>
> > wrote:<br>
> > >>>><br>
> > >>>> Same kind of problem here :<br>
> > >>>><br>
> > >>>> I have two imageData :<br>
> > >>>><br>
> > >>>> Image data A loaded first<br>
> > >>>> Image data B loaded after<br>
> > >>>><br>
> > >>>> i modify the opacity to 50% for both image data.<br>
> > >>>> i can see tough the image data B, so the last loaded, but i cannot<br>
> > see<br>
> > >>>> toughthe image data A, the first loaded.<br>
> > >>>> Modifying the opacity of the forst loaded change only its<br>
> luminosity<br>
> > (or<br>
> > >>>> alpha).<br>
> > >>>><br>
> > >>>><br>
> > >>>> Cordialement,<br>
> > >>>><br>
> > >>>> -- Mathieu PICCIN<br>
> > >>>><br>
> > >>>><br>
> > >>>><br>
> > >>>><br>
> > >>>> On Wed, Mar 3, 2010 at 3:03 PM, Martin Allerstorfer<br>
> > >>>> <allerstorfer_martin at <a href="http://gmx.at" target="_blank">gmx.at</a>> wrote:<br>
> > >>>>><br>
> > >>>>> Hi,<br>
> > >>>>><br>
> > >>>>> In my rendering view I would like to show imagedata and<br>
> additionally<br>
> > >>>>> some information using transparent glyphs. But not all glyphs have<br>
> > the same<br>
> > >>>>> transparency. So I change the color and alpha settings for each<br>
> cell<br>
> > of the<br>
> > >>>>> glyphs seperately. Unfortunately now I cannot see the volume<br>
> behind<br>
> > the<br>
> > >>>>> transparent polydata. Does anybody know how to solve this problem?<br>
> > >>>>><br>
> > >>>>> Thanks,<br>
> > >>>>> Martin<br>
> > >>>>> --<br>
> > >>>>> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!<br>
> > >>>>> Jetzt freischalten unter <a href="http://portal.gmx.net/de/go/maxdome01" target="_blank">http://portal.gmx.net/de/go/maxdome01</a><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>
> > >> 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>
> > GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!<br>
> > Jetzt freischalten unter <a href="http://portal.gmx.net/de/go/maxdome01" target="_blank">http://portal.gmx.net/de/go/maxdome01</a><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>
> Sicherer, schneller und einfacher. Die aktuellen Internet-Browser -<br>
> jetzt kostenlos herunterladen! <a href="http://portal.gmx.net/de/go/chbrowser" target="_blank">http://portal.gmx.net/de/go/chbrowser</a><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>
Sicherer, schneller und einfacher. Die aktuellen Internet-Browser -<br>
</div></div>jetzt kostenlos herunterladen! <a href="http://portal.gmx.net/de/go/atbrowser" target="_blank">http://portal.gmx.net/de/go/atbrowser</a><br>
<div><div></div><div>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <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: <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>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>