# Translucent texture for texture coordinates outside \[0,1\]

**URL:** https://discourse.vtk.org/t/translucent-texture-for-texture-coordinates-outside-0-1/1791
**Category:** Support
**Created:** [September 19, 2019, 10:27pm UTC](https://discourse.vtk.org/t/translucent-texture-for-texture-coordinates-outside-0-1/1791 "2019-09-19T22:27:08Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![banesullivan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/banesullivan/32/7143_2.png) [@banesullivan](https://discourse.vtk.org/u/banesullivan)
#### Post date: [October 3, 2019, 6:52pm UTC](https://discourse.vtk.org/t/translucent-texture-for-texture-coordinates-outside-0-1/1791/9 "2019-10-03T18:52:36Z")

</div>

Assigning values above 1 in the texture coordinates where you don’t have textures with setting repeat on the `vtkTexture` to False should do the trick. Here is an example using [PyVista](https://docs.pyvista.org) to show what this would look like:

```python
from pyvista import examples

texture = examples.download_puppy_texture()
texture.SetRepeat(False)

mesh = examples.load_random_hills()
mesh.texture_map_to_plane(inplace=True)

# Now turn off a region of the texture mapping
idx = mesh.points[:,0] > 5
mesh.t_coords[idx] = [1.1, 1.1]

mesh.plot(texture=texture, cpos='xy', 
          show_grid=True, color='white')

```

 ![download](https://discourse.vtk.org/uploads/default/original/1X/ef8f21143b5f9c56aaa389460d493447343236b3.jpeg)

---

_[View the full topic](https://discourse.vtk.org/t/translucent-texture-for-texture-coordinates-outside-0-1/1791)._
