Discussion:
[vtkusers] Multi-texturing??
Patrick Bergeron
2018-10-25 15:02:01 UTC
Permalink
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
Ken Martin
2018-10-29 12:29:54 UTC
Permalink
Here is one example.

https://gitlab.kitware.com/vtk/vtk/blob/master/Rendering/OpenGL2/Testing/Cxx/TestMultiTexturing.cxx
Post by Patrick Bergeron
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
http://www.vtk.org/Wiki/VTK_FAQ
Search the list archives at: http://markmail.org/search/?q=vtkusers
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.
Loading...