# trouble transforming texture mapped objects

**URL:** https://discourse.paraview.org/t/trouble-transforming-texture-mapped-objects/1038
**Category:** ParaView Support
**Created:** [December 13, 2018, 10:30pm UTC](https://discourse.paraview.org/t/trouble-transforming-texture-mapped-objects/1038 "2018-12-13T22:30:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![insley](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/i/e9a140/32.png) [@insley](https://discourse.paraview.org/u/insley)
#### Post date: [December 13, 2018, 10:30pm UTC](https://discourse.paraview.org/t/trouble-transforming-texture-mapped-objects/1038/1 "2018-12-13T22:30:15Z")

</div>

Hi,

I’m not sure whether I’m doing something wrong, this is expected behavior, or a bug.

I create a Sphere source  
Apply TextureMapToSphere  
Load an image to use as texture

Things look as expected.

If I then apply a Transform to the TextureMapToSphere object, I get the correct transformation, and under the Info panel it says that the Transform object has texture coordinates, but there is no longer a texture applied. Under Texture for the Transform object it lists Texture as None. And it is grayed out, so I cannot add one.

I see this same behavior for pv 5.5.2 and 5.6.0. Am I doing something wrong here?

Thanks  
joe

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [December 13, 2018, 11:20pm UTC](https://discourse.paraview.org/t/trouble-transforming-texture-mapped-objects/1038/2 "2018-12-13T23:20:51Z")

</div>

Hi Joe,

Looking at the source code for `vtkTransformFilter.cxx`, it appears the texture coordinate is copied to the output (which we see in the Information panel), but it is not set as **the** texture coordinates array. This is a bug for which I’ve filed a [report](https://gitlab.kitware.com/vtk/vtk/issues/17457).

As a workaround in 5.5.2, and 5.6.0, you can add the following programmable filter after the Transform filter:

```auto
output.PointData.VTKObject.ShallowCopy(inputs[0].PointData.VTKObject)

tcoords = inputs[0].PointData["Texture Coordinates"]
output.PointData.VTKObject.SetTCoords(tcoords.VTKObject)

```

---

<div class="post-metadata">

### Author: ![insley](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/i/e9a140/32.png) [@insley](https://discourse.paraview.org/u/insley)
#### Post date: [December 14, 2018, 5:24pm UTC](https://discourse.paraview.org/t/trouble-transforming-texture-mapped-objects/1038/3 "2018-12-14T17:24:25Z")

</div>

Hi Cory,

Thanks, that worked great. Now here’s the new problem I’m seeing. My intent is to take the transformed textured sphere and use it as a custom glyph with the GlyphWithCustomSource filter. This seems to work in 5.5.2, so I am not blocking on this. But with 5.6.0 there is again no texture. And no TCoords array. In fact the only data array listed is Normals. The Velocity vector from the data is not listed. The filter seems to know about the Velocity, because I can select it as the Orientation Array for the glyphs, but it does not show in the Information panel, or in the Coloring dropdown.

Best

joe

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [December 17, 2018, 2:39pm UTC](https://discourse.paraview.org/t/trouble-transforming-texture-mapped-objects/1038/4 "2018-12-17T14:39:39Z")

</div>

Joe,

It sounds like you are running into this bug: [https://gitlab.kitware.com/paraview/paraview/issues/18662](https://gitlab.kitware.com/paraview/paraview/issues/18662)

Attributes like texture coordinates are not being copied over to the glyph filter output. There isn’t an easy workaround for that one, I’m afraid. But it will be fixed in the next version of ParaView.

> [@insley](#):
>
> The filter seems to know about the Velocity, because I can select it as the Orientation Array for the glyphs, but it does not show in the Information panel, or in the Coloring dropdown.

Note that the arrays displayed in the _Properties Panel_ reflect arrays available in the input to a filter, while the content of the _Information Panel_ reflects info about the output of a filter. So if the array is not being copied to the output, it will not appear in the _Information Panel_.
