Skip to the content.

2D Texture Arrays

Loading Textures from Video Files

Note: this example may appear blank if you are using MacOS or have an older GPU.

Another interesting approach for working with instances is thinking about how to include textures. This approach uses a 2D array that’s loaded into memory with a texture3D TOP. This example uses pre-filling to fill our texture3D TOP with all of our images. If you haven’t used pre-filling before it’s worth taking a closer look at that article to understand the mechanics.

Important for us here is to note that our video is currently encoded at 30fps, and because we’re driving the index with frames we’ll need to set our texture3D’s step size to 2 — adding a texture every other frame.

From here we convert the points of our geometry to CHOP channels that represent our instance positions. A wave CHOP provides our index positions that will then be used to point to an index in our 2D texture array.


Tested in TouchDesigner099 2020.23680

Updated 06.03.20
Matthew Ragan
Zoe Sandoval