Yes sorry, i am using vtkImageActor for my images, <div>I have all the Opengl requirements checked, and i have followed your wiki about depthpeeling, so my options are just like in the wiki...</div><div><br></div><div>Cannot see my STL tough 2 images...</div>
<div><br></div><div>Thanks for the tip about using SetUseDepthPeeling(1), that's work.</div><div><br></div><div>Petit bonjour de France en passant,</div><div><br clear="all">Cordialement,<br><br>-- Mathieu PICCIN<br><br>
<br>
<br><br><div class="gmail_quote">On Wed, Mar 10, 2010 at 4:03 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;">
There is no image3DActor in VTK. The only class with a similar name is<br>
vtkImageActor. Are you talking about this one?<br>
<br>
Does your OpenGL implementation has the required extensions?<br>
<br>
ref: <a href="http://www.vtk.org/Wiki/VTK/Depth_Peeling#Required_OpenGL_extensions" target="_blank">http://www.vtk.org/Wiki/VTK/Depth_Peeling#Required_OpenGL_extensions</a><br>
<br>
<br>
Also, step 1 and 2 have to be called before the first render, they<br>
cannot be changed after that:<br>
1. renderWindow->SetAlphaBitPlanes(1);<br>
2. renderWindow->SetMultiSamples(0);<br>
<br>
ref: <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>
The other steps can be called at any time and will be effective at the<br>
next call the renderWindow->Render(), like:<br>
renderer->SetUseDepthPeeling(1);<br>
or<br>
renderer->SetUseDepthPeeling(0);<br>
<div><div></div><div class="h5"><br>
<br>
On Wed, Mar 10, 2010 at 7:48 AM, Mathieu P <<a href="mailto:mtp.vtk@gmail.com">mtp.vtk@gmail.com</a>> wrote:<br>
> Bonjour François,<br>
> I use image data into image3DActor.<br>
> By rendering, i just add an image3DActor into the renderer.<br>
> I have 2 images, and one polydata :<br>
><br>
> A the camera<br>
> -------------- first image (opacity = 20%)<br>
> -------------- second image (opacity = 20%)<br>
> OOOOOO polydatas<br>
> I can see the polydatas tough both transparent image, only if the polydatas<br>
> opacity is set to 100% (not transparent).<br>
> If i move my polydatas opacity to 99%, the polydata disappear behind both<br>
> images.<br>
> Second question :<br>
> can i activate the depth peeling after the renderer constructor. I have<br>
> tried to use renderer->Refresh(), and RendererWindow->Start(), but i cannot<br>
> activate depth peeling after first renderer->Render();<br>
><br>
> Thanks a lot,<br>
><br>
> Cordialement,<br>
><br>
> -- Mathieu PICCIN<br>
><br>
><br>
><br>
><br>
> On Mon, Mar 8, 2010 at 2:36 PM, Francois Bertel<br>
> <<a href="mailto:francois.bertel@kitware.com">francois.bertel@kitware.com</a>> wrote:<br>
>><br>
>> 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>
>><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<br>
>> > 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<br>
>> >> Francois<br>
>> >> Bertel, from KitWare.<br>
>> >> I dont know how do make depth peeling working with transparent<br>
>> >> 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<br>
>> >>> 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<br>
>> >>> > 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<br>
>> >>> > > 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<br>
>> >>> > > > 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<br>
>> >>> > > >> <a href="http://gmail.com" target="_blank">gmail.com</a>><br>
>> >>> > wrote:<br>
>> >>> > > >>><br>
>> >>> > > >>> Actually i am using vtkImageActor and i change their opacity<br>
>> >>> > > >>> 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<br>
>> >>> > > >>> <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<br>
>> >>> > > >>>>> glyphs<br>
>> >>> > > >>>>> have<br>
>> >>> > > the same<br>
>> >>> > > >>>>> transparency. So I change the color and alpha settings for<br>
>> >>> > > >>>>> 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<br>
>> >>> > > >>>>> <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>
>> --<br>
>> 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>
>> 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><div></div><div class="h5">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>
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>