<div dir="ltr">Yes, I suspect the class needs to be fixed. If you have a VTK build you can try editing vtkFollower.cxx to include the following line<div><br></div><div><div>  this->Device->SetTexture(this->GetTexture());</div></div><div><br></div><div>around line number 272 (right before the ComputeMatrix call)</div><div><br></div><div>if that works I can put in a fix </div><div><br></div><div>Ken</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 12, 2016 at 1:37 PM, Roberto Gori <span dir="ltr"><<a href="mailto:r.gori@cineca.it" target="_blank">r.gori@cineca.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div dir="ltr">
<div style="FONT-SIZE:12pt;FONT-FAMILY:'Calibri';COLOR:#000000">
<div>Hi,</div>
<div> </div>
<div>thx for your answer <img style="BORDER-TOP-STYLE:none;BORDER-BOTTOM-STYLE:none;BORDER-RIGHT-STYLE:none;BORDER-LEFT-STYLE:none" alt="Sorriso" src="cid:CE1190B085064691AFBC569FAD487336@int.cineca.it"></div>
<div> </div>
<div>you are right but the result is the same.</div>
<div> </div>
<div>it works using a vtkActor instead of a vtkFollower.</div>
<div style="FONT-SIZE:small;TEXT-DECORATION:none;FONT-FAMILY:"Calibri";FONT-WEIGHT:normal;COLOR:#000000;FONT-STYLE:normal;DISPLAY:inline">
<div style="FONT:10pt tahoma">
<div><font size="3" face="Calibri"></font> </div>
<div style="BACKGROUND:#f5f5f5">
<div><b>From:</b> <a title="ken.martin@kitware.com" href="mailto:ken.martin@kitware.com" target="_blank">Ken Martin</a> </div>
<div><b>Sent:</b> Friday, August 12, 2016 7:02 PM</div>
<div><b>To:</b> <a title="r.gori@cineca.it" href="mailto:r.gori@cineca.it" target="_blank">Roberto 
Gori</a> </div>
<div><b>Cc:</b> <a title="vtk-developers@vtk.org" href="mailto:vtk-developers@vtk.org" target="_blank">VTK Developers</a> </div>
<div><b>Subject:</b> Re: [vtk-developers] possible bug in vtk 7.1 - 
OpenGL2</div></div></div>
<div> </div></div>
<div style="FONT-SIZE:small;TEXT-DECORATION:none;FONT-FAMILY:"Calibri";FONT-WEIGHT:normal;COLOR:#000000;FONT-STYLE:normal;DISPLAY:inline">
<div dir="ltr">What happens if you remove the TextureMapToPlane? PlaneSource 
generates texture coordinate by default. So connect that directly to the mapper 
and what happens?</div>
<div class="gmail_extra">
<div> </div>
<div class="gmail_quote">On Fri, Aug 12, 2016 at 12:21 PM, Roberto Gori <span dir="ltr"><<a href="mailto:r.gori@cineca.it" target="_blank">r.gori@cineca.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT:1ex;MARGIN:0px 0px 0px 0.8ex;BORDER-LEFT:#ccc 1px solid">
  <div dir="ltr">
  <div dir="ltr">
  <div style="FONT-SIZE:12pt;FONT-FAMILY:'Calibri';COLOR:#000000">
  <div>Hi,</div>
  <div> </div>
  <div>sorry for cross-posting but no one is answering to my question on the 
  vtkusers list.</div>
  <div> </div>
  <div><font face="Times New Roman">As you can see running this code the plane 
  is visualized without texture.</font></div>
  <div><font face="Times New Roman"></font> </div>
  <div><font face="Times New Roman">I think the problem is in rendering a 
  texture on a vtkFollower. </font></div>
  <div><font face="Times New Roman">Can someone open a bug on 
  Mantis?</font> </div>
  <div><font face="Times New Roman"><font face="Calibri"></font></font> </div>
  <div><br>#include <vtkImageData.h><br>#include 
  <vtkJPEGReader.h><br>#include <vtkPolyDataMapper.h><br>#include 
  <vtkPolyData.h><br>#include <vtkSmartPointer.h><br>#include 
  <vtkTextureMapToPlane.h><br>#include 
  <vtkPlaneSource.h><br>#include <vtkTexture.h><br>#include 
  <vtkRenderer.h><br>#include <vtkRenderWindow.h><br>#include 
  <vtkRenderWindowInteractor.h><br>#include 
  <vtkFollower.h><br>#include <vtkVersion.h><br><br>int main ( int 
  argc, char *argv[] )<br>{<br>// Parse command line arguments<br>if ( argc != 2 
  )<br>{<br>std::cerr << "Usage: " << argv[0] << " Filename" 
  << std::endl;<br>return EXIT_FAILURE;<br>}<br><br>std::cout << 
  "VTK version:" << vtkVersion::GetVTKVersion() << 
  std::endl;<br><br>std::string inputFilename = argv[1];<br><br>// Read the 
  image which will be the texture<br>vtkSmartPointer<vtkJPEGReader> 
  jPEGReader 
  =<br>vtkSmartPointer<vtkJPEGReader><wbr>::New();<br>jPEGReader->SetFileName 
  ( inputFilename.c_str() );<br><br>// Create a 
  plane<br>vtkSmartPointer<vtkPlaneSource<wbr>> plane 
  =<br>vtkSmartPointer<vtkPlaneSource<wbr>>::New();<br>plane->SetCenter(0.0, 
  0.0, 0.0);<br>plane->SetNormal(0.0, 0.0, 1.0);<br><br>// Apply the 
  texture<br>vtkSmartPointer<vtkTexture> texture 
  =<br>vtkSmartPointer<vtkTexture>::N<wbr>ew();<br>texture->SetInputConnection(jP<wbr>EGReader->GetOutputPort());<br><br>vtkSmartPointer<vtkTextureMapT<wbr>oPlane> 
  texturePlane 
  =<br>vtkSmartPointer<vtkTextureMapT<wbr>oPlane>::New();<br>texturePlane->SetInputConnecti<wbr>on(plane->GetOutputPort());<br><br>vtkSmartPointer<vtkPolyDataMap<wbr>per> 
  planeMapper 
  =<br>vtkSmartPointer<vtkPolyDataMap<wbr>per>::New();<br>planeMapper->SetInputConnectio<wbr>n(texturePlane->GetOutputPort(<wbr>));<br><br>vtkSmartPointer<vtkFollower> 
  texturedPlane 
  =<br>vtkSmartPointer<vtkFollower>::<wbr>New();<br>texturedPlane->SetMapper(plane<wbr>Mapper);<br>texturedPlane->SetTexture(text<wbr>ure);<br><br><br>// 
  Visualize the textured plane<br>vtkSmartPointer<vtkRenderer> renderer 
  =<br>vtkSmartPointer<vtkRenderer>::<wbr>New();<br>renderer->AddActor(texturedPla<wbr>ne);<br><br>renderer->SetBackground(.1, 
  .2, .3); // Background color dark 
  blue<br>renderer->ResetCamera();<br><br>texturedPlane->SetCamera(rende<wbr>rer->GetActiveCamera());<br><br><br>vtkSmartPointer<vtkRenderWindo<wbr>w> 
  renderWindow 
  =<br>vtkSmartPointer<vtkRenderWindo<wbr>w>::New();<br>renderWindow->AddRenderer(rend<wbr>erer);<br><br>vtkSmartPointer<vtkRenderWindo<wbr>wInteractor> 
  renderWindowInteractor 
  =<br>vtkSmartPointer<vtkRenderWindo<wbr>wInteractor>::New();<br>renderWindowInteractor->SetRen<wbr>derWindow(renderWindow);<br><br>renderWindow->Render();<br><br>renderWindowInteractor->Start(<wbr>);<br><br>return 
  EXIT_SUCCESS;<br>}<br></div>
  <div> </div>
  <div> </div></div></div></div><br>______________________________<wbr>_________________<br>Powered 
  by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source 
  projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br><br>Search 
  the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtk-developers</a><br><br>Follow 
  this link to subscribe/unsubscribe:<br><a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/vtk-developers</a><br><br><br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all">
<div> </div>-- <br>
<div data-smartmail="gmail_signature">Ken Martin PhD 
<div>Chairman & CFO<br>Kitware Inc.<br>28 Corporate Drive<br>Clifton Park NY 
12065<br><a href="tel:518%20371%203971" value="+15183713971" target="_blank">518 371 3971</a> 
<div> </div>
<div><span style="FONT-SIZE:10pt;FONT-FAMILY:tahoma,sans-serif">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.</span></div></div></div></font></span></div></div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Ken Martin PhD<div>Chairman & CFO<br>Kitware Inc.<br>28 Corporate Drive<br>Clifton Park NY 12065<br>518 371 3971<div><br></div><div><span style="font-size:10pt;font-family:Tahoma,sans-serif">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.</span></div></div></div>
</div>