[vtkusers] Multi-texturing??

Ken Martin ken.martin at kitware.com
Mon Oct 29 08:29:54 EDT 2018


Here is one example.

https://gitlab.kitware.com/vtk/vtk/blob/master/Rendering/OpenGL2/Testing/Cxx/TestMultiTexturing.cxx


On Thu, Oct 25, 2018 at 11:02 AM, Patrick Bergeron <pbergeron at spiria.com>
wrote:

> Hi.
>
>
> I am trying to use a second texture in a fragment shader.
>
>
> vtkActor::SetTexture(vtkTexture*) seems to only take a single texture
> image and no way to add more.
>
>
> vtkActor::GetProperty()->SetTexture(textureUnit, vtkTexture*) is
> deprecated and shows an error in an output window, and doesn't seem to pass
> any other texture variable to the shader.
>
>
> I've looked and looked, and I'm probably blind, but how do I do this
> seemingly simple task?
>
>
> Thanks.
>
> Patrick
>
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/vtkusers
>
>


-- 
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/vtkusers/attachments/20181029/6e4657d7/attachment.html>


More information about the vtkusers mailing list