Bonjour François,<div><br></div><div>I use image data into image3DActor.</div><div>By rendering, i just add an image3DActor into the renderer. </div><div><br></div><div>I have 2 images, and one polydata :</div><div><br></div>
<div><br></div><div> A the camera </div><div><br></div><div>-------------- first image (opacity = 20%)</div><div><br></div><div>-------------- second image (opacity = 20%)</div><div><br></div><div>
OOOOOO polydatas</div><div><br></div><div>I can see the polydatas tough both transparent image, only if the polydatas opacity is set to 100% (not transparent).</div><div>If i move my polydatas opacity to 99%, the polydata disappear behind both images.</div>
<div><br></div><div>Second question :</div><div><br></div><div>can i activate the depth peeling after the renderer constructor. I have tried to use renderer->Refresh(), and RendererWindow->Start(), but i cannot activate depth peeling after first renderer->Render();</div>
<div><br></div><div><br></div><div>Thanks a lot,</div><div><br></div><div><br></div><div>Cordialement,<br><br>-- Mathieu PICCIN<br><br><br>
<br><br><div class="gmail_quote">On Mon, Mar 8, 2010 at 2:36 PM, Francois Bertel <span dir="ltr"><<a href="mailto:francois.bertel@kitware.com">francois.bertel@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Is your imagedate 2D? 3D? How do you display your imagedata (ie what's<br>
your pipeline)?<br>
If your imagedata is 3D and by "displaying imagedata" you mean volume<br>
rendering, then no you cannot mixed translucent polygonal geometry and<br>
volume rendering.<br>
<div><div></div><div class="h5"><br>
On Mon, Mar 8, 2010 at 8:05 AM, Mathieu P <<a href="mailto:mtp.vtk@gmail.com">mtp.vtk@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I have done some tests, and i can see image data behind transparent<br>
> polydata, but i cannot see polydata behind transparent image data with depth<br>
> peeling method !<br>
><br>
> It's very strange because without depthpeeling, it's workling well both<br>
> sides.<br>
><br>
><br>
> Cordialement,<br>
><br>
> -- Mathieu PICCIN<br>
><br>
><br>
><br>
><br>
> On Thu, Mar 4, 2010 at 10:22 AM, Mathieu P <<a href="mailto:mtp.vtk@gmail.com">mtp.vtk@gmail.com</a>> wrote:<br>
>><br>
>> Martin,<br>
>><br>
>> The solution of using depth peeling doesnt come from me, but from Francois<br>
>> Bertel, from KitWare.<br>
>> I dont know how do make depth peeling working with transparent polygons...<br>
>><br>
>><br>
>><br>
>> Cordialement,<br>
>><br>
>> -- Mathieu PICCIN<br>
>><br>
>><br>
>><br>
>><br>
>> On Thu, Mar 4, 2010 at 9:31 AM, Martin Allerstorfer<br>
>> <<a href="mailto:allerstorfer_martin@gmx.at">allerstorfer_martin@gmx.at</a>> wrote:<br>
>>><br>
>>> But the biggest problem I have at the moment is that I cannot see the<br>
>>> imagedata behind transparent polygons? Sorry for writting so many questions<br>
>>> but it is quite urgent for me.<br>
>>><br>
>>> Thank you so much,<br>
>>> Martin<br>
>>><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<br>
>>> > 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">allerstorfer_martin@gmx.at</a>><br>
>>> > > An: <a href="mailto:vtkusers@vtk.org">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<br>
>>> > > pealing<br>
>>> > > works for polydata, but if I want to use imagedata in the same<br>
>>> > > 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<br>
>>> > > >>>> 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<br>
>>> > > >>>>> 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<br>
>>> > > >>>>> 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>
>>> jetzt kostenlos herunterladen! <a href="http://portal.gmx.net/de/go/atbrowser" target="_blank">http://portal.gmx.net/de/go/atbrowser</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>
> 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>
</div></div>--<br>
<div class="im">François Bertel, PhD | Kitware Inc. Suite 204<br>
1 (518) 371 3971 x113 | 28 Corporate Drive<br>
| Clifton Park NY 12065, USA<br>
_______________________________________________<br>
</div><div><div></div><div class="h5">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>