# GLTFReader + texture

**URL:** https://discourse.vtk.org/t/gltfreader-texture/4455
**Category:** Support
**Created:** [October 20, 2020, 2:58pm UTC](https://discourse.vtk.org/t/gltfreader-texture/4455 "2020-10-20T14:58:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![skoudoro](https://discourse.vtk.org/user_avatar/discourse.vtk.org/skoudoro/32/4568_2.png) [@skoudoro](https://discourse.vtk.org/u/skoudoro)
#### Post date: [October 20, 2020, 2:58pm UTC](https://discourse.vtk.org/t/gltfreader-texture/4455/1 "2020-10-20T14:58:16Z")

</div>

Hi everyone,

I am using the python binding of VTK 9.0.1.

After loading a [gltf model](https://github.com/KhronosGroup/glTF-Sample-Models) via vtkGLTFReader, I can see the model on my scene and start different animations.

However, I can not see any texture on my model. I wonder why I can see the texture with vtkGLTFImporter and not with vtkGLTFReader.

How can I apply / get the texture from GLTFReader? Do you have any examples? or How can I get the texture from vtkGTLFImporter and apply it to vtkGLTFReader?

vtkGLTFReader.GetNumberOfTextures() always returns me 0  
vtkGLTFReader.GetGLTFTexture returns me:  
`*** AttributeError: 'vtkmodules.vtkIOGeometry.vtkGLTFReader' object has no attribute 'GetGLTFTexture'`

Thank you for your feedback

---

<div class="post-metadata">

### Author: ![Michael](https://discourse.vtk.org/user_avatar/discourse.vtk.org/michael/32/16_2.png) [@Michael](https://discourse.vtk.org/u/Michael)
#### Post date: [October 20, 2020, 4:39pm UTC](https://discourse.vtk.org/t/gltfreader-texture/4455/2 "2020-10-20T16:39:47Z")

</div>

Readers in VTK load only the geometry and the scalar fields.  
Moreover, the animation is computed on the CPU in order to be able to connect the reader to post-processing filters, so it is very slow.  
If you want to load the textures, the camera, and the lights as well, you need to use the importer.  
GPU-accelerated animations will be possible in [VTK 9.1](https://gitlab.kitware.com/vtk/vtk/-/merge_requests/7246) but if you need skinning and morphing support, you will have to provide a custom vertex shader to the polydata mapper.

---

<div class="post-metadata">

### Author: ![Pancake\_Z](https://discourse.vtk.org/user_avatar/discourse.vtk.org/pancake_z/32/7310_2.png) [@Pancake\_Z](https://discourse.vtk.org/u/Pancake_Z)
#### Post date: [December 12, 2024, 2:29pm UTC](https://discourse.vtk.org/t/gltfreader-texture/4455/3 "2024-12-12T14:29:50Z")

</div>

Can you provide sample code for python
