[vtkusers] Opacity with multiple meshes

David E DeMarle dave.demarle at kitware.com
Thu Jan 26 15:18:12 EST 2012


And since you have multiple meshes, for depth sort to work, you need to
append them all together first, then depth sort that. Otherwise the opacity
is only correct within each one, not amongst them.

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Thu, Jan 26, 2012 at 3:13 PM, David E DeMarle
<dave.demarle at kitware.com>wrote:

> Use depth peeling.
> http://www.vtk.org/Wiki/VTK/Depth_Peeling
>
> Or vtkDepthSortPolyData before rendering.
>
> David E DeMarle
> Kitware, Inc.
> R&D Engineer
> 21 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-881-4909
>
>
> On Thu, Jan 26, 2012 at 3:10 PM, Nicolas Rannou <nicolas.lists at gmail.com>wrote:
>
>> Hello,
>>
>> I have several meshes I want to visualize.
>>
>> If I decrease the opacity of those meshes, the visualization goes wrong:
>> I don't see a nice "superposition effect", instead I only see the "last"
>> object "in the ray".
>>
>> Decreasing the opacity,
>> - paraview has the expected behavior
>> - the vtk example (
>> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/Opacity) has the
>> wrong behavior.
>>
>> I could find which option to use to enable a proper behavior...
>>
>> Thanks,
>> Nicolas
>>
>> _______________________________________________
>> 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
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120126/4ba50efc/attachment.htm>


More information about the vtkusers mailing list