[vtk-developers] vtkOpenGLPolyDataMapper blend mode

Ken Martin ken.martin at kitware.com
Fri Mar 25 10:34:05 EDT 2016


I thought there might be but I do not see it. From an OpenGL perspective it
is pretty easy. We just change the

  glBlendFuncSeparate() and glBlendEquationSeparate() calls as they can do
what you want.

The risk we run is that some render passes and mappers rely on specific
blend functions to work. They would end up overriding what the user set or
failing which could be confusing. The place to do it would be to add the
ivar/methods into vtkProperty and then in vtkOpenGLActor::Render() use the
property and set the blend functions.

Thanks
Ken



On Thu, Mar 24, 2016 at 2:52 PM, Brad Hollister <behollis at sci.utah.edu>
wrote:

> While vtkSmartVolumeMapper allows the selection of blending mode via:
>
> SetBlendMode (int)
> SetBlendModeToComposite ()
> SetBlendModeToMaximumIntensity ()
> SetBlendModeToMinimumIntensity ()
> SetBlendModeToAdditive ()
>
> is there a similar way to enable a particular type of blending with
> vtkOpenGLPolyDataMapper?
>
> Regards,
> Brad
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=vtk-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtk-developers
>
>


-- 
Ken Martin PhD
Chairman & CFO
Kitware Inc.
28 Corporate Drive
Clifton Park NY 12065
518 371 3971

This communication, including all attachments, contains confidential and
legally privileged information, and it is intended only for the use of the
addressee.  Access to this email by anyone else is unauthorized. If you are
not the intended recipient, any disclosure, copying, distribution or any
action taken in reliance on it is prohibited and may be unlawful. If you
received this communication in error please notify us immediately and
destroy the original message.  Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20160325/ecd64d96/attachment-0001.html>


More information about the vtk-developers mailing list