[vtk-developers] Multiple textures

Ken Martin ken.martin at kitware.com
Tue Oct 30 15:16:10 EDT 2018


I responded yesterday so maybe check your spam folder etc.  Here is the link

https://markmail.org/thread/7gtvznk7jql7uv74



On Tue, Oct 30, 2018 at 3:10 PM, Patrick Bergeron <pbergeron at spiria.com>
wrote:

> Hi folks. I sent this a while back on vtk-users but got no response.
>
>
>
> I am sending this to vtk-developers because if the features isn't
> implemented, I will implement it.
>
>
> I am trying to pass multiple texture buffers to a fragment shader.
>
>
> I saw I can do:
>
>
> 1) actor->SetTexture(vtkTexture*) takes only a single vtkTexture
>
>
> 2) actor->GetProperty()->SetTexture(int unit, vtkTexture*) takes a
> texture that I can associate to a texture unit, but those functions are
> deprecated.
>
>
> In fact, I think that (2) doesn't even work anymore with the OpenGL2
> backend, at least my shader code doesn't seem to be getting them, maybe I
> am doing something wrong. In any case, I get a vtk warning saying I should
> not do that.
>
>
>
> Some folks have said I should combine multiple images into a single image
> before sending as a texture image. But I can't do this, because I need to
> send texture images as well as multiple data (non-image) buffers to the
> shader as well.
>
>
> How can I attach multiple image buffers to the actor and/or ogl mapper?
>
>
>
>
> _______________________________________________
> 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:
> https://public.kitware.com/mailman/listinfo/vtk-developers
>
>
>


-- 
Ken Martin PhD
Distinguished Engineer
Kitware Inc.
101 East Weaver Street
Carrboro, North Carolina
27510 USA

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: <https://public.kitware.com/pipermail/vtk-developers/attachments/20181030/05af719d/attachment.html>


More information about the vtk-developers mailing list