<div dir="ltr">Is there any way to have multiple sets of texture coordinates on a vtkPolyData with the OpenGL2 backend?<br><br>In the legacy OpenGL backend, it used to be possible to have multiple sets of texture coordinates on a vtkPolyData by adding multiple arrays, each containing a set of texture coordinates, to the point data of the polydata, by doing something like this:<br><br>polyData->GetPointData()->AddArray( tcoordArray )<br><br>And then associating the array to one of the textures with:<br><br>polyDataMapper->MapDataArrayToMultiTextureAttribute( textureUnit, arrayName );<br><br>This behavior is not implemented in the OpenGL2 backend. The mapper considers only the array returned by polyData->GetPointData()->GetTCoord() as texture coordinates and uses it for all textures. Initially, I thought I could do the job by modifying the shader program used to render the polydata, but the mapper doesn't seem to pack the extra arrays from the point data into the VBO, so the data is not there for the shader.<div><br></div><div>Any solution?</div><div><br></div><div>Thanks in advance.</div><div><br></div><div>s.<br><br></div></div>