[vtkusers] Depth Peeling in VTk
Francois Bertel
francois.bertel at kitware.com
Fri Jul 10 10:38:10 EDT 2009
Keep the discussion on the list, please.
Yes VTK 5.4.2 is fine:
* The last fix in depth peeling is from January 2008:
http://www.vtk.org/Wiki/VTK/Depth_Peeling#Date_of_Implementation
* VTK 5.4.2 is from June 2009:
http://www.kitware.com/news/home/browse/VTK?2009_06_04&VTK+5.4.2+Released
Yes you can use depth peeling with Medical1.CXX.
On Fri, Jul 10, 2009 at 10:13 AM, Albert King<albert.king84 at yahoo.com> wrote:
> Hi,
>
> Thanks for the reply.I have built vtk 5.4.2 can I do depth peeling in the
> same version.If yes Can I use Medical1.CXX example to accomplish my task and
> use the following
>
>
>
> The interface is in vtkRenderer.
>
> 1. Use a render window with alpha bits (as initial value is 0 (false) ):
>
> The interface is in vtkRenderer.
>
> 1. Use a render window with alpha bits (as initial value is 0 (false) ):
>
> renderWindow->SetAlphaBitPlanes(1);
>
> 2. Force to not pick a framebuffer with a multisample buffer ( as initial
> value is 8):
>
> renderWindow->SetMultiSamples(0);
>
> 3. Choose to use depth peeling (if supported) (initial value is 0 (false) )
>
> renderer->SetUseDepthPeeling(1);
>
> 4. Set depth peeling parameters.
>
> Set the maximum number of rendering passes (initial value is 4)
>
> renderer->SetMaximumNumberOfPeels(100);
>
> Set the occlusion ratio (initial value is 0.0, exact image)
>
> renderer->SetOcclusionRatio(0.1);
>
> 5. Render
> 6. Check if depth peeling was actually used:
>
> int depthPeelingWasUsed=renderer->GetLastRenderingUsedDepthPeeling();
>
> rWindow->SetAlphaBitPlanes(1);
>
> 2. Force to not pick a framebuffer with a multisample buffer ( as initial
> value is 8):
>
> renderWindow->SetMultiSamples(0);
>
> 3. Choose to use depth peeling (if supported) (initial value is 0 (false) )
>
> renderer->SetUseDepthPeeling(1);
>
> 4. Set depth peeling parameters.
>
> Set the maximum number of rendering passes (initial value is 4)
>
> renderer->SetMaximumNumberOfPeels(100);
>
> Set the occlusion ratio (initial value is 0.0, exact image)
>
> renderer->SetOcclusionRatio(0.1);
>
> 5. Render
> 6. Check if depth peeling was actually used:
>
> int depthPeelingWasUsed=renderer->GetLastRenderingUsedDepthPeeling();
>
> ________________________________
> From: Francois Bertel <francois.bertel at kitware.com>
> To: vtkusers at vtk.org
> Sent: Friday, July 10, 2009 7:07:14 PM
> Subject: Re: [vtkusers] Depth Peeling in VTk
>
> All the information you need is here:
>
> http://www.vtk.org/Wiki/VTK/Depth_Peeling
>
> On Fri, Jul 10, 2009 at 9:24 AM, Albert King<albert.king84 at yahoo.com> wrote:
>> Hi All,
>>
>> I want to try Depth Peeling option in VTK.Can anybody tell me how to
>> perform
>> depth peeling in vtk and the prerequsites.Thanks in Advance.
>>
>>
>> Regards
>>
>> Albert
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>
>
>
> --
> François Bertel, PhD | Kitware Inc. Suite 204
> 1 (518) 371 3971 x113 | 28 Corporate Drive
> | Clifton Park NY 12065, USA
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
--
François Bertel, PhD | Kitware Inc. Suite 204
1 (518) 371 3971 x113 | 28 Corporate Drive
| Clifton Park NY 12065, USA
More information about the vtkusers
mailing list